Register for your free account! | Forgot your password?

You last visited: Today at 14:27

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Release] PacketLogger

Discussion on [Release] PacketLogger within the Nostale Hacks, Bots, Cheats & Exploits forum part of the Nostale category.

Reply
 
Old 04/08/2022, 10:25   #451
 
elite*gold: 0
Join Date: Oct 2021
Posts: 33
Received Thanks: 1
@ unfortunately it didn't fix it. Same problems in both packet logger and in my TCP client.

I tried different encodings to make sure, like utf8, latin1 etc...
bledior is offline  
Old 04/08/2022, 13:20   #452

 
BladeTiger12's Avatar
 
elite*gold: 64
Join Date: May 2011
Posts: 1,228
Received Thanks: 847
Do you have any character I can test with? When I try characters like kanji's or cyrillic's directly in NosTale chat I just see "?" or what client language u're using?
BladeTiger12 is online now  
Old 04/08/2022, 13:50   #453
 
elite*gold: 0
Join Date: Oct 2021
Posts: 33
Received Thanks: 1
@ ™ ę ś ć ó etc... I am using Polish client.
bledior is offline  
Thanks
1 User
Old 04/08/2022, 14:27   #454

 
BladeTiger12's Avatar
 
elite*gold: 64
Join Date: May 2011
Posts: 1,228
Received Thanks: 847
Strange, in my example AutoIt Script these characters work: (NosTale converted the middle 3 characters to the default in german client) but the ™ and ó is working

Be careful: If you log it to your console it could also be that the console cannot print these characters.
Attached Images
File Type: png Download.png (84.0 KB, 89 views)
BladeTiger12 is online now  
Old 04/08/2022, 14:38   #455
 
elite*gold: 0
Join Date: Oct 2021
Posts: 33
Received Thanks: 1
@ I attached screenshot. Name of the pet should be Krzakogon^Szczęścia.
Attached Images
File Type: png packets.PNG (61.3 KB, 89 views)
bledior is offline  
Old 04/08/2022, 14:41   #456
 
elite*gold: 0
Join Date: Oct 2021
Posts: 33
Received Thanks: 1
Yeah but I am rendering these names in my Electron app (web) and they are displayed wrong too.

I will keep looking if its problem on my side.
bledior is offline  
Old 04/08/2022, 15:03   #457

 
BladeTiger12's Avatar
 
elite*gold: 64
Join Date: May 2011
Posts: 1,228
Received Thanks: 847
Quote:
Originally Posted by bledior View Post
@ I attached screenshot. Name of the pet should be Krzakogon^Szczęścia.
The characters looks good on the PacketLogger UI?
They're wrong when you show them in your electron app?
BladeTiger12 is online now  
Old 04/08/2022, 15:13   #458
 
elite*gold: 0
Join Date: Oct 2021
Posts: 33
Received Thanks: 1
@ they are wrong both in packet logger and my electron app.
bledior is offline  
Old 04/08/2022, 18:33   #459

 
BladeTiger12's Avatar
 
elite*gold: 64
Join Date: May 2011
Posts: 1,228
Received Thanks: 847
Ok but it looks like it isn't a problem with the PacketLogger. I managed it to partially show the string in node:

You need to run "npm install iconv-lite" before.
The other packages are in node. (But I think you know that )

HTML Code:
var net = require('net');
var fs = require('fs');
var iconv = require('iconv-lite');
iconv.skipDecodeWarning = true;

var client = new net.Socket();

client.setEncoding('binary');
client.connect(60174, '127.0.0.1', function() {
	console.log('Connected');
	client.write('Hello, server! Love, Client.');
});

client.on('data', function(data) {
    data.split('\r').forEach(packet => {
        const splittedPacket = packet.split(' ');
        if (splittedPacket.length === 1) return;

        if (splittedPacket[1][0] === '/') {
            const res = iconv.decode(data, 'ISO-8859-2');

            console.log(res);
 
            fs.writeFileSync("chat.txt", res);
        }
    });
});
/*
Krzakogon^Szczęścia ™ ę ś ć ó
*/
Attached Images
File Type: png Unbenannt.png (64.4 KB, 86 views)
BladeTiger12 is online now  
Old 04/08/2022, 18:49   #460
 
elite*gold: 0
Join Date: Oct 2021
Posts: 33
Received Thanks: 1
@ I hate so much encodings. I tried iconv before, yeah it fixes it partially.
@ Finally I got it. Use iconv and decode it as Windows-1250

I think 8bitlocal and Windows-1250 is solution.

At least for Polish client.
bledior is offline  
Old 04/08/2022, 19:03   #461

 
BladeTiger12's Avatar
 
elite*gold: 64
Join Date: May 2011
Posts: 1,228
Received Thanks: 847
Quote:
Originally Posted by bledior View Post
@ I hate so much encodings. I tried iconv before, yeah it fixes it partially.
@ Finally I got it. Use iconv and decode it as Windows-1250

I think 8bitlocal and Windows-1250 is solution.

At least for Polish client.
Nice, I tried it and worked.
Then good luck with your Electron-App

Glad that it's fixed now.
BladeTiger12 is online now  
Old 04/08/2022, 19:09   #462
 
elite*gold: 0
Join Date: Oct 2021
Posts: 33
Received Thanks: 1
@ Thanks And thank you for the packet logger update and your time.
bledior is offline  
Old 04/09/2022, 12:32   #463
 
elite*gold: 0
Join Date: Feb 2013
Posts: 32
Received Thanks: 4
hello, i would like to create a betting bot, but unfortunately i can't manage that all the time the packets are intercepted and every 5,5sec the item is betted. if i include a sleep(5500) the packets are only retrieved every 5,5sec. How can I get the packets to be retrieved all the time and bet every 5.5 seconds.
I used consolewrite in the code only to check if the packets are fetched every 5,5sec or all the time.
It builds on the code from the autoit example
Here my **** code

HTML Code:
While True
   Bet()
   EQCheck()
   PacketLogger_Handle($Socket, ProcessPackets)
 WEnd

Func ProcessPackets($Type, $PacketSplitted, $FullPacket)
   $e_info = ""
   ConsoleWrite($PacketSplitted[0] &  [MENTION=3576271]CRLF[/MENTION]@
   If $PacketSplitted[0] = "e_info" Then
	  $e_info = $FullPacket
	  ConsoleWrite($FullPacket &  [MENTION=3576271]CRLF[/MENTION]@
   EndIf
   ;If StringInStr($e_info, "1.16") or StringInStr($e_info, "1.15") Then ;Crit dmg or crit chance
   ;EndIf

EndFunc

Func Bet()
    ;PacketLogger_SendPacket($Socket,"up_gr 7 0 0") ;bet Item
	Sleep(5500)
 EndFunc

Func EQCheck()
   PacketLogger_SendPacket($Socket,"eqinfo 1 0")
EndFunc
1luca1 is offline  
Old 04/09/2022, 13:22   #464

 
BladeTiger12's Avatar
 
elite*gold: 64
Join Date: May 2011
Posts: 1,228
Received Thanks: 847
Quote:
Originally Posted by 1luca1 View Post
hello, i would like to create a betting bot, but unfortunately i can't manage that all the time the packets are intercepted and every 5,5sec the item is betted. if i include a sleep(5500) the packets are only retrieved every 5,5sec. How can I get the packets to be retrieved all the time and bet every 5.5 seconds.
I used consolewrite in the code only to check if the packets are fetched every 5,5sec or all the time.
It builds on the code from the autoit example
Here my crap code

HTML Code:
While True
   Bet()
   EQCheck()
   PacketLogger_Handle($Socket, ProcessPackets)
 WEnd

Func ProcessPackets($Type, $PacketSplitted, $FullPacket)
   $e_info = ""
   ConsoleWrite($PacketSplitted[0] &  [MENTION=3576271]CRLF[/MENTION]@
   If $PacketSplitted[0] = "e_info" Then
	  $e_info = $FullPacket
	  ConsoleWrite($FullPacket &  [MENTION=3576271]CRLF[/MENTION]@
   EndIf
   ;If StringInStr($e_info, "1.16") or StringInStr($e_info, "1.15") Then ;Crit dmg or crit chance
   ;EndIf

EndFunc

Func Bet()
    ;PacketLogger_SendPacket($Socket,"up_gr 7 0 0") ;bet Item
	Sleep(5500)
 EndFunc

Func EQCheck()
   PacketLogger_SendPacket($Socket,"eqinfo 1 0")
EndFunc
Use something like a timer that runs the function later, I think with "AdlibRegister("YourFunctionName", <Milliseconds>)"

So you could to smth. like this: (Crappier solution but easier to understand I guess)

HTML Code:
Func Bet()
    PacketLogger_SendPacket($Socket,"up_gr 7 0 0") ;bet Item
    AdlibRegister("DoSmthElseAfter5500Milliseconds", 5500) ;Start 5.5s interval
 EndFunc

Func DoSmthElseAfter5500Milliseconds()
  ; This will run after 5,5 seconds
  AdlibUnRegister("DoSmthElseAfter5500Milliseconds") ;Stop 5.5s interval, otherwise it would run this function again after 5,5 seconds
EndFunc
The better solution would be to work with a Timestamp, check in the While loop above if 5.5s passed and run the function () but in this case it should be enough for you.
BladeTiger12 is online now  
Thanks
1 User
Old 04/09/2022, 14:46   #465
 
elite*gold: 0
Join Date: Feb 2013
Posts: 32
Received Thanks: 4
Quote:
Originally Posted by BladeTiger12 View Post
Use something like a timer that runs the function later, I think with "AdlibRegister("YourFunctionName", <Milliseconds>)"

So you could to smth. like this: (Crappier solution but easier to understand I guess)

HTML Code:
Func Bet()
    PacketLogger_SendPacket($Socket,"up_gr 7 0 0") ;bet Item
    AdlibRegister("DoSmthElseAfter5500Milliseconds", 5500) ;Start 5.5s interval
 EndFunc

Func DoSmthElseAfter5500Milliseconds()
  ; This will run after 5,5 seconds
  AdlibUnRegister("DoSmthElseAfter5500Milliseconds") ;Stop 5.5s interval, otherwise it would run this function again after 5,5 seconds
EndFunc
The better solution would be to work with a Timestamp, check in the While loop above if 5.5s passed and run the function () but in this case it should be enough for you.
Ive done it with the timer and it works like a charm!! Thanks!!
Thats my code now
HTML Code:
$iMilliSec = 5500
$hTimer = TimerInit()

While True
   PacketLogger_Handle($Socket, ProcessPackets)
   If TimerDiff($hTimer) > $iMilliSec Then
        Bet()
	$hTimer = TimerInit()
	 EndIf
 WEnd
1luca1 is offline  
Reply

Tags
bladetiger, c++qt, logger, nostale, packet


Similar Threads Similar Threads
[Release] Packetlogger - By Doktor.
02/09/2019 - Nostale Hacks, Bots, Cheats & Exploits - 137 Replies
Hab mich mal rangesetzt einen Packetlogger zu schreiben, aus Übungszwecken. Bei Problemen o.Ä. könnt ihr euch einfach im Thread melden. Funktionen: - Ausgabe der gesendeten Packets - Ausgabe der erhaltenen Packets - Filtern der Packets - Senden von Packets - Braucht so schnell kein Update
[Release] AutoIt-Recieve-Packetlogger mit Sourcecode
08/07/2013 - Nostale Hacks, Bots, Cheats & Exploits - 20 Replies
Ich habe mich der Herausforderung gestellt in AutoIt einen Packetlogger zu schreiben, bisher werden nur die Packets geloggt, die der Client vom Server erhält, andersrum geht es noch nicht. Diese kleine Spielerei fing ich eigentlich an um meine neue CCInject.au3 zu testen, dann dachte ich aber, dass es sicherlich für viele interessant sein könnte einmal zu sehen wie einfach es doch ist an die Packets ranzukommen. Deshalb poste ich hier einmal einen relativ einfachen Packetlogger. Das...
[Release] PacketLogger Starter
08/10/2012 - Nostale Hacks, Bots, Cheats & Exploits - 41 Replies
Hier mein erster Release :) Es ist zwar nur ein kleines tool, wird jedoch vielen helfen denke ich :) Infos Es startet den Multiclient und ändert anschließend die VersionsNr. Zudem Injizieret er die dll automatisch. Somit muss man dies nicht mehr mit CE machen. http://www.abload.de/img/unbenanntogxfy.png



All times are GMT +2. The time now is 14:27.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.