[GUIDE] How to change your hax on the fly!

03/11/2008 04:41 SethRizzen#1
Hello all,

Back when I did alot of teleporting (2004-2005), I used a simple method to allow me to save my current location and teleport back to it at any time (on the same continent). This method can be used for most hacks.

It requires some C/C++ knowledge, but what you do is:

A.) Find your code you are going to bypass/inject to.
B.) Create your codecave
C.) Allocate some EMPTY memory space
D.) Write your codecave to read from said memory space
E.) Write your information on the fly to that memory space dynamically.

For examaple: (This code does not exist in PS, only an example)
Code:
//Let's take this code:
00696969     MOV EAX, DWORD PTR [EDI+18] ;MAX Capacitor??

//Change it to:
00696969     JMP 002B0000 ;Our codecave

//Our codecave looks like:
002B0000    MOV EAX, DWORD PTR [002B1000]
002B0006    JMP 0069696C ;The code immediately after our JMP to codecave
Ok, now that we've setup our hack to read the new MAX Capacitor value from the address 002B1000, let's figure out a way to change the value stored there. Let's whip out our handy, dandy, C++ skeelz:

Code:
//Inside our main loop:
float fMyValue = 0.0;
if (GetAsyncKeyState(VK_UP))
{
    fMyValue += 0.1;
}
else if (GetAsyncKeyState(VK_DOWN))
{
     if (fMyValue > 0.0) fMyValue -= 0.1; //Don't wanna go negative, bad juju!
}

MemoryWriteFunction(0x002B1000,fMyValue); //Google for WriteProcessMemory
And it is as simple as that!

Keep in mind, this is all theoretical code and WILL NOT work as is. There is more C++ code you need (google!) and the code injection is ONLY an example.

Enjoy!
-Seth
03/11/2008 06:05 j00b#2
we use a much much more simple way :]
03/11/2008 07:24 Liquid-K#3
good guide to code caving, ya got the general concept.

I agree Joob.
03/11/2008 20:49 Laughing_Man#4
Great guide....
03/11/2008 22:47 SethRizzen#5
Does your simpler way involve figuring out the whole player structure and just modifying that instead?

-Seth
03/12/2008 00:02 SethRizzen#6
lol, obviously, but this might be valuable for being able to change your RoF on the fly ;)
03/12/2008 03:12 j00b#7
no, we know how to teleport ourselves now, basically the same as pulling but with your personal addresses
03/13/2008 22:01 dragon89928#8
I hearby start a petition to get craby to remove his sig. Don't bring an anti hacking petition to the most well known hacking site on the net /gtfo.
03/14/2008 03:08 j00b#9
really weak of you craby
03/14/2008 03:16 Liquid-K#10
LOL, I think thats a joke. Unless he has joined the Jedi. Dunno?
03/15/2008 04:29 EviLcLoWnS™#11
hahahaha crabys sig made me laugh. Nah if he was a honest kid he wouldent have made guides for people. Lawl a planetside hacker, wanting people too sign something too get ride of hackers in planetside.
hahahahahaha

Thats like saying omfg i dont think they should legalize weed, and then going too youre best freind too ask him if he has a joint. rofl
03/16/2008 18:40 Liquid-K#12
Now thats funny shit. Gotta give ya a thnx fer that.