Today I want to share a program with you that I wrote some weeks ago, to make one of my projects more easier.It can be used by programmer who write hacks/bots for metin2.
I know, it isn´t that hard to program something like that, so don't leave comments here like that
Description
The NetworkStreamReader is, as its name says, an application that reads the network-traffic, sent by server->client and client->server. The packets are unencrypted so that you can easily study its content. I've implemented 2 "modes" to sniff for networktraffic. First one is the live-monitor mode which allows you to see the packets printed at runtime on the console. The second mode stores the packets into a .txt file, located in the binarys directory. 2nd mode automatically save both streams, recv and send. For more information please read the "Info about .ini"-part of this post.
Output
If packet is sent by client you get the following output:
PHP Code:
[TYPE: OUTGOING]
Called by 0x57aedb
HEADER: 0x8
SIZE: 16 bytes
8 1 0 47 ed b3 e 0 c0 5e 4 0 65 bf 1a a
"Called by" is the address from where the send-function is called from.
This gives you the chance to easily locate(jump to address) the function that handles the movement in memory, and call it by its address or do anything else in your hack/bot.
Setup
1.) Create Folder in the directory of your metin2client.exe/bin and name it initInfo
2.) Move the Settings.ini, included in the download, into this directory
3.) Setup the Settings.ini correctly:
CLIENT_ID = 0 for GF orTo print the packets to console, set
CLIENT_ID = 1 for SG or
CLIENT_ID = 2 for WOM2
PRINT_TO_CONSOLE = 1otherwise you have to save the packets in .txt.
4.) Inject NetworkStreamHook.dll into the mainprocess of metin2
Info for GF: Inject when the loading window of metin2 appears. Otherwise it will may fail because of gameguard.
Info about .ini
Have fun with it.