This Wont Work With Hacks!!!!!
Well this tutorial requires two tools, OllyDbg and Hiew.
Ok I was jk about that top thing I just wanted to avoid choobs from seeing this as this can be used to seep into peoples programs. However this shouldn't be done unless you are told you can do it, as it is illegal. SO DON'T BE FUCKING WITH OTHER PEOPLES PROGRAMS.
ANYWAYS. First Step: Figure out what the program does, or what you want to hack is like (e.g. how much ammo am I loosing?):
Second Step:Open the program up in OllyDbg and look around until you see something. (search up commands er something, learn some assembly if you don't know how to do that choobs) (I found this snippet of code in the first legit chunk of code)
(READ COMMENTS)
Tada you have the source... sorta... look near the bottom for my (guessed) source code. Continue Reading if you want to fuck with the code.
Third Step:Find the line you want to fuck up. I want to change it from 5+6 to 9+6 so I'ma change that 5 to a nine, but first I'm gonna look up the address in the ollydbg hex editor.
Change it and watch that fucker change color.
Fourth Step:Ok Note the change '05' to '09' (as the number you add goes up the difficulty will grow)
Now Open the program up in Hiew and switch it to blah blah blah.... just do what I say in the picture.
Fifth Step:Jebus Cripes I'm tired of typing... Change the fucker you saw in step three and press f9 to update the file.
Final Step:See how the program runs now.
Ok so I kinda cheated and already know the source code of my program.
If you don't know what hiew is, it is a program commonly used in cracking. I know you can do this all in OllyDbg but I fucking hate OllyDbg.
PM me if you want a dl link to Hiew or any of the other tools I used in this tutorial :3
Right after Why announces a no leeching policy. A tutorial to find other people's code is released. =\
Hehe, joke. Nice tutorial.
Lol. if only finding addresses and such were that easy in larger programs. ;p
Nice to see you back, check out the wikibook on disassembly or lena's reversing tutorials if you want to master disassembly.
"Every gun that is made, every warship launched, every rocket fired signifies, in the final sense, a theft from those who hunger and are not fed, those who are cold and are not clothed. This world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children. The cost of one modern heavy bomber is this: a modern brick school in more than 30 cities. It is two electric power plants, each serving a town of 60,000 population. It is two fine, fully equipped hospitals. It is some fifty miles of concrete pavement. We pay for a single fighter plane with a half million bushels of wheat. We pay for a single destroyer with new homes that could have housed more than 8,000 people. This is, I repeat, the best way of life to be found on the road the world has been taking. This is not a way of life at all, in any true sense. Under the cloud of threatening war, it is humanity hanging from a cross of iron."- Dwight D. Eisenhower
lol i dont know what ur doing here, but seems legit. Nice tutorial
B1ackAnge1 (03-25-2010)
You can't find it as easily as you did in a real game with more than 200 instructions. It's fairly easy to spot what you're looking for in your example. If it's so easy, you should've gave this tutorial using a more difficult example, using the same method.
How is this "finding sourcecode" and not simply 'disassembly' with a given tool?
Disassembly 101 - Maybe... 'finding sourcecode' it is not
Last edited by B1ackAnge1; 03-25-2010 at 05:10 PM.
crushed (03-25-2010),Retoxified (03-26-2010)
I don't know Java?