This is a tutorial showing you how to easily hack flash (.swf) games!
You only need two things:
- A flash game (in .swf format) and
- Flasm (an amazing flash disassembler).
Getting Flasm
Download Flasm
Flasm can be downloaded from the no|wrap.de website.
Save & Extract
Save and extract the .zip file into a folder on your desktop (for the ease of this tutorial). Here is what you will end up with:
Note: I renamed my folder "Flasm".
Finding a Flash Game to Hack
Game Source
I usually use Newgrounds.com to find good flash games.
Select the Game
Now, select a game to hack and open up the game page. I have chosen the game Stick War for this tutorial.
View Page Info
Next, right-click next to the game and select "View Page Info".
Media File
Select the "Media" tab and find an embedded file that looks like it relates to your game in the list of media.
Save As
Highlight the file and "Save As" into the Flasm folder on your desktop.
Disassembling the Flash File
Now, we have to disassemble the compiled flash file, for which we need to use CMD prompt.
Open Up CMD Prompt
Change Directory
Change the directory to your Flasm folder. For this, you will need to type in something like this:
cd c:\Documents and Settings\Sy\Desktop\Flasm
Disassemble File
Now that you're in the Flasm directory, we can proceed to disassemble the file and convert it into a text file using this command:
flasm -d 509310_stickwarfull.swf > StickWar.txt
This will create a .txt file of the flash game in the same directory.
Note: I am using a file called 509310_stickwarfull.swf, you will most likely be using another file name (for example, 388597_yourgame.swf).
For the time being, minimize the CMD prompt screen, but DON'T close it.
Now the fun begins...
Making Your Alterations
Now that we have a text document containing the ActionScript of the game, we can start to edit it and make some changes to the game.
Open the .TXT File
Open up the .txt file you've just created in the Flasm directory. Once the text file is open (using Notepad) you will see lines and lines of code. At first sight this looks confusing, but we're just going to 'pick' at the bits we want to modify.
Choose a Value
Search for a value or element of the game that you want to change. For this tutorial, I will be changing the 'cost' of buying people in the Stick War game (obviously, at a lower cost, lol).
Find the Element
Use CTRL + F to find a phrase you're looking for. In this case, I chose 'COST', which after a few times searching, I found the elements that I wanted to change.
Modify
Make your modifications now, and save the file and close it. I have changed the cost of miners, archers, sword-men, etc.
Reassembling the Game.
Made all your alterations and saved the file? Let's get to building the game back together now.
Bring up the Minimized CMD Prompt
Assemble the File
You will just need to type in something like this:
flasm -a StickWar.txt
A comment will appear in CMD saying that it was successfully assembled:
Play the Game!
I tend to move the game files to a separate folder (by the name of the game).
Put the text file, .swf and .$wf into the newly created folder. You can place this folder anywhere you want now.
Open up the .swf file in your browser - Play Hard, Play Hacked!
This is the game, fully hacked. So within seconds I have enough to quickly complete the level.
Have Fun!
Some Notes
- Flash Games are written by coders of all shapes and sizes. You might find that one coder has called their currency GOLD in their game, and another coder that has called their currency COIN or CASH. It might take a while for you to peruse the text document to find what you need to change.
- I DO NOT condone hacking high scores that can be uploaded to sites. Not fun at all and pretty damn unfair, don't you think?
- When you open up your modified flash game, you will probably find that there will be no sound and the layout of the game has changed. This is because the sound files are usually stored separately and the layout is improved by using HTML to cover up the 'dirty' bits.
Thanks for checkin' out this tutorial and have fun!
Comments
No Comments Exist
Be the first, drop a comment!