View difference between Paste ID: cK3B8yaW and g5QHDe2b
SHOW: | | - or go back to the newest paste.
1-
(gdb) disassemble /r 0x600ac8,+20
1+
(gdb) disass /r 0x400500,+40
2-
Dump of assembler code from 0x600ac8 to 0x600adc:
2+
Dump of assembler code from 0x400500 to 0x400528:
3-
   0x0000000000600ac8 <_GLOBAL_OFFSET_TABLE_+8>:	c8 e1 ff f7	enter  0xffe1,0xf7
3+
   0x0000000000400500 <fopen@plt+0>:	ff 25 da 05 20 00	jmp    QWORD PTR [rip+0x2005da]        # 0x600ae0 <fopen@got.plt>
4-
   0x0000000000600acc <_GLOBAL_OFFSET_TABLE_+12>:	ff	(bad)  
4+
   0x0000000000400506 <fopen@plt+6>:	68 01 00 00 00	push   0x1
5-
   0x0000000000600acd <_GLOBAL_OFFSET_TABLE_+13>:	7f 00	jg     0x600acf <_GLOBAL_OFFSET_TABLE_+15>
5+
   0x000000000040050b <fopen@plt+11>:	e9 d0 ff ff ff	jmp    0x4004e0
6-
   0x0000000000600acf <_GLOBAL_OFFSET_TABLE_+15>:	00 20	add    BYTE PTR [rax],ah
6+
   0x0000000000400510 <__libc_start_main@plt+0>:	ff 25 d2 05 20 00	jmp    QWORD PTR [rip+0x2005d2]        # 0x600ae8 <__libc_start_main@got.plt>
7-
   0x0000000000600ad1 <_GLOBAL_OFFSET_TABLE_+17>:	0a df	or     bl,bh
7+
   0x0000000000400516 <__libc_start_main@plt+6>:	68 02 00 00 00	push   0x2
8-
   0x0000000000600ad3 <_GLOBAL_OFFSET_TABLE_+19>:	f7 ff	idiv   edi
8+
   0x000000000040051b <__libc_start_main@plt+11>:	e9 c0 ff ff ff	jmp    0x4004e0
9-
   0x0000000000600ad5 <_GLOBAL_OFFSET_TABLE_+21>:	7f 00	jg     0x600ad7 <_GLOBAL_OFFSET_TABLE_+23>
9+
   0x0000000000400520 <_start+0>:	31 ed	xor    ebp,ebp
10-
   0x0000000000600ad7 <_GLOBAL_OFFSET_TABLE_+23>:	00 f6	add    dh,dh
10+
   0x0000000000400522 <_start+2>:	49 89 d1	mov    r9,rdx
11-
   0x0000000000600ad9 <printf@got.plt+1>:	04 40	add    al,0x40
11+
   0x0000000000400525 <_start+5>:	5e	pop    rsi
12-
   0x0000000000600adb <printf@got.plt+3>:	00 00	add    BYTE PTR [rax],al
12+
   0x0000000000400526 <_start+6>:	48 89 e2	mov    rdx,rsp
13-
End of assembler dump.
13+
End of assembler dump.
14
15
(gdb) x 0x600ae0
16
0x600ae0 <fopen@got.plt>:	0x00400506
17
18
(gdb) disass /r 0x4004e0,+10
19
Dump of assembler code from 0x4004e0 to 0x4004ea:
20
   0x00000000004004e0:	ff 35 e2 05 20 00	push   QWORD PTR [rip+0x2005e2]        # 0x600ac8 <_GLOBAL_OFFSET_TABLE_+8>
21
   0x00000000004004e6:	ff 25 e4 05 20 00	jmp    QWORD PTR [rip+0x2005e4]        # 0x600ad0 <_GLOBAL_OFFSET_TABLE_+16>
22
End of assembler dump.
23
24
(gdb) x 0x600ac8
25
0x600ac8 <_GLOBAL_OFFSET_TABLE_+8>:	0xf7ffe1c8
26
27
(gdb) x 0x600ad0
28
0x600ad0 <_GLOBAL_OFFSET_TABLE_+16>:	0xf7df0a20
29
30
(gdb) disass 0xf7df0a20+0x4004e6,+20
31
Dump of assembler code from 0xf81f0f06 to 0xf81f0f1a:
32
   0x00000000f81f0f06:	Cannot access memory at address 0xf81f0f06