To connect to the server of Smash The Stack, you need to SSH (ssh level6@io.smashthestack.org) with the password level1 which is given in iosmashthestack .
Changing your directory to levels will switch on all problems present in the smash the stack. But you will have permission only to do level01.
Let us try running level01
To solve this problem you need about GDB . You can learn to use gdb from here .
Let us disassemble in gdb and look over it
If you absorb the dis assembler keenly, than this instruction will be interesting.
cmp $0x10f,%eax
In the above instruction there is compression between a constant and the value in eax register.
Converting the above hex value decimal will give a three digit number.