Packet Extractor Fix

Wrote new code? Fixed a bug? Want to discuss technical stuff? Feel free to post it here.

Moderator: Moderators

DOOD
Noob
Noob
Posts: 4
Joined: 29 Jul 2008, 18:39
Noob?: No

Re: Packet Extractor Fix

#31 Post by DOOD »

version 1.0.2 still doesnt work

if i start it at full disasm and the tick with storage key it creates a moslikely empty recvpackets.txt

the recvpackets.txt
#Generated using JCV's RO Tools v1.0.2
#Packets Extracted last [09\25\2008] - 14:17:52
0
0
0
0
thats whats standing in the main window:
Loading executable file... avroexe.exe
Executive code beginning at Virtual Address: 401000
Size Of Executive code: 2D3000
Entry Point At: 6B47BA
Extraction started...
Disassembly started...
Found packet length function start
Done disassembling in (16438ms)
Packet length extraction started...
Found start of function in offset: 000421
0
0
0
0
Total Time Spent: (16ms)
Done saving recvpackets in:
C:\Dokumente und Einstellungen\Nobody0\Desktop\omg\recvpackets.txt
Finding storage encryption key started...
Storage encryption key found at offset 00042203
the found storage keys:
0x050B6F79,0x0202C179,0x00E20120,0x04FA43E3,0x0179B6C8,0x05973DF2,0x007D8D6B,0x08CB9ED9
and uploaded the exe:


if i could help anyhow pls tell me
Motivus
Developers
Developers
Posts: 157
Joined: 04 Apr 2008, 13:33
Noob?: Yes

Re: Packet Extractor Fix

#32 Post by Motivus »

DOOD wrote:version 1.0.2 still doesnt work
Downloading the exe now. It seems like there was a single kRO exe that uses something bizarre, or someone creating private server exes tampered with something. You both have the same entry point and code size.

Edit: Ok, fixed it. As an added bonus I'll attach the recvpackets.txt from the exe for the lazy.
recvpackets.txt
JCV's RO Tools 1.0.3

Functionality
1.0.3 works with all official ragnarok executables that are not packed. It should also work with almost all private server executables, although there is a chance the server provider has packed the exe. If you have an exe that does not work with this release, please post it.

I reccomend uploading this to the main openkore site and linking to it in the wiki in place of the openkore packet extractor. JCV's tool and the official tool work in a very similar way, but JCV's tool is much easier to maintain. The down side to JCV's tool is it has undesirable and outdated options in addition to the packet extractor.

Changes
-Changed how the packet length function's end is found
-Cleaned up output messages
-Added addresses to appropriate messages
-Stopped packet length output to console

Technical Explanation
There is no NOP after the packet list building function in that executable. JCV's packet extractor looked for a "NOP" to signify the end of a function. Searching for "RETN" finds no function end because the disasm used doesn't interpret certain lines. I made it find "POP EBP" and it works out fine for the packet length function. The old version would find the packet list "end" at the end of another function,and then recurse backward to the wrong function start.
You do not have the required permissions to view the files attached to this post.
Oh no.
DOOD
Noob
Noob
Posts: 4
Joined: 29 Jul 2008, 18:39
Noob?: No

Re: Packet Extractor Fix

#33 Post by DOOD »

1.0.3 just worked perfectly and after updating the server datas using the server info finder everything just works (well i get alot unkown # in towns but aslong as it just works :D )

just say.... ITS ALIVE !

thx alot to everyone who helped *looking for karma button* well dont looks like i can do anyhting other then saying a big "THANK YOU GUYS"


(just in case someone has the same error as me after updateing the recvpackets.txt :)

to all thse who just updated their recvpackets.txt and still getting alot of unkown # just follow this guide http://forums.openkore.com/viewtopic.php?p=10570#p10570
Motivus
Developers
Developers
Posts: 157
Joined: 04 Apr 2008, 13:33
Noob?: Yes

Re: Packet Extractor Fix

#34 Post by Motivus »

If 016C is not in recvpackets.txt manually add it as length 43, or else you will receive random disconnects

I haven't checked if JCV's properly checks for that type, but I highly doubt it because it is the first packet that looks like that in the length function. Putting how to fix it here for now, will actually fix it later. It's the same as others, but the packet id is identified differently

BE 6C 01 00 00

It will look like this in most disassemblers:
mov esi, 0x16C

Or like this in the one JCV uses (I think):
mov esi, 16C
Oh no.
Drotsk
Noob
Noob
Posts: 4
Joined: 02 Nov 2008, 13:31
Noob?: No

Re: Packet Extractor Fix

#35 Post by Drotsk »

JCV Auto-Patcher is not working. I Tried to remove GameGuard
Patcher started...
Change caption patch found!
Change caption successfully patched!
Change icon patch found!
Change icon successfully patched!
Network dll offset found!
Network dll (1) successfully patched!
Network dll 2 offset found!
Network dll (2) successfully patched!
Copying file... done!
Data folder patch found!
Read Data folder successfully patched!
Mouse Freedom patch found!
Mouse Freedom successfully patched!
Copying file... done!
Disabling GameGuard...
GameGuard offset found!
GameGuard function call not found!
anes01
Noob
Noob
Posts: 2
Joined: 17 Nov 2008, 19:47
Noob?: Yes

Re: Packet Extractor Fix

#36 Post by anes01 »

JCV's RO tool seems to have a problem...
I am playing pRO specifically valkyrie server...
i download rotools_103.zip w/c Motivus posted lately...
i extracted valkyrie.exe and all i got was this

==================[ ERROR ]==================
Sorry I cant find the offset of the packet length function.
The executable file might be compressed/protected.
=============================================

my question is how to solve this problem...
do the tool supports pRO also?
gex00
Noob
Noob
Posts: 4
Joined: 01 Sep 2008, 12:51
Noob?: Yes

Re: Packet Extractor Fix

#37 Post by gex00 »

Do you guys have any updated version of JCV ro tools if you would you mind uploading it cause I tried all the best ways I could do to solve the Unknown Packet when botting in forsaken RO but nothin seem to work....

Any help would be appreciated.

sry for the bump
moronish
Noob
Noob
Posts: 1
Joined: 09 May 2009, 00:28
Noob?: Yes

Re: Packet Extractor Fix

#38 Post by moronish »

all the links for the packet extractor are dead. Could anybody re up the links?Thanks a bunch. :D
Infinite Sphere
Noob
Noob
Posts: 3
Joined: 26 Jun 2009, 05:15
Noob?: Yes

Re: Packet Extractor Fix

#39 Post by Infinite Sphere »

Would someone consider posting a working link again? All the links in this thread are dead.
kaiz
Noob
Noob
Posts: 3
Joined: 05 Jun 2008, 05:59
Noob?: No

Re: Packet Extractor Fix

#40 Post by kaiz »

Why it doesn't have the other patches?

Code: Select all

Patcher started...
Change caption patch not found!
Change icon patch not found!
Stand alone patch not found!
Data folder patch not found!
WOE patch not found!
Mouse Freedom patch found!
Mouse Freedom successfully patched!
Where can I get the other patches?

And, it can't generate recvpackets.txt?

Code: Select all

Loading executable file... Fkenro.exe
Executive code beginning at Virtual Address: 791000
Size Of Executive code: 1C00
Entry Point At: 792640
Extraction started...
Disassembly started...
Done disassembling in (93ms)
Packet length extraction started...
==================[ ERROR ]==================
Sorry I cant find the offset of the packet length function.
The executable file might be compressed/protected.
=============================================
Please help me... Thanks!