Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- terminal 1
- gdcrsd@kali:~/Videos$ gdb qq
- GNU gdb (Debian 8.3.1-1) 8.3.1
- Copyright (C) 2019 Free Software Foundation, Inc.
- License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
- This is free software: you are free to change and redistribute it.
- There is NO WARRANTY, to the extent permitted by law.
- Type "show copying" and "show warranty" for details.
- This GDB was configured as "x86_64-linux-gnu".
- Type "show configuration" for configuration details.
- For bug reporting instructions, please see:
- <http://www.gnu.org/software/gdb/bugs/>.
- Find the GDB manual and other documentation resources online at:
- <http://www.gnu.org/software/gdb/documentation/>.
- For help, type "help".
- Type "apropos word" to search for commands related to "word"...
- Reading symbols from qq...
- (No debugging symbols found in qq)
- (gdb) info address buffer
- No symbol "buffer" in current context.
- (gdb) break main
- Breakpoint 1 at 0x1149
- (gdb) r
- Starting program: /home/rsd/Videos/qq
- Breakpoint 1, 0x0000555555555149 in main ()
- (gdb) info address buffer
- Symbol "buffer" is static storage at address 0x7ffff7f9ff60.
- (gdb) info
- address proc
- all-registers program
- args record
- auto-load registers
- auxv scope
- bookmarks selectors
- breakpoints set
- checkpoints sharedlibrary
- classes signals
- common skip
- copying source
- dcache sources
- display stack
- exceptions static-tracepoint-markers
- extensions symbol
- files target
- float tasks
- frame terminal
- frame-filter threads
- functions tracepoints
- guile tvariables
- handle type-printers
- inferiors types
- (gdb) info
- "info" must be followed by the name of an info command.
- List of info subcommands:
- info address -- Describe where symbol SYM is stored
- info all-registers -- List of all registers and their contents
- info args -- All argument variables of current stack frame or those matching REGEXPs
- info auto-load -- Print current status of auto-loaded files
- info auxv -- Display the inferior's auxiliary vector
- info bookmarks -- Status of user-settable bookmarks
- info breakpoints -- Status of specified breakpoints (all user-settable breakpoints if no argument)
- info checkpoints -- IDs of currently known checkpoints
- info classes -- All Objective-C classes
- info common -- Print out the values contained in a Fortran COMMON block
- info copying -- Conditions for redistributing copies of GDB
- info dcache -- Print information on the dcache performance
- info display -- Expressions to display when program stops
- info exceptions -- List all Ada exception names
- info extensions -- All filename extensions associated with a source language
- info files -- Names of targets and files being debugged
- info float -- Print the status of the floating point unit
- info frame -- All about the selected stack frame
- info frame-filter -- List all registered Python frame-filters
- --Type <RET> for more, q to quit, c to continue without paging--
- info functions -- All function names or those matching REGEXPs
- info guile -- Prefix command for Guile info displays
- info handle -- What debugger does when program gets various signals
- info inferiors -- Print a list of inferiors being managed
- info line -- Core addresses of the code for a source line
- info locals -- All local variables of current stack frame or those matching REGEXPs
- info macro -- Show the definition of MACRO
- info macros -- Show the definitions of all macros at LINESPEC
- info mem -- Memory region attributes
- info os -- Show OS data ARG
- info pretty-printer -- GDB command to list all registered pretty-printers
- info probes -- Show available static probes
- info proc -- Show additional information about a process
- info program -- Execution status of the program
- info record -- Info record options
- info registers -- List of integer registers and their contents
- info scope -- List the variables local to a scope
- info selectors -- All Objective-C selectors
- info set -- Show all GDB settings
- info sharedlibrary -- Status of loaded shared object libraries
- info signals -- What debugger does when program gets various signals
- info skip -- Display the status of skips
- --Type <RET> for more, q to quit, c to continue without paging--
- info source -- Information about the current source file
- info sources -- Source files in the program
- info stack -- Backtrace of the stack
- info static-tracepoint-markers -- List target static tracepoints markers
- info symbol -- Describe what symbol is at location ADDR
- info target -- Names of targets and files being debugged
- info tasks -- Provide information about all known Ada tasks
- info terminal -- Print inferior's saved terminal status
- info threads -- Display currently known threads
- info tracepoints -- Status of specified tracepoints (all tracepoints if no argument)
- info tvariables -- Status of trace state variables and their values
- info type-printers -- GDB command to list all registered type-printers
- info types -- All type names
- info unwinder -- GDB command to list unwinders
- info variables -- All global and static variable names or those matching REGEXPs
- info vector -- Print the status of the vector unit
- info vtbl -- Show the virtual function table for a C++ object
- info warranty -- Various kinds of warranty you do not have
- info watchpoints -- Status of specified watchpoints (all watchpoints if no argument)
- info win -- List of all displayed windows
- --Type <RET> for more, q to quit, c to continue without paging--
- info xmethod -- GDB command to list registered xmethod matchers
- Type "help info" followed by info subcommand name for full documentation.
- Type "apropos word" to search for commands related to "word".
- Command name abbreviations are allowed if unambiguous.
- (gdb) info os
- Type Description
- cpus Listing of all cpus/cores on the system
- files Listing of all file descriptors
- modules Listing of all loaded kernel modules
- msg Listing of all message queues
- processes Listing of all processes
- procgroups Listing of all process groups
- semaphores Listing of all semaphores
- shm Listing of all shared-memory regions
- sockets Listing of all internet-domain sockets
- threads Listing of all threads
- (gdb) info addess buffer
- Undefined info command: "addess buffer". Try "help info".
- (gdb) info address buffer
- Symbol "buffer" is static storage at address 0x7ffff7f9ff60.
- (gdb) c
- Continuing.
- aaaaaaaaaaaaaaaaaaaa
- Try again?
- [Inferior 1 (process 14831) exited normally]
- (gdb) info address buffer
- Symbol "buffer" is static storage at address 0x7ffff7f9ff60.
- (gdb) c
- The program is not being run.
- (gdb) info address buffer
- Symbol "buffer" is static storage at address 0x7ffff7f9ff60.
- (gdb) c
- The program is not being run.
- (gdb) info address buffer
- Symbol "buffer" is static storage at address 0x7ffff7f9ff60.
- (gdb) p 0x7ffff7f9ff60-0x7fffffffdf5c
- $1 = -134602748
- (gdb) r
- Starting program: /home/rsd/Videos/qq
- Breakpoint 1, 0x0000555555555149 in main ()
- (gdb) c
- Continuing.
- aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
- Try again?
- [Inferior 1 (process 14885) exited normally]
- (gdb) p 0x7ffff7f9ff60-0x7fffffffdf5c
- $2 = -134602748
- (gdb) info address modified
- No symbol "modified" in current context.
- (gdb) c
- The program is not being run.
- (gdb) info address modified
- No symbol "modified" in current context.
- (gdb) info address modified
- No symbol "modified" in current context.
- (gdb) info address buffer
- Symbol "buffer" is static storage at address 0x7ffff7f9ff60.
- (gdb) c
- The program is not being run.
- (gdb) r
- Starting program: /home/rsd/Videos/qq
- Breakpoint 1, 0x0000555555555149 in main ()
- (gdb) info address buffer
- Symbol "buffer" is static storage at address 0x7ffff7f9ff60.
- (gdb) info address modified
- No symbol "modified" in current context.
- (gdb) c
- Continuing.
- aaaaaaaaaaaaaaaa
- Try again?
- [Inferior 1 (process 14909) exited normally]
- (gdb) info address modified
- terminal 2
- rsd@kali:~/Videos$ gdb qq
- GNU gdb (Debian 8.3.1-1) 8.3.1
- Copyright (C) 2019 Free Software Foundation, Inc.
- License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
- This is free software: you are free to change and redistribute it.
- There is NO WARRANTY, to the extent permitted by law.
- Type "show copying" and "show warranty" for details.
- This GDB was configured as "x86_64-linux-gnu".
- Type "show configuration" for configuration details.
- For bug reporting instructions, please see:
- <http://www.gnu.org/software/gdb/bugs/>.
- Find the GDB manual and other documentation resources online at:
- <http://www.gnu.org/software/gdb/documentation/>.
- For help, type "help".
- Type "apropos word" to search for commands related to "word"...
- Reading symbols from qq...
- (No debugging symbols found in qq)
- (gdb) set disassembly-flavor intel
- (gdb) break main
- Breakpoint 1 at 0x1149
- (gdb) r
- Starting program: /home/rsd/Videos/qq
- Breakpoint 1, 0x0000555555555149 in main ()
- (gdb) disassemble main
- Dump of assembler code for function main:
- 0x0000555555555145 <+0>: push rbp
- 0x0000555555555146 <+1>: mov rbp,rsp
- => 0x0000555555555149 <+4>: sub rsp,0x60
- 0x000055555555514d <+8>: mov DWORD PTR [rbp-0x54],edi
- 0x0000555555555150 <+11>: mov QWORD PTR [rbp-0x60],rsi
- 0x0000555555555154 <+15>: mov DWORD PTR [rbp-0x4],0x0
- 0x000055555555515b <+22>: lea rax,[rbp-0x50]
- 0x000055555555515f <+26>: mov rdi,rax
- 0x0000555555555162 <+29>: mov eax,0x0
- 0x0000555555555167 <+34>: call 0x555555555040 <gets@plt>
- 0x000055555555516c <+39>: mov eax,DWORD PTR [rbp-0x4]
- 0x000055555555516f <+42>: test eax,eax
- 0x0000555555555171 <+44>: je 0x555555555181 <main+60>
- 0x0000555555555173 <+46>: lea rdi,[rip+0xe8e] # 0x555555556008
- 0x000055555555517a <+53>: call 0x555555555030 <puts@plt>
- 0x000055555555517f <+58>: jmp 0x55555555518d <main+72>
- 0x0000555555555181 <+60>: lea rdi,[rip+0xea9] # 0x555555556031
- 0x0000555555555188 <+67>: call 0x555555555030 <puts@plt>
- 0x000055555555518d <+72>: mov eax,0x0
- 0x0000555555555192 <+77>: leave
- 0x0000555555555193 <+78>: ret
- End of assembler dump.
- (gdb) info pro
- probes proc program
- (gdb) info proc mappings
- process 12955
- Mapped address spaces:
- Start Addr End Addr Size Offset objfile
- 0x555555554000 0x555555555000 0x1000 0x0 /home/rsd/Videos/qq
- 0x555555555000 0x555555556000 0x1000 0x1000 /home/rsd/Videos/qq
- 0x555555556000 0x555555557000 0x1000 0x2000 /home/rsd/Videos/qq
- 0x555555557000 0x555555558000 0x1000 0x2000 /home/rsd/Videos/qq
- 0x555555558000 0x555555559000 0x1000 0x3000 /home/rsd/Videos/qq
- 0x7ffff7de1000 0x7ffff7e06000 0x25000 0x0 /lib/x86_64-linux-gnu/libc-2.29.so
- 0x7ffff7e06000 0x7ffff7f4d000 0x147000 0x25000 /lib/x86_64-linux-gnu/libc-2.29.so
- 0x7ffff7f4d000 0x7ffff7f96000 0x49000 0x16c000 /lib/x86_64-linux-gnu/libc-2.29.so
- 0x7ffff7f96000 0x7ffff7f97000 0x1000 0x1b5000 /lib/x86_64-linux-gnu/libc-2.29.so
- --Type <RET> for more, q to quit, c to continue without paging--
- gnu/libc-2.29.so
- 0x7ffff7f9a000 0x7ffff7f9d000 0x3000 0x1b8000 /lib/x86_64-linux-gnu/libc-2.29.so
- 0x7ffff7f9d000 0x7ffff7fa3000 0x6000 0x0
- 0x7ffff7fd0000 0x7ffff7fd3000 0x3000 0x0 [vvar]
- 0x7ffff7fd3000 0x7ffff7fd4000 0x1000 0x0 [vdso]
- 0x7ffff7fd4000 0x7ffff7fd5000 0x1000 0x0 /lib/x86_64-linux-gnu/ld-2.29.so
- 0x7ffff7fd5000 0x7ffff7ff4000 0x1f000 0x1000 /lib/x86_64-linux-gnu/ld-2.29.so
- 0x7ffff7ff4000 0x7ffff7ffc000 0x8000 0x20000 /lib/x86_64-linux-gnu/ld-2.29.so
- 0x7ffff7ffc000 0x7ffff7ffd000 0x1000 0x27000 /lib/x86_64-linux-gnu/ld-2.29.so
- 0x7ffff7ffd000 0x7ffff7ffe000 0x1000 0x28000 /lib/x86_64-linux-gnu/ld-2.29.so
- 0x7ffff7ffe000 0x7ffff7fff000 0x1000 0x0
- 0x7ffffffde000 0x7ffffffff000 0x21000 0x0 [stack]
- (gdb) x $rbp-0x4
- 0x7fffffffdf5c: 0x00000000
- (gdb) p $rbp-0x4
- $1 = (void *) 0x7fffffffdf5c
- (gdb) clear
- No source file specified.
- (gdb) disassemble main
- Dump of assembler code for function main:
- 0x0000555555555145 <+0>: push rbp
- 0x0000555555555146 <+1>: mov rbp,rsp
- => 0x0000555555555149 <+4>: sub rsp,0x60
- 0x000055555555514d <+8>: mov DWORD PTR [rbp-0x54],edi
- 0x0000555555555150 <+11>: mov QWORD PTR [rbp-0x60],rsi
- 0x0000555555555154 <+15>: mov DWORD PTR [rbp-0x4],0x0
- 0x000055555555515b <+22>: lea rax,[rbp-0x50]
- 0x000055555555515f <+26>: mov rdi,rax
- 0x0000555555555162 <+29>: mov eax,0x0
- 0x0000555555555167 <+34>: call 0x555555555040 <gets@plt>
- 0x000055555555516c <+39>: mov eax,DWORD PTR [rbp-0x4]
- 0x000055555555516f <+42>: test eax,eax
- 0x0000555555555171 <+44>: je 0x555555555181 <main+60>
- 0x0000555555555173 <+46>: lea rdi,[rip+0xe8e] # 0x555555556008
- 0x000055555555517a <+53>: call 0x555555555030 <puts@plt>
- 0x000055555555517f <+58>: jmp 0x55555555518d <main+72>
- 0x0000555555555181 <+60>: lea rdi,[rip+0xea9] # 0x555555556031
- 0x0000555555555188 <+67>: call 0x555555555030 <puts@plt>
- 0x000055555555518d <+72>: mov eax,0x0
- 0x0000555555555192 <+77>: leave
- 0x0000555555555193 <+78>: ret
- --Type <RET> for more, q to quit, c to continue without paging--
- End of assembler dump.
- (gdb) b *0x000055555555516c
- Breakpoint 2 at 0x55555555516c
- (gdb) r
- The program being debugged has been started already.
- Start it from the beginning? (y or n) y
- Starting program: /home/rsd/Videos/qq
- A
- Breakpoint 1, 0x0000555555555149 in main ()
- (gdb) x
- 0x7fffffffdf60: 0x555551a0
- (gdb) c
- Continuing.
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- Breakpoint 2, 0x000055555555516c in main ()
- (gdb) info registers
- rax 0x7fffffffdf10 140737488346896
- rbx 0x0 0
- rcx 0x7ffff7f9aa00 140737353722368
- rdx 0x7ffff7f9d590 140737353733520
- rsi 0x5555555592a1 93824992252577
- rdi 0x7fffffffdf11 140737488346897
- rbp 0x7fffffffdf60 0x7fffffffdf60
- rsp 0x7fffffffdf00 0x7fffffffdf00
- r8 0x7fffffffdf10 140737488346896
- r9 0x0 0
- r10 0x410 1040
- r11 0x246 582
- r12 0x555555555060 93824992235616
- r13 0x7fffffffe040 140737488347200
- r14 0x0 0
- r15 0x0 0
- rip 0x55555555516c 0x55555555516c <main+39>
- eflags 0x246 [ PF ZF IF ]
- cs 0x33 51
- ss 0x2b 43
- ds 0x0 0
- es 0x0 0
- --Type <RET> for more, q to quit, c to continue without paging--q
- Quit
- (gdb) x/24wx $rsp
- 0x7fffffffdf00: 0xffffe048 0x00007fff 0xffffdf37 0x00000001
- 0x7fffffffdf10: 0x41414141 0x41414141 0x41414141 0x41414141
- 0x7fffffffdf20: 0x41414141 0x41414141 0x41414141 0x41414141
- 0x7fffffffdf30: 0x41414141 0x41414141 0x00000041 0x00000000
- 0x7fffffffdf40: 0x555551a0 0x00005555 0x55555060 0x00005555
- 0x7fffffffdf50: 0xffffe040 0x00007fff 0x00000000 0x00000000
- (gdb) c
- Continuing.
- Try again?
- [Inferior 1 (process 13337) exited normally]
- (gdb) r
- Starting program: /home/rsd/Videos/qq
- Breakpoint 1, 0x0000555555555149 in main ()
- (gdb) r
- The program being debugged has been started already.
- Start it from the beginning? (y or n) y
- Starting program: /home/rsd/Videos/qq
- Breakpoint 1, 0x0000555555555149 in main ()
- (gdb) c
- Continuing.
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABB
- Breakpoint 2, 0x000055555555516c in main ()
- (gdb) x/24wx $rsp
- 0x7fffffffdf00: 0xffffe048 0x00007fff 0xffffdf37 0x00000001
- 0x7fffffffdf10: 0x41414141 0x41414141 0x41414141 0x41414141
- 0x7fffffffdf20: 0x41414141 0x41414141 0x41414141 0x41414141
- 0x7fffffffdf30: 0x41414141 0x41414141 0x41414141 0x42424141
- 0x7fffffffdf40: 0x55555100 0x00005555 0x55555060 0x00005555
- 0x7fffffffdf50: 0xffffe040 0x00007fff 0x00000000 0x00000000
- (gdb) c
- Continuing.
- Try again?
- [Inferior 1 (process 13736) exited normally]
- (gdb) r
- Starting program: /home/rsd/Videos/qq
- Breakpoint 1, 0x0000555555555149 in main ()
- (gdb) c
- Continuing.
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABB
- Breakpoint 2, 0x000055555555516c in main ()
- (gdb) x/24wx $rsp
- 0x7fffffffdf00: 0xffffe048 0x00007fff 0xffffdf37 0x00000001
- 0x7fffffffdf10: 0x41414141 0x41414141 0x41414141 0x41414141
- 0x7fffffffdf20: 0x41414141 0x41414141 0x41414141 0x41414141
- 0x7fffffffdf30: 0x41414141 0x41414141 0x41414141 0x41414141
- 0x7fffffffdf40: 0x41414141 0x41414141 0x41414141 0x41414141
- 0x7fffffffdf50: 0x00424241 0x00007fff 0x00000000 0x00000000
- (gdb) c
- Continuing.
- Try again?
- [Inferior 1 (process 13854) exited normally]
- (gdb) r
- Starting program: /home/rsd/Videos/qq
- Breakpoint 1, 0x0000555555555149 in main ()
- (gdb) AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABB
- Undefined command: "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABB". Try "help".
- (gdb) c
- Continuing.
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABB
- Breakpoint 2, 0x000055555555516c in main ()
- (gdb) c
- Continuing.
- Try again?
- [Inferior 1 (process 14025) exited normally]
- (gdb) c
- The program is not being run.
- (gdb) r
- Starting program: /home/rsd/Videos/qq
- Breakpoint 1, 0x0000555555555149 in main ()
- (gdb) c
- Continuing.
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABB
- Breakpoint 2, 0x000055555555516c in main ()
- (gdb) r
- The program being debugged has been started already.
- Start it from the beginning? (y or n) y
- Starting program: /home/rsd/Videos/qq
- Breakpoint 1, 0x0000555555555149 in main ()
- (gdb) AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- Undefined command: "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". Try "help".
- (gdb) r
- The program being debugged has been started already.
- Start it from the beginning? (y or n) y
- Starting program: /home/rsd/Videos/qq
- Breakpoint 1, 0x0000555555555149 in main ()
- (gdb) AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- Undefined command: "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". Try "help".
- (gdb) c
- Continuing.
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- Breakpoint 2, 0x000055555555516c in main ()
- (gdb) x/24wx $rsp
- 0x7fffffffdf00: 0xffffe048 0x00007fff 0xffffdf37 0x00000001
- 0x7fffffffdf10: 0x41414141 0x41414141 0x41414141 0x41414141
- 0x7fffffffdf20: 0x41414141 0x41414141 0x41414141 0x41414141
- 0x7fffffffdf30: 0x41414141 0x41414141 0x41414141 0x41414141
- 0x7fffffffdf40: 0x41414141 0x41414141 0x41414141 0x41414141
- 0x7fffffffdf50: 0x41414141 0x41414141 0x41414141 0x00000041
- (gdb) c
- Continuing.
- you have changed the 'modified' variable
- [Inferior 1 (process 14210) exited normally]
- (gdb) r
- Starting program: /home/rsd/Videos/qq
- Breakpoint 1, 0x0000555555555149 in main ()
- (gdb) c
- Continuing.
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- Breakpoint 2, 0x000055555555516c in main ()
- (gdb) info proc mappings
- process 14784
- Mapped address spaces:
- Start Addr End Addr Size Offset objfile
- 0x555555554000 0x555555555000 0x1000 0x0 /home/rsd/Videos/qq
- 0x555555555000 0x555555556000 0x1000 0x1000 /home/rsd/Videos/qq
- 0x555555556000 0x555555557000 0x1000 0x2000 /home/rsd/Videos/qq
- 0x555555557000 0x555555558000 0x1000 0x2000 /home/rsd/Videos/qq
- 0x555555558000 0x555555559000 0x1000 0x3000 /home/rsd/Videos/qq
- 0x555555559000 0x55555557a000 0x21000 0x0 [heap]
- 0x7ffff7de1000 0x7ffff7e06000 0x25000 0x0 /lib/x86_64-linux-gnu/libc-2.29.so
- 0x7ffff7e06000 0x7ffff7f4d000 0x147000 0x25000 /lib/x86_64-linux-gnu/libc-2.29.so
- 0x7ffff7f4d000 0x7ffff7f96000 0x49000 0x16c000 /lib/x86_64-linux-gnu/libc-2.29.so
- 0x7ffff7f96000 0x7ffff7f97000 0x1000 0x1b5000 /lib/x86_64-linux-gnu/libc-2.29.so
- 0x7ffff7f97000 0x7ffff7f9a000 0x3000 0x1b5000 /lib/x86_64-linux-gnu/libc-2.29.so
- 0x7ffff7f9a000 0x7ffff7f9d000 0x3000 0x1b8000 /lib/x86_64-linux-gnu/libc-2.29.so
- 0x7ffff7f9d000 0x7ffff7fa3000 0x6000 0x0
- 0x7ffff7fd0000 0x7ffff7fd3000 0x3000 0x0 [vvar]
- 0x7ffff7fd3000 0x7ffff7fd4000 0x1000 0x0 [vdso]
- 0x7ffff7fd4000 0x7ffff7fd5000 0x1000 0x0 /lib/x86_64-linux-gnu/ld-2.29.so
- 0x7ffff7fd5000 0x7ffff7ff4000 0x1f000 0x1000 /lib/x86_64-linux-gnu/ld-2.29.so
- 0x7ffff7ff4000 0x7ffff7ffc000 0x8000 0x20000 /lib/x86_64-linux-gnu/ld-2.29.so
- 0x7ffff7ffc000 0x7ffff7ffd000 0x1000 0x27000 /lib/x86_64-linux-gnu/ld-2.29.so
- 0x7ffff7ffd000 0x7ffff7ffe000 0x1000 0x28000 /lib/x86_64-linux-gnu/ld-2.29.so
- 0x7ffff7ffe000 0x7ffff7fff000 0x1000 0x0
- 0x7ffffffde000 0x7ffffffff000 0x21000 0x0 [stack]
- (gdb) info registers
- rax 0x7fffffffdf10 140737488346896
- rbx 0x0 0
- rcx 0x7ffff7f9aa00 140737353722368
- rdx 0x7ffff7f9d590 140737353733520
- rsi 0x5555555592a1 93824992252577
- rdi 0x7fffffffdf11 140737488346897
- rbp 0x7fffffffdf60 0x7fffffffdf60
- rsp 0x7fffffffdf00 0x7fffffffdf00
- r8 0x7fffffffdf10 140737488346896
- r9 0x0 0
- r10 0x410 1040
- r11 0x246 582
- r12 0x555555555060 93824992235616
- r13 0x7fffffffe040 140737488347200
- r14 0x0 0
- r15 0x0 0
- rip 0x55555555516c 0x55555555516c <main+39>
- eflags 0x246 [ PF ZF IF ]
- cs 0x33 51
- ss 0x2b 43
- ds 0x0 0
- es 0x0 0
- fs 0x0 0
- gs 0x0 0
- (gdb) info address buffer
- Symbol "buffer" is static storage at address 0x7ffff7f9ff60.
- (gdb) p $rbp-0x4
- $2 = (void *) 0x7fffffffdf5c
- (gdb) x/x $rbp-0x4
- 0x7fffffffdf5c: 0x00000000
- (gdb) p 0x7ffff7f9ff60-0x7fffffffdf5c
- $3 = -134602748
- (gdb) p 0x7fffffffdf5c-0x7ffff7f9ff60
- $4 = 134602748
- (gdb) info address modified
- No symbol "modified" in current context.
- (gdb) info address buffer
- Symbol "buffer" is static storage at address 0x7ffff7f9ff60.
- (gdb) info address modified
- No symbol "modified" in current context.
- (gdb) info address rbp-0x4
- No symbol "rbp-0x4" in current context.
- (gdb) info address $rbp-0x4
- No symbol "$rbp-0x4" in current context.
- (gdb) x $rbp-0x4
- 0x7fffffffdf5c: 0x00000000
- (gdb) p 0x7ffff7f9ff60-0x7fffffffdf5c
- $5 = -134602748
- (gdb) info address $rbp-0x3
- No symbol "$rbp-0x3" in current context.
- (gdb) info address $rbp-0x5
- No symbol "$rbp-0x5" in current context.
- (gdb) x $rbp-0x3
- 0x7fffffffdf5d: 0xa0000000
- (gdb) x $rbp-0x2
- 0x7fffffffdf5e: 0x51a00000
- (gdb) x $rbp-0x1
- 0x7fffffffdf5f: 0x5551a000
- (gdb) x $rbp-0x5
- 0x7fffffffdf5b: 0x00000041
- (gdb) x $rbp-0x6
- 0x7fffffffdf5a: 0x00004141
- (gdb) x/24xb esp
- No symbol "esp" in current context.
- (gdb) x/24xb $esp
- 0xffffffffffffdf00: Cannot access memory at address 0xffffffffffffdf00
- (gdb) c
- Continuing.
- Try again?
- [Inferior 1 (process 14784) exited normally]
- (gdb) r
- Starting program: /home/rsd/Videos/qq
- Breakpoint 1, 0x0000555555555149 in main ()
- (gdb) c
- Continuing.
- asdsd
- Breakpoint 2, 0x000055555555516c in main ()
- (gdb) x/24wx $rsp
- 0x7fffffffdf00: 0xffffe048 0x00007fff 0xffffdf37 0x00000001
- 0x7fffffffdf10: 0x73647361 0x00000064 0xf7e85745 0x00007fff
- 0x7fffffffdf20: 0x00000000 0x00000000 0x555551e5 0x00005555
- 0x7fffffffdf30: 0x00000000 0x00000000 0x00000000 0x00000000
- 0x7fffffffdf40: 0x555551a0 0x00005555 0x55555060 0x00005555
- 0x7fffffffdf50: 0xffffe040 0x00007fff 0x00000000 0x00000000
- (gdb) c
- Continuing.
- Try again?
- [Inferior 1 (process 14925) exited normally]
- (gdb) r
- Starting program: /home/rsd/Videos/qq
- Breakpoint 1, 0x0000555555555149 in main ()
- (gdb) c
- Continuing.
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- Breakpoint 2, 0x000055555555516c in main ()
- (gdb) x/24wx $rsp
- 0x7fffffffdf00: 0xffffe048 0x00007fff 0xffffdf37 0x00000001
- 0x7fffffffdf10: 0x41414141 0x41414141 0x41414141 0x41414141
- 0x7fffffffdf20: 0x41414141 0x41414141 0x41414141 0x41414141
- 0x7fffffffdf30: 0x41414141 0x41414141 0x00004141 0x00000000
- 0x7fffffffdf40: 0x555551a0 0x00005555 0x55555060 0x00005555
- 0x7fffffffdf50: 0xffffe040 0x00007fff 0x00000000 0x00000000
- (gdb) p 0x7fffffffdf10-0x7ffff7f9ff60
- $6 = 134602672
- (gdb) p 0x7ffff7f9ff60-0x7fffffffdf5c
- $7 = -134602748
- (gdb) info registers
- Display all 156 possibilities? (y or n)
- (gdb) info registers
- rax 0x7fffffffdf10 140737488346896
- rbx 0x0 0
- rcx 0x7ffff7f9aa00 140737353722368
- rdx 0x7ffff7f9d590 140737353733520
- rsi 0x5555555592a1 93824992252577
- rdi 0x7fffffffdf11 140737488346897
- rbp 0x7fffffffdf60 0x7fffffffdf60
- rsp 0x7fffffffdf00 0x7fffffffdf00
- r8 0x7fffffffdf10 140737488346896
- r9 0x0 0
- r10 0x410 1040
- r11 0x246 582
- r12 0x555555555060 93824992235616
- r13 0x7fffffffe040 140737488347200
- r14 0x0 0
- r15 0x0 0
- rip 0x55555555516c 0x55555555516c <main+39>
- eflags 0x246 [ PF ZF IF ]
- cs 0x33 51
- ss 0x2b 43
- ds 0x0 0
- es 0x0 0
- fs 0x0 0
- gs 0x0 0
- (gdb)
Add Comment
Please, Sign In to add comment