password hacking

Place to talk about all that new hardware and decaying software you have.

Moderator: General Mods

Post Reply
invictius
Rookie
Posts: 38
Joined: Thu Oct 27, 2005 1:28 pm

password hacking

Post by invictius »

I've noticed that someone on http://www.gamefaqs.com/console/snes/code/588803.html (gamefaqs link for the game in question) has found a way to "tell" the game to give you all upgrades, cash, etc at any point in the game, even if they aren't available yet. Does any of that look like hex? I know there has to be parameters for difficulty, number of players, etc, but what part of the code affects what?
grinvader
ZSNES Shake Shake Prinny
Posts: 5632
Joined: Wed Jul 28, 2004 4:15 pm
Location: PAL50, dood !

Post by grinvader »

What you linked to is a list of in-game passwords.

1- it's not hex. 'hex' stands for "hexadecimal" and means 'base 16'. You use 16 different 1-character digits to write numbers, which makes it good for computer stuff (since it's a power of 2) and rather efficient (big numbers need less hex digits than decimal digits) while remaining close enough to base 10 not to be daunting (see sexagesimal - go go babylonians !).
Anyway. Hex digits go from 0 to F, but you could pick any 16 characters. These codes use way more than 16 characters. It's not hex.

2- they are in-game codes. which means, you go to a "enter password" screen, type that in, and the game chugs at it and restores a state depending the result, i.e. the password has "fields" of bits at specific offsets that get transformed into your cash, your available power ups, the name of your character and some more.
The transformation can be easy (direct value read) or not (xor'ed with another part of the password, or with whatever is in ram at a specific offset depending another part of the password... as complicated as the coders wanted).
To know exactly what does what, read the code-decrypting routine.
皆黙って俺について来い!!

Code: Select all

<jmr> bsnes has the most accurate wiki page but it takes forever to load (or something)
Pantheon: Gideon Zhi | CaitSith2 | Nach | kode54
Rashidi
Trooper
Posts: 515
Joined: Fri Aug 18, 2006 2:45 pm

Post by Rashidi »

this somehow remind me of metroid password...
h4tred

Post by h4tred »

but what part of the code affects what?
As grin said, find the ASM for the key decryption/encryption code....The same process for application keygenning can be applied here: all you need to do is RE the code responsible for the keycodes and make a generator based on that research.
Post Reply