Usage: Packet Extractor v3

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

Moderator: Moderators

parkerjj
Noob
Noob
Posts: 4
Joined: 16 Jul 2008, 23:39
Noob?: Yes

Re: Usage: Packet Extractor v3

#441 Post by parkerjj »

@Raider , Plz share us the Ever_Rox_bRO-Extractor thanks....

so we can do the extraction ourselves.
Thanks~~
aakk
Human
Human
Posts: 33
Joined: 25 Jan 2009, 00:30
Noob?: Yes

Re: Usage: Packet Extractor v3

#442 Post by aakk »

Raider wrote:
kokal wrote:
Stack trace:
Can't reconstruct unknown packet: 0438 at src/Network/PacketParser.pm line 172.
at src/Network/PacketParser.pm line 172
Network::PacketParser::reconstruct('Network::Send::kRO::RagexeRE_2012_04_10a=HASH(0x5fe5d84)', 'HASH(0x63ef604)') called at src/Network/Send.pm line 685
Network::Send::sendSkillUseLoc('Network::Send::kRO::RagexeRE_2012_04_10a=HASH(0x5fe5d84)', 47, 9, 80, 222) called at src/Task/UseSkill.pm line 283
After more detail to check your error message, seems you are using the recvpackets.txt which is located in tables\kRO\RagexeRE_2012_04_10a.
The new recvpackets.txt should be placed in "tables\kRO\RagexeRE_2012_04_10a" instead of "tables\kRO".
tables\KRO instead of RagexeRE

can u help me?
i tried xkore 1 mode, wireshark and skill use at RO client, and kore

it's capture packets
RO client => Data: 3c080a002e00a21c9006

kore 3 tries => Data: 3c080a002e0000000000
Data: 3c080a002e0000000000
Data: 3c080a002e0000000000

and kore sm 47 (0438) => Data: 380409002f002b00ce00

0438 skill_use_location is work, but 083C skill_use not work

weird... sm command create blank packets
how to fix?

src\Network\Send\kRO\RagexeRE_2012_04_10a.pm

Code: Select all

#########################################################################
#  OpenKore - Packet sending
#  This module contains functions for sending packets to the server.
#
#  This software is open source, licensed under the GNU General Public
#  License, version 2.
#  Basically, this means that you're allowed to modify and distribute
#  this software. However, if you distribute modified versions, you MUST
#  also distribute the source code.
#  See http:#//www.gnu.org/licenses/gpl.html for the full license.
########################################################################
package Network::Send::kRO::RagexeRE_2012_04_10a;

use strict;
use base qw(Network::Send::kRO::RagexeRE_2012_03_07f);

use Log qw(debug);
use Utils qw(getHex);

sub version { 30 }

sub new {
	my ($class) = @_;
	my $self = $class->SUPER::new(@_);
	
	my %packets = (
		'02C4' => undef,
# TODO 0x0360,6,reqclickbuyingstore,2
# TODO 0x0366,90,useskilltoposinfo,2:4:6:8:10
		'0369' => ['actor_action', 'a4 C', [qw(targetID type)]],
		'0438' => ['skill_use_location', 'v4', [qw(lv skillID x y)]],
# TODO 0x0819,-1,searchstoreinfo,2:4:5:9:13:14:15
		'083C' => ['skill_use', 'v3 a4', [qw(lv skillID targetID)]],#10
		'0865' => undef,
		'086A' => undef,
		'086C' => ['storage_item_add', 'v V', [qw(index amount)]],
		'0871' => ['actor_look_at', 'v C', [qw(head body)]],
# TODO 0x0884,6,solvecharname,2
		'0885' => undef, # TODO 0x0885,5,hommenu,2:4
		'0886' => ['sync', 'V', [qw(time)]],
		'0887' => undef,
		'0889' => ['actor_info_request', 'a4', [qw(ID)]],
		'0890' => undef,
		'0891' => ['item_drop', 'v2', [qw(index amount)]],
# TODO 0x089C,26,friendslistadd,2
		'08A6' => ['storage_item_remove', 'v V', [qw(index amount)]],
# TODO 0x08D7,28,battlegroundreg,2:4
# TODO 0x08E5,41,bookingregreq,2:4
# TODO 0x08E7,10,bookingsearchreq,2
# TODO 0x08E9,2,bookingdelreq,2
# TODO 0x08EB,39,bookingupdatereq,2
# TODO 0x08EF,6,bookingignorereq,2
# TODO 0x08F1,6,bookingjoinpartyreq,2
# TODO 0x08F5,-1,bookingsummonmember,2:4
# TODO 0x08FB,6,bookingcanceljoinparty,2
# TODO 0x0907,5,moveitem,2:4
# TODO 0x091C,26,partyinvite2,2
		'0938' => ['item_take', 'a4', [qw(ID)]],
		'093B' => undef,
# TODO 0x0945,-1,itemlistwindowselected,2:4:8
		'094B' => ['map_login', 'a4 a4 a4 V C', [qw(accountID charID sessionID tick sex)]],
# TODO 0x0961,36,storagepassword,0
		'0963' => undef,
		'096A' => undef,
	);
	$self->{packet_list}{$_} = $packets{$_} for keys %packets;
	
	my %handlers = qw(
		map_login 094B
		sync 0886
		actor_action 0369
		actor_info_request 0889
		actor_look_at 0871
		item_take 0938
		item_drop 0891
		storage_item_add 086C
		storage_item_remove 08A6
		skill_use 083C
		skill_use_location 0438
	);
	$self->{packet_lut}{$_} = $handlers{$_} for keys %handlers;
	
	$self;
}

sub sendGetCharacterName {
	my ($self, $ID) = @_;
	$self->sendToServer(pack('v a4', 0x0884, $ID));
	debug "Sent get character name: ID - ".getHex($ID)."\n", "sendPacket", 2;
}

1;

=cut
what is?
		'0368' => undef,
		'0804' => undef,
		'0806' => undef,
		'0808' => undef,
		'0861' => undef,
		'0863' => undef,
		'0870' => undef,
		'0884' => undef,
		'0926' => undef,
		'0929' => undef,

//2012-04-10aRagexeRE
0x01FD,15,repairitem,2
0x089C,26,friendslistadd,2
0x0885,5,hommenu,2:4
0x0961,36,storagepassword,0
0x0288,-1,cashshopbuy,4:8
0x091C,26,partyinvite2,2
0x094B,19,wanttoconnection,2:6:10:14:18
0x0369,7,actionrequest,2:6
0x083C,10,useskilltoid,2:4:6
0x0439,8,useitem,2:4
0x0945,-1,itemlistwindowselected,2:4:8
0x0815,-1,reqopenbuyingstore,2:4:8:9:89
0x0817,2,reqclosebuyingstore,0
0x0360,6,reqclickbuyingstore,2
0x0811,-1,reqtradebuyingstore,2:4:8:12
0x0819,-1,searchstoreinfo,2:4:5:9:13:14:15
0x0835,2,searchstoreinfonextpage,0
0x0838,12,searchstoreinfolistitemclick,2:6:10
0x0437,5,walktoxy,2
0x0886,6,ticksend,2
0x0871,5,changedir,2:4
0x0938,6,takeitem,2
0x0891,6,dropitem,2:4
0x086C,8,movetokafra,2:4
0x08A6,8,movefromkafra,2:4
0x0438,10,useskilltopos,2:4:6:8
0x0366,90,useskilltoposinfo,2:4:6:8:10
0x0889,6,getcharnamerequest,2
0x0884,6,solvecharname,2
0x08E5,41,bookingregreq,2:4	//Added to prevent disconnections
0x08E6,4
0x08E7,10,bookingsearchreq,2
0x08E8,-1
0x08E9,2,bookingdelreq,2
0x08EA,4
0x08EB,39,bookingupdatereq,2
0x08EC,73
0x08ED,43
0x08EE,6
0x08EF,6,bookingignorereq,2
0x08F0,6
0x08F1,6,bookingjoinpartyreq,2
0x08F2,36
0x08F3,-1
0x08F4,6
0x08F5,-1,bookingsummonmember,2:4
0x08F6,22
0x08F7,3
0x08F8,7
0x08F9,6
0x08FA,6
0x08FB,6,bookingcanceljoinparty,2
0x0907,5,moveitem,2:4
0x0908,5
0x08D7,28,battlegroundreg,2:4 //Added to prevent disconnections
=pod
cenaurius
Noob
Noob
Posts: 4
Joined: 14 Apr 2013, 09:42
Noob?: Yes

Re: Usage: Packet Extractor v3

#443 Post by cenaurius »

cenaurius wrote:
freezer123 wrote:
cenaurius wrote:can you please extract this?

https://www.dropbox.com/s/w91ndewiie2m0d5/VanRO.exe

thnx
Download packet extractor V3 by Klabmouse:
1) Download and unpack http://openkore.svn.sourceforge.net/vie ... /?view=tar
2) Download start.exe and XSTools.dll from http://misc.openkore.com and unpack to the same folder where packet_extract.pl is placed (optional)
3) copy target .exe file to the same folder where packet_extract.pl is placed
And follow this steps..
just follow this instructions:

command prompt is located at start menu/accesories/command promt
1. open command promt(you should save the openkore-v3 in my doc for you to able to use cmd easilly)
2. then type cd my documents(enter)
3.cd openkore-v3(enter)
4.cd v3(enter)
5.start.exe ! packet_extract.pl target.exe(enter)
(then wait till Extractor generated. Please run blah blah
6.type extracor.exe > recvpackets.txt
8. look to your openkore-v3/v3 folder.. you will find the extracted packet.

very easy steps.. for those not really famillar in using cmd.

use this steps for easy extracting....
Also, be sure you have the correct or updated servertype, otherwise even if you have extracted the receivepackets, you will still have packets error.

i followed all the steps but i get this error Search for Packet Len Map failed!
what did i do wrong T_T

i really cant find a way to make this work can anyone extract this file so maybe you can identify the problem? thnx.........

https://www.dropbox.com/s/w91ndewiie2m0d5/VanRO.exe
ptcarino
Plain Yogurt
Plain Yogurt
Posts: 62
Joined: 17 Jul 2010, 00:48
Noob?: No
Location: pRO Valkyrie

Re: Usage: Packet Extractor v3

#444 Post by ptcarino »

i was testing this and i kept wondering why it fails. then i realized maybe i need to unpack the exe. then it worked.
but my problem now is that extractor.exe crashes when i run it.

i'm using Win7 Ultimate 64bit and i play on pRO valkyrie server.
Image
Maple
Noob
Noob
Posts: 14
Joined: 21 Mar 2013, 05:55
Noob?: No

Re: Usage: Packet Extractor v3

#445 Post by Maple »

just a little request
http://www.mediafire.com/?zt5hcsm125yw0mf
following is my ragexe.exe
I've done the recvpacket exract step.
however I cannot find the 3 encryption keys and some headers as following:
actor_action
skill_use
character_move
sync
actor_look_at
item_take
item_drop
storage_item_add
storage_item_remove
skill_use_location
actor_info_request
map_login
homunculus_command
party_setting

I've already search by IDA 5.X and Olly as following reply shows at http://forums.openkore.com/viewtopic.ph ... 6&start=80

Yet, I know maybe these step need to do by hands, but I need know how-to. Or it will ruin me week by week. :?

Appreciate for your tools and OpenKore updates. I must do something on my own by teaches, and maybe in the future to join the development.

EDIT: also the sync ex packet cannot be found using kLab's way.
Would rather have Ever Rox or kLab or someone else teaches me.
Last edited by Maple on 16 Apr 2013, 06:00, edited 1 time in total.
parkerjj
Noob
Noob
Posts: 4
Joined: 16 Jul 2008, 23:39
Noob?: Yes

Re: Usage: Packet Extractor v3

#446 Post by parkerjj »

Maple wrote:just a little request
http://www.mediafire.com/?zt5hcsm125yw0mf
following is my ragexe.exe
I've done the recvpacket exract step.
however I cannot find the 3 encryption keys and some headers as following:
actor_action
skill_use
character_move
sync
actor_look_at
item_take
item_drop
storage_item_add
storage_item_remove
skill_use_location
actor_info_request
map_login
homunculus_command
party_setting

I've already search by IDA 5.X and Olly as following reply shows at http://forums.openkore.com/viewtopic.ph ... 6&start=80

Yet, I know maybe these step need to do by hands, but I need know how-to. Or it will ruin me week by week. :?

Appreciate for your tools and OpenKore updates. I must do something on my own by teaches, and maybe in the future to join the development.

我做到了跟你相同的一步。。。

我也在找那三个KEY。。。

http://www.cnkore.com/forum.php?mod=red ... &pid=74339
freezer123
Plain Yogurt
Plain Yogurt
Posts: 90
Joined: 28 Jul 2008, 05:12
Noob?: No

Re: Usage: Packet Extractor v3

#447 Post by freezer123 »

cenaurius wrote: i really cant find a way to make this work can anyone extract this file so maybe you can identify the problem? thnx.........

https://www.dropbox.com/s/w91ndewiie2m0d5/VanRO.exe
you cannot extract the receive packets if the client is packed, you need to unpack it first. use stripper 2.11
Image
BelziBhaal
Noob
Noob
Posts: 8
Joined: 18 Mar 2010, 07:28
Noob?: No

Re: Usage: Packet Extractor v3

#448 Post by BelziBhaal »

The links to the new PE in the previous pages are dead, so I would appreciate it if someone would kindly strip the packets from this exe.

http://members.iinet.net.au/~belzibhaal/VanRO.exe

Either that or give us a new link for the extractor and I'll do it myself.

Many thanks.

Edit: Hurr, I didn't see the above post. Stripper seems to crash on my system. Doesn't even want to load. Any other suggestions?
freezer123
Plain Yogurt
Plain Yogurt
Posts: 90
Joined: 28 Jul 2008, 05:12
Noob?: No

Re: Usage: Packet Extractor v3

#449 Post by freezer123 »

Run it as Administrator..
Image
kyoshiro066
Noob
Noob
Posts: 1
Joined: 17 Apr 2013, 03:35
Noob?: Yes

Re: Usage: Packet Extractor v3

#450 Post by kyoshiro066 »

can someone extract this PLEASE!! PLEASE!!
thank u..

http://www.mediafire.com/?pftkwmrl83wbb45