A preserved archive of the Logical Gamers community forums, 2009-2025. The original threads and posts, served read-only. Registration, posting and private messages are gone for good.

Hacking an HTML5 game.

1k views · started by 323 ·
#1
Hacking an HTML5 game.
How would you go about doing it?

It's an HTML5 game with obfuscated source. They use that thing by google that makes all of the variable names letters and stuff, and just generally makes it human-unreadable.

So how would you go about making bots or hacks for an HTML5 game?
#2
hellz yea
#3
Figure out what the variables are, then edit them.

"That thing by Google" is Closure Compiler Service.

You can run it through a de-obscurifier, but the variable names will still be lost. It will help with reading chunks of code, though, if you want to map out ho the program is executing in your head to deduce what the variables are yourself.
#4
GAMEchief wrote:
Figure out what the variables are, then edit them.

"That thing by Google" is Closure Compiler Service.

You can run it through a de-obscurifier, but the variable names will still be lost. It will help with reading chunks of code, though, if you want to map out ho the program is executing in your head to deduce what the variables are yourself.


This is going to take a while, the game is 169,000 lines of code :c
#5
Ctrl-F for strings relevant to what you're looking for. Obviously not variable names, but say the game says "Gold: X." The variable containing X that you want to modify likely wouldn't be called gold, since it's compressed, but you can Ctrl-F for the string "Gold:" to find the variable name listed right afterward.
#6
GAMEchief wrote:
Ctrl-F for strings relevant to what you're looking for. Obviously not variable names, but say the game says "Gold: X." The variable containing X that you want to modify likely wouldn't be called gold, since it's compressed, but you can Ctrl-F for the string "Gold:" to find the variable name listed right afterward.


Oh that's true, because I don't think they would bother trying to encrypt plain text...

I'll look into it, thanks a ton.
#7
what game o.o