Openkore.com

OpenKore Forums
It is currently 23 Oct 2018, 04:18

All times are UTC - 5 hours [ DST ]





Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 90 posts ]  Go to page 1, 2, 3, 4, 5 ... 9  Next
Author Message
 Post subject: Usage: Packet Extraction Evaluation Kit (PEEK)
PostPosted: 28 Jun 2014, 14:18 
Offline
Developers
Developers
User avatar

Joined: 30 Apr 2008, 14:17
Posts: 619
Location: Moskow (Russia)
PEEK - Packet Extraction Evaluation Kit designed by Yommy and Neo.

This extractor works for new files whose size is greater than 6 MB.

But the file, output, the conversion of the need for openkore!!!

SkylorD wrote:
Just select the file and "Extract Lengths".

It'll create a Output folder.
Get your recvpackets and be free. To do the conversion.

It shows:
0x0187 = 6

Must:
0187 6

You'll copy all lines and will open your notepad, paste the code and save your file as recvpackets.txt and not recvpackets.ini


Links:
https://github.com/MStr3am/PEEK
https://github.com/ThemonChan/PEEK
http://nbsxey3vnrsxgltxom.cmle.ru/board ... -analyzer/

Mini guide:
1. download PEEK
2. run PEEK.exe
3. click "Browse" and select your client file (not necessarily exe!)
4. click "Start Analyzer"
5. close PEEK
6. open folder: ..\PEEK\Output\
7. run 1.bat -> Since mediafire files is not avaiable:
Download the code in the end of this post, paste in notepad, save as 'recvoutput.pl' and close it. Move it to Output folder inside PEEK directory. Run it.
8. file will appear: recvpackets.txt

Script to get the clean recvpackets :
Code:
#!/usr/bin/env/perl

use strict;
use warnings;

package iwant_myrecvpackets;

my %packets;

&start();

sub start {
&main();
system("pause");
}

sub main {
my ($message, $file, $input, $output, $files, $found) = 0;
$found = -1;
   foreach (<*>) {
   $files .= $_."\n";
   if (-d $_ && $_ =~ /^Output$/ig) { $found = 1;};
   }
      if ($files =~ /(recvpackets.+\.ini)/ig) {
      #$message = "Type 1 from ThemonChan.\n";
      $file = $1;
      } elsif ($files =~ /(packetlengths.+\.ini)/ig) {
      #$message .= "Type 2 from MrStr3am\n";
      $file = $1;
      } elsif (substr(Win32::GetCwd(), eval (length(Win32::GetCwd()) - 6), length(Win32::GetCwd()) ) ne 'Output') {
      $message = "\nDo you have sure this file is inside \'Output\' folder?\n";
         if ($found eq 1) {         #If we aren't inside output folder, we could be on root, check for existance!
         $message .= "Please bro, move this script to \'Output\' folder! I can see it\n";
         }
      } else {
      $message = "\nPlease, start PEEK first to extract recvpackets initial file.\nThen run this script again.\nIf you've already done it, Try asking on OK forum\n";
      } if (substr(Win32::GetCwd(), eval (length(Win32::GetCwd()) - 20), length(Win32::GetCwd()) ) !~ /([P][E][E][K]([-]?[m][a][s][t][e][r])?)|ThemonChan|MrStr.am/ig) {
      $message .= "Please, move this script to PEEK/Output folder!\n";
      }
goto end if ($message);

open $input, "<$file" or $message = "Can't open the input file\n";
open $output, ">recvpackets.txt" or $message = "Can't create recvpackets output file\n";

goto end if ($message);

read_lines($input);
get_output($output);
close_handles($input, $output);

end:

printf("Length = %d packets\nPackets were extracted with success...\n", eval(keys %packets)) if (!$message);
printf("Errors:%d\n%s\n", eval($message && 1), $message) if ($message);
return 1;
}

sub close_handles {
my ($dw1, $dw2) = @_;
   close($dw1);
   close($dw2);
return 1;
}

sub read_lines {
my $file = shift;
my ($lines, $packetid);
   while (<$file>) {
   $lines = $_;
      if ($lines =~ /0x(0...) = ((-)?\d+)/ig) {
      undef $packetid;
      $packetid = uc($1);
         if (!exists($packets{$packetid})) {
         $packets{$packetid} = $2;
         }
      }
   }
return 1;
}

sub get_output {
my $file = shift;
   foreach my $value (sort keys %packets) {
   print $file "$value $packets{$value}\n";
   }
return 1;
}

1;

_________________
All my posts are made by machine translator!
¤ Manual ¤ Anti BotKiller ¤ Packet Extractor v3 ¤
Image
Image


Top
 Profile  
 
 Post subject: Please help with recvpacket, tried PEEK.
PostPosted: 17 Jul 2014, 05:16 
Offline
Noob
Noob

Joined: 18 Oct 2010, 11:12
Posts: 5
Good day!
If it is possible could anyone help me with extracting recvpacket with this client:
http://www.mediafire.com/download/l4aq1 ... ragexe.exe
I tried with PEEK but the error "No match found in Length Table" came out, I haven't been able to find a solution for this, so I hope someone could help me with it.
Thank you much for your help!


Top
 Profile  
 
 Post subject: Re: Please help with recvpacket, tried PEEK.
PostPosted: 17 Jul 2014, 20:53 
Offline
Moderators
Moderators
User avatar

Joined: 16 Dec 2011, 02:53
Posts: 1211
Location: Brazil
Yeah is possible using PEEK. I've extracted here.
Read again the topic explaining the PEEK edit the original file. Maybe you're hooking the edited file by peek and not the original. ^^

Try again !

I wish you good luck.

_________________
"'There are three things all wise men fear: the sea in storm, a night with no moon, and the anger of a gentle man.'" :P

viewtopic.php?f=10&t=16117

Thanks for this Eternal! =D <3<3


Top
 Profile  
 
 Post subject: Re: Please help with recvpacket, tried PEEK.
PostPosted: 17 Jul 2014, 23:32 
Offline
Noob
Noob

Joined: 18 Oct 2010, 11:12
Posts: 5
I'm pretty sure I chose the right one, I even downloaded a fresh client and tried with the same error, could you take a look at it? And if it is possible, could you provide me with the recvpacket? That would be great, thanks.
Image


Top
 Profile  
 
 Post subject: Re: Please help with recvpacket, tried PEEK.
PostPosted: 18 Jul 2014, 03:04 
Offline
Moderators
Moderators
User avatar

Joined: 16 Dec 2011, 02:53
Posts: 1211
Location: Brazil
PEEK edit your original exe. The original exe now is called :

AExample_backup_byPEEK.exe

Now you need to rename the file and please, to be sure the PEEK won't open your client, do a copy of your exe and move for your desktop. Now use the PEEK in your desktop/original.exe or the old name.your filename but not erased your computer name. Read the topic again (PEEK).

_________________
"'There are three things all wise men fear: the sea in storm, a night with no moon, and the anger of a gentle man.'" :P

viewtopic.php?f=10&t=16117

Thanks for this Eternal! =D <3<3


Top
 Profile  
 
 Post subject: Re: Please help with recvpacket, tried PEEK.
PostPosted: 18 Jul 2014, 06:29 
Offline
Noob
Noob

Joined: 18 Oct 2010, 11:12
Posts: 5
SkylorD wrote:
PEEK edit your original exe. The original exe now is called :

AExample_backup_byPEEK.exe

Now you need to rename the file and please, to be sure the PEEK won't open your client, do a copy of your exe and move for your desktop. Now use the PEEK in your desktop/original.exe or the old name.your filename but not erased your computer name. Read the topic again (PEEK).

Thank you for a quick answer, I read the topic many times, probably because I did something wrong without knowing it. The last time I used Openkore was 4 years ago, in any case let me describe you what did I do:

1 - I browsed to my server .exe file and opened it with PEEK.
2 - I pressed on Start Analyzer, PEEK backup my original .exe with backup_byPEEK.exe name(this is my original .exe), and also created an additional ws2_pp.dll.
3 - I started my MODIFIED client by PEEK, logged into my account, PEEK detected the sent and receiving packets fine, until I choose a character and log into the game, then the error jumps out.

Now I'm unsure what I should do in this case, should I delete the modified .exe, rename the original .exe and try again with it, or something else, I have read the topic but can't really understand what I should do.
If it is possible let me know what I should do, thank you for your patience!


Top
 Profile  
 
 Post subject: Re: Please help with recvpacket, tried PEEK.
PostPosted: 18 Jul 2014, 20:45 
Offline
Moderators
Moderators
User avatar

Joined: 16 Dec 2011, 02:53
Posts: 1211
Location: Brazil
Quote:
I started my MODIFIED client by PEEK, logged into my account, PEEK detected the sent and receiving packets fine, until I choose a character and log into the game, then the error jumps out.

Now i see.
Don't need to do this step. You just need to click in "Start Analyser". You can close now.
And you'll notice in your PEEK folder a new folder called "Output" was created. Open it and check the file recvpackets_somenumbers.ini

For example, if you will play in your servers, you need to open the BACKUP file instead of "ORIGINAL". Sometimes you can receive some errors or get a wrong info.
You should trash the modified file. And rename the backup file, because this is the original.

_________________
"'There are three things all wise men fear: the sea in storm, a night with no moon, and the anger of a gentle man.'" :P

viewtopic.php?f=10&t=16117

Thanks for this Eternal! =D <3<3


Top
 Profile  
 
 Post subject: Re: Please help with recvpacket, tried PEEK.
PostPosted: 19 Jul 2014, 01:26 
Offline
Noob
Noob

Joined: 18 Oct 2010, 11:12
Posts: 5
Thank you for answer, I see, but since I've got Packet Tokenizer Unknown Packet 082D problem I presumed it was because of the invalid recvpacket, but it should be good.
If it is OK could you take a look at my configurations?
This is my server info: http://pastebin.com/w9kCb1wA
This is my recvpacket: http://pastebin.com/YnLSxbVu
Thanks again!


Top
 Profile  
 
 Post subject: Re: Usage: Packet Extraction Evaluation Kit (PEEK)
PostPosted: 24 Jul 2014, 04:59 
Offline
Noob
Noob

Joined: 23 Jul 2014, 17:59
Posts: 4
I still get Packet Tokenizer: Unknown switch: 082D error, can you please help me to check it? This is the client, thank you.
http://www.mediafire.com/download/j80tc ... 1/vSRO.exe


Top
 Profile  
 
 Post subject: Re: Usage: Packet Extraction Evaluation Kit (PEEK)
PostPosted: 24 Jul 2014, 07:32 
Offline
Developers
Developers
User avatar

Joined: 30 Apr 2008, 14:17
Posts: 619
Location: Moskow (Russia)
onionkute, show your recvpackets.txt

_________________
All my posts are made by machine translator!
¤ Manual ¤ Anti BotKiller ¤ Packet Extractor v3 ¤
Image
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 90 posts ]  Go to page 1, 2, 3, 4, 5 ... 9  Next

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group