Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- gef➤ r < inn
- Starting program: /home/jesse/Downloads/robot_city_identify < inn
- [ Legend: Modified register | Code | Heap | Stack | String ]
- ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[ registers ]────
- $eax : 0x0
- $ebx : 0x0
- $ecx : 0xf7fa7890 → 0x00000000
- $edx : 0x0
- $esp : 0xffffcf50 → 0x08048c83 → "/bin/false"
- $ebp : 0xffffcf78 → 0xffffcf98 → 0x00000000
- $esi : 0xf7fa6000 → 0x001d7d6c ("l}"?)
- $edi : 0x0
- $eip : 0x804898b → <sys+19> call 0x8048530 <system@plt>
- $eflags: [zero carry parity ADJUST SIGN trap INTERRUPT direction overflow resume virtualx86 identification]
- $es: 0x002b $fs: 0x0000 $ss: 0x002b $cs: 0x0023 $gs: 0x0063 $ds: 0x002b
- ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[ stack ]────
- 0xffffcf50│+0x00: 0x08048c83 → "/bin/false" ← $esp
- 0xffffcf54│+0x04: 0x00000000
- 0xffffcf58│+0x08: 0xf7fa6000 → 0x001d7d6c ("l}"?)
- 0xffffcf5c│+0x0c: 0x00000002
- 0xffffcf60│+0x10: 0xffffcf98 → 0x00000000
- 0xffffcf64│+0x14: 0xf7feae20 → <_dl_runtime_resolve+16> pop edx
- 0xffffcf68│+0x18: 0xf7e362bb → <setvbuf+11> add edi, 0x16fd45
- 0xffffcf6c│+0x1c: 0x00000001
- ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[ code:i386 ]────
- 0x804897e <sys+6> mov DWORD PTR [ebp-0xc], 0x1
- 0x8048985 <sys+13> sub esp, 0xc
- 0x8048988 <sys+16> push DWORD PTR [ebp+0x8]
- → 0x804898b <sys+19> call 0x8048530 <system@plt>
- ↳ 0x8048530 <system@plt+0> jmp DWORD PTR ds:0x804a024
- 0x8048536 <system@plt+6> push 0x30
- 0x804853b <system@plt+11> jmp 0x80484c0
- 0x8048540 <exit@plt+0> jmp DWORD PTR ds:0x804a028
- 0x8048546 <exit@plt+6> push 0x38
- 0x804854b <exit@plt+11> jmp 0x80484c0
- ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[ arguments (guessed) ]────
- system@plt (
- [sp + 0x0] = 0x00000000
- )
- ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[ threads ]────
- [#0] Id 1, Name: "robot_city_iden", stopped, reason: BREAKPOINT
- ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[ trace ]────
- [#0] 0x804898b → Name: sys()
- [#1] 0x80489f3 → Name: main()
- ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
- Breakpoint 1, 0x0804898b in sys ()
- gef➤ c
- Continuing.
- Identify yourself robot!
- Enter your name:
- [ Legend: Modified register | Code | Heap | Stack | String ]
- ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[ registers ]────
- $eax : 0x8048978 → <sys+0> push ebp
- $ebx : 0x0
- $ecx : 0xffffcf64 → 0x41414141 ("AAAA"?)
- $edx : 0xf7fa789c → 0x00000000
- $esp : 0xffffcf10 → 0x08048c4f → "/bin/sh"
- $ebp : 0xffffcf38 → 0xffffcf88 → 0xffffcf98 → 0x00000000
- $esi : 0xf7fa6000 → 0x001d7d6c ("l}"?)
- $edi : 0x0
- $eip : 0x804898b → <sys+19> call 0x8048530 <system@plt>
- $eflags: [zero carry PARITY ADJUST SIGN trap INTERRUPT direction overflow resume virtualx86 identification]
- $es: 0x002b $fs: 0x0000 $ss: 0x002b $cs: 0x0023 $gs: 0x0063 $ds: 0x002b
- ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[ stack ]────
- 0xffffcf10│+0x00: 0x08048c4f → "/bin/sh" ← $esp
- 0xffffcf14│+0x04: 0x00000000
- 0xffffcf18│+0x08: 0xf7fd00c0 → 0xf7fd00c0 → [loop detected]
- 0xffffcf1c│+0x0c: 0x00000000
- 0xffffcf20│+0x10: 0xffffcf88 → 0xffffcf98 → 0x00000000
- 0xffffcf24│+0x14: 0xf7feae20 → <_dl_runtime_resolve+16> pop edx
- 0xffffcf28│+0x18: 0xf7e33fbb → <fgets+11> add edi, 0x172045
- 0xffffcf2c│+0x1c: 0x00000001
- ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[ code:i386 ]────
- 0x804897e <sys+6> mov DWORD PTR [ebp-0xc], 0x1
- 0x8048985 <sys+13> sub esp, 0xc
- 0x8048988 <sys+16> push DWORD PTR [ebp+0x8]
- → 0x804898b <sys+19> call 0x8048530 <system@plt>
- ↳ 0x8048530 <system@plt+0> jmp DWORD PTR ds:0x804a024
- 0x8048536 <system@plt+6> push 0x30
- 0x804853b <system@plt+11> jmp 0x80484c0
- 0x8048540 <exit@plt+0> jmp DWORD PTR ds:0x804a028
- 0x8048546 <exit@plt+6> push 0x38
- 0x804854b <exit@plt+11> jmp 0x80484c0
- ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[ arguments (guessed) ]────
- system@plt (
- [sp + 0x0] = 0x00000000
- )
- ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[ threads ]────
- [#0] Id 1, Name: "robot_city_iden", stopped, reason: BREAKPOINT
- ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[ trace ]────
- [#0] 0x804898b → Name: sys()
- [#1] 0x8048972 → Name: identify()
- [#2] 0x8048a04 → Name: main()
- ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
- Breakpoint 1, 0x0804898b in sys ()
- gef➤ ni
- [ Legend: Modified register | Code | Heap | Stack | String ]
- ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[ registers ]────
- $eax : 0x0
- $ebx : 0x0
- $ecx : 0xffffcde0 → 0x00000000
- $edx : 0x0
- $esp : 0xffffcf10 → 0x08048c4f → "/bin/sh"
- $ebp : 0xffffcf38 → 0xffffcf88 → 0xffffcf98 → 0x00000000
- $esi : 0xf7fa6000 → 0x001d7d6c ("l}"?)
- $edi : 0x0
- $eip : 0x8048990 → <sys+24> add esp, 0x10
- $eflags: [zero carry PARITY adjust SIGN trap INTERRUPT direction overflow resume virtualx86 identification]
- $es: 0x002b $fs: 0x0000 $ss: 0x002b $cs: 0x0023 $gs: 0x0063 $ds: 0x002b
- ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[ stack ]────
- 0xffffcf10│+0x00: 0x08048c4f → "/bin/sh" ← $esp
- 0xffffcf14│+0x04: 0x00000000
- 0xffffcf18│+0x08: 0xf7fd00c0 → 0xf7fd00c0 → [loop detected]
- 0xffffcf1c│+0x0c: 0x00000000
- 0xffffcf20│+0x10: 0xffffcf88 → 0xffffcf98 → 0x00000000
- 0xffffcf24│+0x14: 0xf7feae20 → <_dl_runtime_resolve+16> pop edx
- 0xffffcf28│+0x18: 0xf7e33fbb → <fgets+11> add edi, 0x172045
- 0xffffcf2c│+0x1c: 0x00000001
- ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[ code:i386 ]────
- 0x8048985 <sys+13> sub esp, 0xc
- 0x8048988 <sys+16> push DWORD PTR [ebp+0x8]
- 0x804898b <sys+19> call 0x8048530 <system@plt>
- → 0x8048990 <sys+24> add esp, 0x10
- 0x8048993 <sys+27> mov eax, DWORD PTR [ebp-0xc]
- 0x8048996 <sys+30> test eax, eax
- 0x8048998 <sys+32> jne 0x80489a5 <sys+45>
- 0x804899a <sys+34> das
- 0x804899b <sys+35> bound ebp, QWORD PTR [ecx+0x6e]
- ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[ threads ]────
- [#0] Id 1, Name: "robot_city_iden", stopped, reason: SINGLE STEP
- ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[ trace ]────
- [#0] 0x8048990 → Name: sys()
- [#1] 0x8048972 → Name: identify()
- [#2] 0x8048a04 → Name: main()
- ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
- 0x08048990 in sys ()
- gef➤
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement