• Amused
  • Angry
  • Annoyed
  • Awesome
  • Bemused
  • Cocky
  • Cool
  • Crazy
  • Crying
  • Down
  • Drunk
  • Embarrased
  • Enraged
  • Friendly
  • Geeky
  • Godly
  • Happy
  • Hateful
  • Hungry
  • Innocent
  • Meh
  • Piratey
  • Poorly
  • Sad
  • Secret
  • Shy
  • Sneaky
  • Tired
  • Wtf
  • At Work
  • CodenzHub
  • Coding
  • Deejaying
  • Donating
  • Drinking
  • Eating
  • Editing
  • Hacking
  • Hate Mailing
  • Jamin'
  • Lagging
  • Live Streaming
  • Lurking
  • No Status
  • Pawning
  • PC Gaming
  • PS Gaming
  • Raging
  • Reversing
  • Sipping
  • Sleeping
  • Steam Gaming
  • Trolling
  • TwitchStreamer
  • Vodka!
  • Watching TV/Movie
  • Xbox Gaming
  • Youtuber
  • Zombies
  • Results 1 to 10 of 10
    1. #1
      Coder
      Learning to hack games!
       
      Coding
       
      Helios's Avatar
      Join Date
      May 2012
      Location
      Denmark
      Posts
      209
      Thanks (-->)
      24
      Thanks (<--)
      34

      [VB Tutorial] [Simple] - How to "hack" a flash game.

      How to Manual Map DLL
      Thread Contents:

      Introduction.
      What we'll be doing.
      Steps:
      - Acquiring the programs and files we need to make a trainer.
      - Decompiling the game and locating the variables.
      - Making the actual trainer.
      Result.



      Introduction:
      Hello, my name is Helios, and today I'll show you how to "hack" a flash game. You can choose to read the whole tutorial (that's what I recommend) or you can simply watch a video.

      I'm not finished editing the video, so the written tutorial will have to do for now.

      I wont post the program code as typing out the code will help your programming skills.


      What we'll be doing:
      What we'll be doing is,- finding a game, decompiling it, looking for some variables and then changing them via Visual Basic.


      Steps:

      Acquiring the programs and files we need to make a trainer:

      Sothink SWF Decompiler:
      1. Go to this website Click Me and download the Sothink SWF Decompiler.

      2. Install the SWF Decompiler.

      Visual Basic:
      1. If you don't already have Visual Basic, you can find the link to the program below this line.

      - Visual Basic: Click Me.

      Getting the SWF file from the game:

      Now we'll need to find the game we want to hack. I've chosen to hack Penguin Massacre. You can choose whatever game you want, but know this,- the variables aren't always stored the same place, so you might have to search in alternative places for your game.

      1. Find a flash game. I recommend going to y8.com, as they have a large amount of games.

      2. I'm using FireFox, so all I have to do is right click the webpage and choose "View Page Info".
      Spoiler: Picture
      [VB Tutorial] [Simple] - How to "hack" a flash game.


      3. Click the Media image and then look for the link with an "swf" at the end of it, in the address window.
      Spoiler: Picture
      [VB Tutorial] [Simple] - How to "hack" a flash game.


      4. When you've found it, simply click "Save As..." and save it. You'll need to save the SWF link because we will need it later on.

      Now you should have all the programs needed to make a trainer for your flash game.


      Decompiling the game and locating the variables:

      What is a variable? You could call a variable a storage facility,- because variables store information.

      Before we start finding variables our self, there's something a lot easier you can do,- a google search. A lot of people have already found and posted the variables online, so there's really no need to do a lot of work if you can find it in 2 seconds.

      1. Drag the SWF file onto the SWF Decompiler.
      Spoiler: Picture
      [VB Tutorial] [Simple] - How to "hack" a flash game.


      2. Now look to the right on the screen, you'll see a window with different folders and other maximize-able items. In there you'll need to maximize the "Action" folder, and then it all comes down to the game. In Penguin Massacre, it's the "MainMovie" file (that's where we find the variables),- in others it could be a file called "GameData" or whatever the game creator decided to name the file.
      Spoiler: Picture
      [VB Tutorial] [Simple] - How to "hack" a flash game.


      3. Now you'll need to look at the code window. One of the most common variables to look for is the health variable, the variable name doesn't necessarily have to be named "health", but it most likely will be.
      Spoiler: Picture
      [VB Tutorial] [Simple] - How to "hack" a flash game.


      4. When you've found your variables copy and save them. Now we'll need to create the Visual Basic project.


      Making the actual trainer:

      1. You can call your project whatever you want, I'm going to call mine "Trainer Tutorial".
      Spoiler: Picture
      [VB Tutorial] [Simple] - How to "hack" a flash game.


      2. Since most people don't use the flash object control in visual basic and since it's not already in the toolbox, we'll have to add the control. Start by right clicking in the toolbox and choose "Choose Items...", next you want to click the "COM Components" tab and in the box look for a control called "Shockwave Flash Object", now click the OK button.
      Spoiler: Picture
      [VB Tutorial] [Simple] - How to "hack" a flash game.

      Spoiler: Picture
      [VB Tutorial] [Simple] - How to "hack" a flash game.


      3. Now you'll need to add the control "Shockwave Flash Object" to the form. I normally name my controls after what they are and what they do (you'll be able to see that in the pictures). I'll just be calling my component "Flash".
      - Example: If it's a button and what it does is log your account into the program, I would name it "btnlogin".
      Spoiler: Picture
      [VB Tutorial] [Simple] - How to "hack" a flash game.


      4. Now you'll need to find the swf link I told you to save in a notepad earlier. Take that swf link and click the "Shockwave Flash Object" you added to your form earlier, then paste the link at the "Movie" property.
      Spoiler: Picture
      [VB Tutorial] [Simple] - How to "hack" a flash game.

      If you don't want the game to load as soon as you open the program, you can add a button or a timer and give it this code: Flash.Movie = "SWF file link, for example: https://armorgames.com/files/games/penguin-massacre-4964.swf"

      5. Add a button to the form.
      Spoiler: Picture
      [VB Tutorial] [Simple] - How to "hack" a flash game.


      6. Add a textbox to the form.
      Spoiler: Picture
      [VB Tutorial] [Simple] - How to "hack" a flash game.


      7. Add a Combobox to the form, and add all the variables you've found to the combo-box list. As you can see on the second picture the items I've added don't look like the game variables, they still have the same name, but they look different. That's completely okay we'll make it work in the code.
      Spoiler: Picture
      [VB Tutorial] [Simple] - How to "hack" a flash game.

      Spoiler: Picture
      [VB Tutorial] [Simple] - How to "hack" a flash game.


      8. Now it's time for the code. Right click the Form in the "Solution Explorer" (Top right), and click "View code" or press F7.
      Spoiler: Picture
      [VB Tutorial] [Simple] - How to "hack" a flash game.


      9. The first thing we need to do is make a "String" variable.
      Spoiler: Picture
      [VB Tutorial] [Simple] - How to "hack" a flash game.


      10. Now go back to the Form design and double click the button we added earlier. What we will be doing now is writing the code that will change the variables. Other than that we'll add two checks to the code.

      1. We need to check if the user has selected a variable, and if he hasn't we want him to know that.
      2. Since there is a health and a maxHealth variable, we'll need to change both of them. Changing the health variable is actually enough, but it will look prettier if we change both of the variables.
      Spoiler: Picture
      [VB Tutorial] [Simple] - How to "hack" a flash game.


      11. Now go back to the Form design again and double click the combo-box. What we will be doing now is whenever the combo-box item change, we need the variable we created earlier to change too.
      Spoiler: Picture
      [VB Tutorial] [Simple] - How to "hack" a flash game.


      Result:
      The result will vary depending on what game you chose. This is the result for the Penguin Massacre game.

      I've added some code (hotkeys), so don't worry about not having the exact same code as me.

      [youtube]https://youtu.be/mw3pmboFawc?hd=1[/youtube]

      If you have any questions or problems, just post and I'll hopefully be able to help you.
      Last edited by Helios; 09-11-2012 at 07:25 PM.

    2. #2
      Jr.Coder
      Learning to hack games!
       
      Feeling Normal
       
      DarkSnow's Avatar
      Join Date
      May 2012
      Posts
      52
      Thanks (-->)
      0
      Thanks (<--)
      0
      Haha, nice tutorial :P
      I know there are compiled flash games, which are unavailable to hack,
      could you add how to hack these?
      (that was a problem I've faced when I was hacking flashgames some time ago)

      Thanks

    3. #3
      Founder
      Learning to hack games!
       
      Pawning
       
      Fleep's Avatar
      Join Date
      May 2012
      Posts
      626
      Thanks (-->)
      208
      Thanks (<--)
      752
      Great tutorial and nicely in depth, I used to get a request for this all the time on YouTube, just never got around to it.
      Next time I get someone asking me for it I'l just redirect them here.

      Fleep

    4. #4
      Coder
      Learning to hack games!
       
      Coding
       
      Helios's Avatar
      Join Date
      May 2012
      Location
      Denmark
      Posts
      209
      Thanks (-->)
      24
      Thanks (<--)
      34
      Quote Originally Posted by DarkSnow
      Haha, nice tutorial :P
      I know there are compiled flash games, which are unavailable to hack,
      could you add how to hack these?
      (that was a problem I've faced when I was hacking flashgames some time ago)

      Thanks
      Thanks - Could you name an example? Because then I'll look into it.

      Quote Originally Posted by Fleep
      Great tutorial and nicely in depth, I used to get a request for this all the time on YouTube, just never got around to it.
      Next time I get someone asking me for it I'l just redirect them here.

      Fleep
      Thanks and great!

    5. #5
      Jr.Coder
      Learning to hack games!
       
      Feeling Normal
       
      DarkSnow's Avatar
      Join Date
      May 2012
      Posts
      52
      Thanks (-->)
      0
      Thanks (<--)
      0
      I don't know, something like thing thing (1,2,3,4) and boxhead 2? :P

    6. #6
      Coder
      Learning to hack games!
       
      Coding
       
      Helios's Avatar
      Join Date
      May 2012
      Location
      Denmark
      Posts
      209
      Thanks (-->)
      24
      Thanks (<--)
      34
      Quote Originally Posted by DarkSnow
      I don't know, something like thing thing (1,2,3,4) and boxhead 2? :P
      The code has most likely been obfuscated, so what you would need to do is find a variable scanner, or make one. But if you are able to read obfuscated code, you could just do that xD
      - I'll edit the thread with some information about that.

    7. #7
      Coder
      Learning to hack games!
       
      Feeling Normal
       
      konsowa's Avatar
      Join Date
      May 2012
      Posts
      184
      Thanks (-->)
      1
      Thanks (<--)
      2
      Nice tutorial, Keep em coming

    8. #8
      Jr.Coder
      Learning to hack games!
       
      Feeling Normal
       
      DarkSnow's Avatar
      Join Date
      May 2012
      Posts
      52
      Thanks (-->)
      0
      Thanks (<--)
      0
      Quote Originally Posted by Helios
      Quote Originally Posted by DarkSnow
      I don't know, something like thing thing (1,2,3,4) and boxhead 2? :P
      The code has most likely been obfuscated, so what you would need to do is find a variable scanner, or make one. But if you are able to read obfuscated code, you could just do that xD
      - I'll edit the thread with some information about that.
      Okay, I'm looking forward
      Thanks

    9. #9
      Jr.Coder
      Learning to hack games!
       
      Feeling Normal
       
      WiTH's Avatar
      Join Date
      May 2012
      Posts
      62
      Thanks (-->)
      1
      Thanks (<--)
      10
      good stuff, thanks

    10. #10
      Coder
      Learning to hack games!
       
      Coding
       
      Helios's Avatar
      Join Date
      May 2012
      Location
      Denmark
      Posts
      209
      Thanks (-->)
      24
      Thanks (<--)
      34
      Cheat Engine Tutorials
      Quote Originally Posted by WiTH
      good stuff, thanks
      No problem

      @DarkSnow, I've looked into another method, and I'll most likely have an answer for you some time tomorrow.

    Similar Game Hacker Threads

    1. [Help] Writing Offset in ""common.dll"+13F3CC" by injection
      By Icew0lf in forum Hacking Help
      Replies: 25
      Last Post: 09-16-2014, 09:51 AM
    2. [Help] Counter Strike Source "Immortality" hack
      By Magician in forum Hacking Help
      Replies: 15
      Last Post: 06-05-2014, 01:15 PM