Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Coding Corner
You last visited: Today at 09:56

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Guide] Finding the PK2 Blowfish Key in 5 Easy Steps

Discussion on [Guide] Finding the PK2 Blowfish Key in 5 Easy Steps within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old   #1

 
elite*gold: 260
Join Date: Aug 2008
Posts: 560
Received Thanks: 3,751
[Guide] Finding the PK2 Blowfish Key in 5 Easy Steps

This guide will show how to find the PK2 Blowfish key required for reading and writing to PK2 files. This key stays the same for official Silkroad versions, but private servers modify the key to break tools. By using this guide, you will learn how to easily find the key to make PK2 tools work again (but, I am not covering updating those tools). I've posted this information before and explained the process to people, but I wanted to have a single resource that can be referred to that easily shows it all.

Step 1: Find the initial PK2 loading code in the client. This is easiest done if you simply "search for all referenced text strings" and look for "169841" followed by the name of a PK2 file. Set a breakpoint as shown on the function call. When you step into the function call proceed to Step 2.

Step 2: Locate GFXFileManager’s PK2 loading function. After you stepped into the function call from Step 1, you will need to locate the call to the GFXFileManager DLL. Luckily, this seems to always be shown as CALL EDX, so you should be able to track it down. Set a breakpoint as shown on the function call. When you step into the function call proceed to Step 3.

Step 3: Trace into the higher level function call. Now that we are inside the GFXFileManager DLL, we have to find the top level function that eventually causes the Blowfish key to be generated and used to setup encryption. Carefully refer to the screenshot to locate the function. Set a breakpoint as shown on the function call. When you step into the function call proceed to Step 4. NOTE: Before you step into the function call, the PK2 base key is at the top of the stack. This value is important for non-official versions for my old PK2 writing tools.

Step 4: Trace into the lower level function call. This step might take the longest due to how far down you have to scroll. However, since the format of the GFXFileManager is pretty much the same, it's not hard to find at all. Carefully refer to the screenshot to locate the function. Set a breakpoint as shown on the function call. When you step into the function call proceed to Step 5.

Step 5: "Borrow" the key! Once we step into the final function, we need to set a breakpoint as shown to trace the creation of the Blowfish key. After the breakpoint is hit, we should follow the address in the dump that is written to on the line marked "Blowfish Key" the first time through. The key is always 6 bytes, so as soon as the JL will not execute, you will know the key is complete. From there, you can simply copy it from the dump.

Now, you have the Blowfish Key (Step 5) and the Base PK2 Key (Step 3) required for working with the PK2 files. I'm not going to refer back to my old PK2 tools (which contain some serious flaws) and using these keys because I am in the process of updating them again. However, I still wanted to have a guide to reference about how I go about getting the PK2 keys for different Silkroad versions.
pushedx is offline  
Thanks
37 Users
Old 06/21/2010, 09:22   #2
 
elite*gold: 0
Join Date: Nov 2008
Posts: 42
Received Thanks: 3
Olly for the win
Thanks man and nice guide. Really helpful to me, you have no idea.
omegalugia is offline  
Old 06/21/2010, 10:46   #3
 
.1337's Avatar
 
elite*gold: 25
Join Date: Dec 2008
Posts: 1,070
Received Thanks: 513
yes great tutorial , the first one from yours i understood ^^
.1337 is offline  
Old 07/11/2010, 13:38   #4
 
elite*gold: 0
Join Date: May 2008
Posts: 91
Received Thanks: 26
Nice Guide.
jack11111 is offline  
Old 08/04/2010, 20:11   #5
 
elite*gold: 0
Join Date: Aug 2010
Posts: 54
Received Thanks: 7
Nice TuT. Thank You!
Bl0wFish is offline  
Old 07/08/2011, 02:47   #6
 
elite*gold: 0
Join Date: Sep 2009
Posts: 36
Received Thanks: 0
So before step 1 im suppose to open sro_client ? with what program should i do that ?
peppe27 is offline  
Old 07/08/2011, 08:06   #7
 
Ehab almsry's Avatar
 
elite*gold: 0
Join Date: Nov 2010
Posts: 90
Received Thanks: 18
where we can find all referenced text i dont understand anythig x(
Ehab almsry is offline  
Old 07/08/2011, 08:22   #8
 
inv123's Avatar
 
elite*gold: 0
Join Date: Apr 2007
Posts: 968
Received Thanks: 228
The only prob that the number "169841" is not exist in elite client Dunno synx did sg. to it
inv123 is offline  
Old 07/08/2011, 09:02   #9
 
elite*gold: 0
Join Date: Feb 2010
Posts: 27
Received Thanks: 2
what is the name of this Pro ???

teto_max15 is offline  
Old 07/08/2011, 13:57   #10
 
walus32's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 641
Received Thanks: 379
i can`t get blowfish esro ;p any one can give me? ;p
walus32 is offline  
Old 07/08/2011, 16:24   #11
 
Kazuyaš's Avatar
 
elite*gold: 0
Join Date: Apr 2007
Posts: 449
Received Thanks: 236
Quote:
Originally Posted by inv123 View Post
The only prob that the number "169841" is not exist in elite client Dunno synx did sg. to it
obviously lol. 169841 IS the normal key. and if it doesnt work, then the
key has been changed. so obviously 169841 wouldnt be in there lol.
Kazuyaš is offline  
Old 07/08/2011, 18:32   #12
 
inv123's Avatar
 
elite*gold: 0
Join Date: Apr 2007
Posts: 968
Received Thanks: 228
E lol, but we only need those string than
inv123 is offline  
Old 07/08/2011, 18:54   #13
 
walus32's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 641
Received Thanks: 379
i found string but cant read key ;p
walus32 is offline  
Old 07/08/2011, 20:22   #14
 
elite*gold: 0
Join Date: Feb 2010
Posts: 27
Received Thanks: 2
what is Program name ???
teto_max15 is offline  
Old 07/08/2011, 20:58   #15
 
elite*gold: 27
Join Date: Dec 2010
Posts: 1,579
Received Thanks: 2,705
Search in ollydbg for ".pk2", till you find the latest one, then click on it and follow the guide.
lorveth is offline  
Reply


Similar Threads Similar Threads
[SKIN GUIDE] Make a Cool Skin in 3 Easy Steps!
08/24/2012 - CO2 Guides & Templates - 35 Replies
Make a Skin in 3 Easy Steps! by Dania. Do not copy. Requirements: Winrar Adobe Photoshop CS3 (Preferably) nVidia DDS Plugin (NVIDIA Plug-ins for Adobe Photoshop (Normal/Cube Maps, DDS)) 1) Download this archive of all of the interface files that need to be changed.
[Release]Guide(9 Easy Steps) How to level extremely fast with all classes
09/10/2009 - Dekaron Exploits, Hacks, Bots, Tools & Macros - 5 Replies
If you are a beginner to 2moons, create a mage (TRUST ME) and get your first few aoes. 1. Mage a mage and get ur aoes 2. Set up Vac Hack Credits go to : 6Draco9 and Non Aggro
Easy steps to help you keep from getting banned
06/24/2009 - Ace Online / AirRivals - 7 Replies
Easy steps to not getting banned: 1: use minor hacking (use infinite booster, no overheat, and minor reattack) 2: DO NOT MAJOR HACK ENGINES, this is the easiest way to not get banned 3: DO NOT MAJOR HACK WEAPONS, only minor hack them, like only making reattack time 1second instead of 0 seconds 4: DO NOT MAKE TOO MANY MULTI TARGETS, people can easily spot you attacking all the monsters in teh area
10 Easy steps to Log in With AGBOT
10/28/2008 - SRO Hacks, Bots, Cheats & Exploits - 1 Replies
1. Unpatch Media Patcher if it is installed. 2. Update your client. 3. Close client. 4. Open Nuconnector 5. Open AgBot 6. Open Silkroad, the legit one. Don't click Start Button yet. (Loaders don't work right now) 7. Patch Media Patcher. 8. Click Start. 9. Log in.
[EASY]Getting usa folder to work in 5 easy steps!
08/17/2008 - Dekaron Exploits, Hacks, Bots, Tools & Macros - 6 Replies
Step 1 : Open history.config with notepad usually located at C:\Program Files\Acclaim\2moons... Then change the version to 3.0.0, Don't forget to save! Step 2 : Open launcher.exe also found in C:\Program Files\Acclaim\2moons let if update till it reaches 3.0.5 then EXIT. Remove the folder 3.0.5 also located in the 2moons folder. Step 3 : Download EaSy HaCk v.2.0 found HERE and install to C:\Program Files\Acclaim\2moons. Step 4 : Download the usa folder attached to this thread, and...



All times are GMT +2. The time now is 09:56.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.