Skip to content

Instantly share code, notes, and snippets.

@Bjornhall
Created November 27, 2013 23:48
Show Gist options
  • Save Bjornhall/7685048 to your computer and use it in GitHub Desktop.
Save Bjornhall/7685048 to your computer and use it in GitHub Desktop.
Secret Phase
=> 0x0804910e <+0>: push %ebp
0x0804910f <+1>: mov %esp,%ebp
0x08049111 <+3>: sub $0x88,%esp
0x08049117 <+9>: movl $0x1,(%esp)
0x0804911e <+16>: call 0x8049037 <send_msg>
0x08049123 <+21>: cmpl $0x6,0x804b8cc
0x0804912a <+28>: jne 0x80491a6 <phase_defused+152>
0x0804912c <+30>: lea -0x58(%ebp),%eax
0x0804912f <+33>: mov %eax,0x10(%esp)
0x08049133 <+37>: lea -0x60(%ebp),%eax
0x08049136 <+40>: mov %eax,0xc(%esp)
0x0804913a <+44>: lea -0x5c(%ebp),%eax
0x0804913d <+47>: mov %eax,0x8(%esp)
0x08049141 <+51>: movl $0x804a24e,0x4(%esp)
0x08049149 <+59>: movl $0x804b9d0,(%esp)
0x08049150 <+66>: call 0x8048758 <__isoc99_sscanf@plt>
0x08049155 <+71>: cmp $0x3,%eax
0x08049158 <+74>: jne 0x804918e <phase_defused+128>
0x0804915a <+76>: movl $0x804a257,0x4(%esp)
0x08049162 <+84>: lea -0x58(%ebp),%eax
0x08049165 <+87>: mov %eax,(%esp)
0x08049168 <+90>: call 0x8048fab <strings_not_equal>
0x0804916d <+95>: test %eax,%eax
0x0804916f <+97>: jne 0x804918e <phase_defused+128>
0x08049171 <+99>: movl $0x804a330,(%esp)
0x08049178 <+106>: call 0x80488a8 <puts@plt>
0x0804917d <+111>: movl $0x804a358,(%esp)
0x08049184 <+118>: call 0x80488a8 <puts@plt>
0x08049189 <+123>: call 0x8048ba7 <secret_phase>
0x0804918e <+128>: movl $0x804a390,(%esp)
0x08049195 <+135>: call 0x80488a8 <puts@plt>
0x0804919a <+140>: movl $0x804a3bc,(%esp)
0x080491a1 <+147>: call 0x80488a8 <puts@plt>
0x080491a6 <+152>: leave
0x080491a7 <+153>: ret
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment