Register for your free account! | Forgot your password?

You last visited: Today at 06:16

  • 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/12/2022, 21:30   #481

 
BladeTiger12's Avatar
 
elite*gold: 64
Join Date: May 2011
Posts: 1,229
Received Thanks: 850
Quote:
Originally Posted by bledior View Post
@ I just tested it and I have again problems with encodings lol.
Quote:
Originally Posted by bledior View Post
@ actually its displaying correctly on packet logger but not in my app hmmm and I didnt change encoding.
Strange, it should work as intended:



You downloaded this one?



BladeTiger12 is offline  
Thanks
1 User
Old 04/12/2022, 21:41   #482
 
elite*gold: 0
Join Date: Oct 2021
Posts: 33
Received Thanks: 1
@ yes I even redownloaded it now to make sure, same problems. So annoying.
bledior is offline  
Old 04/12/2022, 21:42   #483
 
elite*gold: 0
Join Date: Mar 2022
Posts: 2
Received Thanks: 0
@ ok lets agree you dont fix it next time! Slava Nostale!
PoteznyFaryna is offline  
Old 04/12/2022, 21:50   #484
 
elite*gold: 0
Join Date: Oct 2021
Posts: 33
Received Thanks: 1
@ last time it worked properly for me was when you were sending packet after fromLocal8Bit.
@ not like now after using QTextCodec

It was like this.

Code:
	const QString sPacket(QString::fromLocal8Bit(i_szPacket).replace('\n', ""));

	emit g_pUi->addPacket(sPacket, EPacketType::PTReceive);
Now its like this and not working properly for me.

Code:
	const QString sPacket = QString::fromLocal8Bit(i_szPacket).replace('\n', "");

	QTextCodec* codec = QTextCodec::codecForName("windows-1250");
	QTextDecoder decoder{ codec };

	QString str = decoder.toUnicode(i_szPacket);

	emit g_pUi->addPacket(str, EPacketType::PTReceive);
But I have to say that packet logger console is now displaying properly texts. Maybe you have to seperate it. Send packet through tcp only after fromLocal8Bit but display packets in console after QtextCodec. Not sure.
bledior is offline  
Old 04/12/2022, 22:24   #485
 
elite*gold: 0
Join Date: Jan 2020
Posts: 69
Received Thanks: 15
works very well
Kymej is offline  
Old 04/12/2022, 22:30   #486

 
BladeTiger12's Avatar
 
elite*gold: 64
Join Date: May 2011
Posts: 1,229
Received Thanks: 850
Quote:
Originally Posted by bledior View Post
@ last time it worked properly for me was when you were sending packet after fromLocal8Bit.
@ not like now after using QTextCodec

It was like this.

Code:
	const QString sPacket(QString::fromLocal8Bit(i_szPacket).replace('\n', ""));

	emit g_pUi->addPacket(sPacket, EPacketType::PTReceive);
Now its like this and not working properly for me.

Code:
	const QString sPacket = QString::fromLocal8Bit(i_szPacket).replace('\n', "");

	QTextCodec* codec = QTextCodec::codecForName("windows-1250");
	QTextDecoder decoder{ codec };

	QString str = decoder.toUnicode(i_szPacket);

	emit g_pUi->addPacket(str, EPacketType::PTReceive);
But I have to say that packet logger console is now displaying properly texts. Maybe you have to seperate it. Send packet through tcp only after fromLocal8Bit but display packets in console after QtextCodec. Not sure.
Can you quickly try out my node code I posted ? Wondering if this is working on your machine.
BladeTiger12 is offline  
Old 04/12/2022, 23:16   #487
 
elite*gold: 0
Join Date: Oct 2021
Posts: 33
Received Thanks: 1
I tried it and it working properly... But the same code inside electron doesnt work properly. Holy ****, sorry about the mess that I caused. It looks like its something with electron. I have to dig into it.
bledior is offline  
Old 04/13/2022, 20:50   #488

 
BladeTiger12's Avatar
 
elite*gold: 64
Join Date: May 2011
Posts: 1,229
Received Thanks: 850
Quote:
Originally Posted by bledior View Post
I tried it and it working properly... But the same code inside electron doesnt work properly. Holy ****, sorry about the mess that I caused. It looks like its something with electron. I have to dig into it.
In the electron quickstart project it worked too:



I'm really curious what you changed. Does your "index.html" contains:
<meta charset="UTF-8">

in between the "<head>...</head>".
BladeTiger12 is offline  
Old 04/13/2022, 20:59   #489
 
elite*gold: 0
Join Date: Oct 2021
Posts: 33
Received Thanks: 1
@ The thing is that I didnt change anything. W/e its not my priority to think about it now.
bledior is offline  
Old 04/16/2022, 13:30   #490
 
elite*gold: 0
Join Date: Dec 2015
Posts: 32
Received Thanks: 24
It is just me or RECV packets are making some mess with new lines (in version from 12.04.2022)?

When last recorded packet was SEND -
When last recorded packet was RECV -

Saving packets to file also is creating with empty lines
krychu132 is offline  
Old 04/16/2022, 13:44   #491
 
elite*gold: 0
Join Date: Jul 2020
Posts: 2
Received Thanks: 0
hello can copy money on private server nostale?
kazik093 is offline  
Old 04/16/2022, 13:52   #492

 
BladeTiger12's Avatar
 
elite*gold: 64
Join Date: May 2011
Posts: 1,229
Received Thanks: 850
Quote:
Originally Posted by kazik093 View Post
hello can copy money on private server nostale?
Yeah, it's very easy, just "receive" the packet: "gold 2000000000 0" or whatever it was.
BladeTiger12 is offline  
Thanks
1 User
Old 04/16/2022, 14:02   #493
 
elite*gold: 0
Join Date: Jul 2020
Posts: 2
Received Thanks: 0
I need a little help because I can not do it would be useful to someone who explains
kazik093 is offline  
Old 04/16/2022, 14:04   #494

 
BladeTiger12's Avatar
 
elite*gold: 64
Join Date: May 2011
Posts: 1,229
Received Thanks: 850
Nah sorry, I won't help doing that. It's illegal!
BladeTiger12 is offline  
Old 04/18/2022, 13:56   #495
 
elite*gold: 0
Join Date: Feb 2013
Posts: 36
Received Thanks: 4
Hey, now Im trying to send packets via c# console app, but it wont work. I can receive all packages but cant send them.
Here is my code to receive packages:
Code:
using System.Net.Sockets;
using System.Text;

namespace Client
{
    class Program
    {
        const int PORT_NO = 50659;
        const string SERVER_IP = "127.0.0.1";
        static void Main(string[] args)
        {
            //---create a TCPClient object at the IP and port no.---
            TcpClient client = new TcpClient(SERVER_IP, PORT_NO);
            NetworkStream nwStream = client.GetStream();

            while(true)
            {
                //---read back the text---
                byte[] bytesToRead = new byte[client.ReceiveBufferSize];
                int bytesRead = nwStream.Read(bytesToRead, 0, client.ReceiveBufferSize);
                Console.WriteLine(Encoding.ASCII.GetString(bytesToRead, 0, bytesRead));
            }
        }
    }
}
Thanks to stack overflow xD

How I can send packets to the server?

EDIT:
I got it, I need to write 1 (for sending) or 0 (for receiving) followed by the command.....

I have an other problem in c#
I can send and receive the packets but i guess the performance is the problem im trying to filter the packages "e_info" and sometimes it displays false packages. Im filtering with this method:
Code:
public Boolean Like(string s,string str)
        {
            Boolean check = s.Contains(str);
            return check;
        }
in the main loop Im trying to find the packet like this:
Code:
while (true)
            {
                //RECEIVE PACKETS
                byte[] bytesToRead = new byte[client.ReceiveBufferSize];
                int bytesRead = nwStream.Read(bytesToRead, 0, client.ReceiveBufferSize);
                string[] packet = { Encoding.ASCII.GetString(bytesToRead, 0, bytesRead) };
                DateTime date = DateTime.Now;
                foreach (String s in packet)
                {
                    if (instance.Like(s, "0 e_info"))
                    {
                        Console.WriteLine("[" + date + "]" + s);
                    }
                }
            }
The timestamp also does not appear every time:

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 +1. The time now is 06:16.


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.