Skip to content

Instantly share code, notes, and snippets.

@Cee
Created July 31, 2014 14:17
Show Gist options
  • Save Cee/f96b2e2fd0ba6768be62 to your computer and use it in GitHub Desktop.
Save Cee/f96b2e2fd0ba6768be62 to your computer and use it in GitHub Desktop.
Bang
0000000000401020 <bang>:
401020: 48 83 ec 08 sub $0x8,%rsp
401024: 48 8b 35 dd 12 20 00 mov 0x2012dd(%rip),%rsi # 602308 <global_value>
40102b: 48 3b 35 ee 12 20 00 cmp 0x2012ee(%rip),%rsi # 602320 <cookie>
401032: c7 05 74 12 20 00 02 movl $0x2,0x201274(%rip) # 6022b0 <check_level>
401039: 00 00 00
40103c: 74 13 je 401051 <bang+0x31>
40103e: bf 70 15 40 00 mov $0x401570,%edi
401043: 31 c0 xor %eax,%eax
401045: e8 a6 f7 ff ff callq 4007f0 <printf@plt>
40104a: 31 ff xor %edi,%edi
40104c: e8 6f f8 ff ff callq 4008c0 <exit@plt>
401051: bf 48 15 40 00 mov $0x401548,%edi
401056: 31 c0 xor %eax,%eax
401058: e8 93 f7 ff ff callq 4007f0 <printf@plt>
40105d: bf 02 00 00 00 mov $0x2,%edi
401062: e8 c9 fd ff ff callq 400e30 <validate>
401067: eb e1 jmp 40104a <bang+0x2a>
401069: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment