Openkore.com
http://forums.openkore.com/

Usage: Packet Extraction Evaluation Kit (PEEK)
http://forums.openkore.com/viewtopic.php?f=6&t=207278
Page 1 of 9

Author:  4epT [ 28 Jun 2014, 14:18 ]
Post subject:  Usage: Packet Extraction Evaluation Kit (PEEK)

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;

Author:  Astranagun [ 17 Jul 2014, 05:16 ]
Post subject:  Please help with recvpacket, tried PEEK.

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!

Author:  SkylorD [ 17 Jul 2014, 20:53 ]
Post subject:  Re: Please help with recvpacket, tried PEEK.

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.

Author:  Astranagun [ 17 Jul 2014, 23:32 ]
Post subject:  Re: Please help with recvpacket, tried PEEK.

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

Author:  SkylorD [ 18 Jul 2014, 03:04 ]
Post subject:  Re: Please help with recvpacket, tried PEEK.

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).

Author:  Astranagun [ 18 Jul 2014, 06:29 ]
Post subject:  Re: Please help with recvpacket, tried PEEK.

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!

Author:  SkylorD [ 18 Jul 2014, 20:45 ]
Post subject:  Re: Please help with recvpacket, tried PEEK.

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.

Author:  Astranagun [ 19 Jul 2014, 01:26 ]
Post subject:  Re: Please help with recvpacket, tried PEEK.

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!

Author:  onionkute [ 24 Jul 2014, 04:59 ]
Post subject:  Re: Usage: Packet Extraction Evaluation Kit (PEEK)

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

Author:  4epT [ 24 Jul 2014, 07:32 ]
Post subject:  Re: Usage: Packet Extraction Evaluation Kit (PEEK)

onionkute, show your recvpackets.txt

Page 1 of 9 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/