Skip to content
Locked

key hacks

-migrated-

18 posts

key hacks

Posted Apr 1, 2011 1:18 pm

Hi can anyone tell me how to make key hacks for flash games

Re: key hacks

Posted Apr 1, 2011 3:16 pm

What? Can you phrase it differently, key hacks are what and what games you want to hack?

Plus moved to help.

Re: key hacks

Posted Apr 1, 2011 11:40 pm

Your post is synonym to "Hi doctor can you give me medicine"

Re: key hacks

Posted Apr 2, 2011 1:42 am
Quote from: "VxD"
What? Can you phrase it differently, key hacks are what and what games you want to hack?

Probably something like press "1" for max health or something like that crap.

Flash .sol locations
Chrome: \AppData\Local\Google\Chrome\User Data\Default\Pepper Data\Shockwave Flash\WritableRoot\#SharedObjects\
Normal: \AppData\Roaming\Macromedia\Flash Player\#SharedObjects

Re: key hacks

Posted Apr 3, 2011 8:48 pm

Sorry fellows for not mentioning in brief.

Quote from: "blahblahman"
Quote from: "VxD"
What? Can you phrase it differently, key hacks are what and what games you want to hack?
Probably something like press "1" for max health or something like that crap.


I mean the same which blahblahman mentioned.

Can anyone tell me how this can be done, what are the methods to be followed

Re: key hacks

Posted Apr 4, 2011 12:16 am

Seriously?

What language are you programming in?  What are you really trying to do?  Can you please make some damn sense and give us some more info than "How do I shot h4x?"

Anyway, use the OnKeyDown / OnKeyUp / OnKeyPress events.


Everything's coming up KongHack!

"When you know nothing matters, the universe is yours" ~Rick Sanchez

Re: key hacks

Posted Apr 4, 2011 9:07 am

I bet he's talking about making trainers or something.

Re: key hacks

Posted Apr 4, 2011 6:42 pm

I am not using any programming language till now, using flasm, sothink & hex editor.

Check this link below you might understand what i am asking you or else preloaders, After the game is loaded user can press some pre defined keys (like h-max health, m-money, l-lives etc)

Code: [Select]

http://www.prehackshub.com/arcade/3672/Red-Dragon-Rampage.html
I tried to decompile using sothink and after modifying script in flash when i am exporting the movie (.swf) I am getting compile errors.

Atleast now if you understand what i have been asking can you tell me any alternate way to do this.

Re: key hacks

Posted Apr 5, 2011 8:37 am

Use a decompiler and a hex editor.

I found this in the original SWF:

Code: [Select]

   if (Key.isDown(70) && healdragon == false && _root.hp > 0)
    {
        healdragon = true;
    }
    if (!Key.isDown(70) && healdragon == true)
    {
        healdragon = false;
        if (_root.numhppacks > 0)
        {
            --_root.numhppacks;
            if (_root.hasbod == true)
            {
                _root.hp = 200;
            }
            else
            {
                _root.hp = 100;
            }
        }
    }

And this in the hacked SWF:

Code: [Select]

   if (Key.isDown(70) && healdragon == false && _root.hp > 0)
    {
        healdragon = true;
    }
    if (!Key.isDown(70) && healdragon == true)
    {
        healdragon = false;
        if (_root.numhppacks < 100)
        {
            if (_root.hasbod == true)
            {
                _root.hp = 200;
            }
            else
            {
                _root.hp = 100;
            }
        }
    }


Read a couple of tutorials and follow these instructions.

How to hack the game:

Find: --_root.numhppacks;
Replace with: NOP

Find: _root.numhppacks > 0
Replace with: _root.numhppacks < 100

Re: key hacks

Posted Apr 5, 2011 10:06 am

I tried to decompile using sothink and after modifying script in flash when i am exporting the movie (.swf) I am getting compile errors.

I tried to use Routers Prehack-Trainer maker but with this tool also i am getting errors.

Is there any alternate way I can make these keyhacks/ preloaders

Re: key hacks

Posted Apr 5, 2011 11:34 am

Wasn't there a tutorial once for hacking games with HxD?

1)Open game with SoThink

2)Find the part of the game KH told you about, and then find it in Raw Data mode

3)Copy pasta the bytecode you want to change from SoThink to somewhere else (like Notepad.)

5)Filter out the unneeded text to make the AoB you want e.g.
//66 09 a0
_as3_getproperty foo
//c1
_as3_decrement_i
//61 09 a0
_as3_setproperty foo
turns into
66 09 a0 c1 61 09 0a

6)Copy pasta the AoB you found to a line below, and change it there to the desired outcome

7)If you want to just play the hacked game online, go to the game in your browser, and then use Cheat Engine with your AoBs

8)If you want to make a prehack, it's a little more complex:
8a)Get HxD
8b)Open the game in HxD (make sure the game's decompressed.)
8c)Hit Ctrl+F, change Datatype to Hex-values
8d)Search for your original AoB
8f)Replace match(es) with replacement AoB
8g)Hit Ctrl+S
8h)Enjoy playing your prehacked game

If you don't know how to do any of the above, read our tutorials. There are plenty.

Re: key hacks

Posted Apr 5, 2011 7:27 pm

Sorry to say this but i am not happy with the replies i got here

Re: key hacks

Posted Apr 5, 2011 11:49 pm
Quote from: "kavya"
Sorry to say this but i am not happy with the replies i got here



Well, you havent been very good at asking specifically want and from what i can gather, most of the ones replying are just doing so based on what they think you might be looking for. From what i can tell, you are trying to make a game that already has the hacks in it. If thats correct, I have found that using yogda works quite nicely (broken image removed) do a forum search and check that out.

OR

Are you trying to modify a .swf file to make it so that when you press certain keys on your keyboard, it triggers a variable change. For example: In the game Bullet heaven you start out with three lives. After you get hit three times, you die. So if you get down to 1hp, you are trying to make it so that when you hit "h" it automatically refills your HP bar. Is that correct?

This topic is locked.