Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- robbie@debian-server:~/pico_ctf_2017/binary_exploitation/level3$ gdb console -q
- Reading symbols from console...(no debugging symbols found)...done.
- (gdb) x set_exit_message
- 0x4008d2 <set_exit_message>: 0xe5894855
- (gdb) disassemble 0x4008d2
- Dump of assembler code for function set_exit_message:
- 0x00000000004008d2 <+0>: push %rbp
- 0x00000000004008d3 <+1>: mov %rsp,%rbp
- 0x00000000004008d6 <+4>: sub $0x10,%rsp
- 0x00000000004008da <+8>: mov %rdi,-0x8(%rbp)
- 0x00000000004008de <+12>: cmpq $0x0,-0x8(%rbp)
- 0x00000000004008e3 <+17>: jne 0x4008f9 <set_exit_message+39>
- 0x00000000004008e5 <+19>: mov $0x400bef,%edi
- 0x00000000004008ea <+24>: callq 0x400690 <puts@plt>
- 0x00000000004008ef <+29>: mov $0x1,%edi
- 0x00000000004008f4 <+34>: callq 0x400730 <exit@plt>
- 0x00000000004008f9 <+39>: mov $0x400c18,%edi
- 0x00000000004008fe <+44>: callq 0x400690 <puts@plt>
- 0x0000000000400903 <+49>: mov -0x8(%rbp),%rax
- 0x0000000000400907 <+53>: mov %rax,%rdi
- 0x000000000040090a <+56>: mov $0x0,%eax
- 0x000000000040090f <+61>: callq 0x4006c0 <printf@plt>
- 0x0000000000400914 <+66>: mov -0x8(%rbp),%rax
- 0x0000000000400918 <+70>: mov %rax,%rsi
- 0x000000000040091b <+73>: mov $0x65,%edi
- 0x0000000000400920 <+78>: callq 0x400846 <append_command>
- 0x0000000000400925 <+83>: mov $0x0,%edi
- 0x000000000040092a <+88>: callq 0x400730 <exit@plt>
- End of assembler dump.
- (gdb) disassemble 0x400730
- Dump of assembler code for function exit@plt:
- 0x0000000000400730 <+0>: jmpq *0x200b22(%rip) # 0x601258 <exit@got.plt>
- 0x0000000000400736 <+6>: pushq $0xa
- 0x000000000040073b <+11>: jmpq 0x400680
- End of assembler dump.
- (gdb) r log
- Starting program: /home/robbie/pico_ctf_2017/binary_exploitation/level3/console log
- Config action: ^C
- Program received signal SIGINT, Interrupt.
- 0x00007ffff7b0cba0 in __read_nocancel () at ../sysdeps/unix/syscall-template.S:81
- 81 ../sysdeps/unix/syscall-template.S: No such file or directory.
- (gdb) x loop
- 0x4009bd <loop>: 0xe5894855
- (gdb) set {int}0x601258=0x4009bd
- (gdb) c
- Continuing.
- e asdf
- Exit message set!
- asdfConfig action: e asdf
- Exit message set!
- asdfConfig action: e asdf
- Exit message set!
- asdfConfig action: e asdf
- Exit message set!
- asdfConfig action: e asdf
- Exit message set!
- asdfConfig action:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement