Skip to content

Instantly share code, notes, and snippets.

@amy
Created April 3, 2015 19:00
Show Gist options
  • Select an option

  • Save amy/d3ef9b3ecfc1c541b9ae to your computer and use it in GitHub Desktop.

Select an option

Save amy/d3ef9b3ecfc1c541b9ae to your computer and use it in GitHub Desktop.
secret phase
0x08048fe3 <+0>: push %ebx
0x08048fe4 <+1>: sub $0x18,%esp
0x08048fe7 <+4>: call 0x8049484 <read_line>
0x08048fec <+9>: movl $0xa,0x8(%esp)
0x08048ff4 <+17>: movl $0x0,0x4(%esp)
0x08048ffc <+25>: mov %eax,(%esp)
0x08048fff <+28>: call 0x80488a0 <strtol@plt>
0x08049004 <+33>: mov %eax,%ebx
0x08049006 <+35>: lea -0x1(%eax),%eax
0x08049009 <+38>: cmp $0x3e8,%eax
0x0804900e <+43>: jbe 0x8049015 <secret_phase+50>
0x08049010 <+45>: call 0x80493f5 <explode_bomb>
0x08049015 <+50>: mov %ebx,0x4(%esp)
0x08049019 <+54>: movl $0x804d0a0,(%esp)
0x08049020 <+61>: call 0x8048f92 <fun7>
0x08049025 <+66>: cmp $0x2,%eax
0x08049028 <+69>: je 0x804902f <secret_phase+76>
0x0804902a <+71>: call 0x80493f5 <explode_bomb>
0x0804902f <+76>: movl $0x804a944,(%esp)
0x08049036 <+83>: call 0x8048880 <puts@plt>
0x0804903b <+88>: call 0x804957e <phase_defused>
0x08049040 <+93>: add $0x18,%esp
0x08049043 <+96>: pop %ebx
0x08049044 <+97>: ret
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment