📄 gdb-test2.txt
字号:
swpig@linux:~/Documents/ICS> lsasm.txt~ bomb-d1.txt bomb-t.txt gdb-test.txt password.txtbomb1191 bomb-d.txt bomb-t.txt~ handout_lab2.pdf password.txt~swpig@linux:~/Documents/ICS> gdb bomb1191GNU gdb 5.3Copyright 2002 Free Software Foundation, Inc.GDB is free software, covered by the GNU General Public License, and you arewelcome to change it and/or distribute copies of it under certain conditions.Type "show copying" to see the conditions.There is absolutely no warranty for GDB. Type "show warranty" for details.This GDB was configured as "i586-suse-linux"...(gdb) break explodeBreakpoint 1 at 0x8048cb6(gdb) break stage6Breakpoint 2 at 0x804931e(gdb) break *0x804934eBreakpoint 3 at 0x804934e(gdb) break *0x8049373Breakpoint 4 at 0x8049373(gdb) break *0x804937aBreakpoint 5 at 0x804937a(gdb) break *0x8049383Breakpoint 6 at 0x8049383(gdb) break *0x804938cBreakpoint 7 at 0x804938c(gdb) break *0x804932bBreakpoint 8 at 0x804932b(gdb) runStarting program: /home/swpig/Documents/ICS/bomb1191please enter password for stage 1: 165124You successfully passed stage 1. please enter password for stage 2: 16383You successfully passed stage 2. please enter password for stage 3: 37647You successfully passed stage 3. please enter password for stage 4: 213909504You successfully passed stage 4. please enter password for stage 5: 221222You successfully passed stage 5. please enter password for stage 6: 25917758 Breakpoint 2, 0x0804931e in stage6 ()(gdb) sSingle stepping until exit from function stage6,which has no line number information. Breakpoint 3, 0x0804934e in stage6 ()(gdb) print /d $ebx$1 = 2591775(gdb) print /d $eax$2 = 25917750(gdb) print /d $ecx$3 = 1717986919(gdb) print /d $edx$4 = 2591775(gdb) print /d $esi$5 = 8(gdb) print /d $edi$6 = 134522656(gdb) sSingle stepping until exit from function stage6,which has no line number information. Breakpoint 4, 0x08049373 in stage6 ()(gdb) print /d $edx$7 = 5(gdb) print /d $esi$8 = 8(gdb) print /d $eax$9 = 2591770(gdb) print /d $ebx$10 = 2591775(gdb) print /d $ecx$11 = 259177(gdb) print /d $edi$12 = 134531168(gdb) sSingle stepping until exit from function stage6,which has no line number information. Breakpoint 5, 0x0804937a in stage6 ()(gdb) print /d $al$13 = Value can't be converted to integer.(gdb) eaxUndefined command: "eax". Try "help".(gdb) print /d $eax$14 = 2591809(gdb) print /d ($esi,$edi,1)$15 = 1(gdb) print /d $esi$16 = 8(gdb) print /d $edi$17 = 134531168(gdb) sSingle stepping until exit from function stage6,which has no line number information. Breakpoint 6, 0x08049383 in stage6 ()(gdb) print /d $ebx$18 = 259177(gdb) print /d $eax$19 = 2591809(gdb) print /d $ecx$20 = 259177(gdb) print /d $edx$21 = 5(gdb) print /d $esi$22 = 5(gdb) print /d $edi$23 = 134531168(gdb) sSingle stepping until exit from function stage6,which has no line number information. Breakpoint 4, 0x08049373 in stage6 ()(gdb) print /d $eax$24 = 259170(gdb) print /d $ebx$25 = 259177(gdb) print /d $ecx$26 = 25917(gdb) print /d $edx$27 = 7(gdb) print /d $esi$28 = 5(gdb) print /d $edi$29 = 134531168(gdb) sSingle stepping until exit from function stage6,which has no line number information. Breakpoint 5, 0x0804937a in stage6 ()(gdb) print /d $eax$30 = 259303(gdb) print /d $ebx$31 = 259177(gdb) print /d $ecx$32 = 25917(gdb) print /d $edx$33 = 7(gdb) print /d $esi$34 = 5(gdb) print /d $edi$35 = 134531168(gdb) print /d ($esi,$edi,1)$36 = 1(gdb) sSingle stepping until exit from function stage6,which has no line number information. Breakpoint 6, 0x08049383 in stage6 ()(gdb) print /d $ebx$37 = 25917(gdb) print /d $ecx$38 = 25917(gdb) print /d $eax$39 = 259303(gdb) print /d $edx$40 = 7(gdb) print /d $esi$41 = 7(gdb) print /d $edi$42 = 134531168(gdb) sSingle stepping until exit from function stage6,which has no line number information. Breakpoint 4, 0x08049373 in stage6 ()(gdb) print /d $eax$43 = 25910(gdb) print /d $ebx$44 = 25917(gdb) print /d $ecx$45 = 2591(gdb) print /d $edx$46 = 7(gdb) print /d $esi$47 = 7(gdb) print /d $edi$48 = 134531168(gdb) sSingle stepping until exit from function stage6,which has no line number information. Breakpoint 8, 0x0804932b in stage6 ()(gdb) killKill the program being debugged? (y or n) y(gdb) deleteDelete all breakpoints? (y or n) y(gdb) break explodeBreakpoint 9 at 0x8048cb6(gdb) runStarting program: /home/swpig/Documents/ICS/bomb1191please enter password for stage 1: 165124You successfully passed stage 1. please enter password for stage 2: 16383You successfully passed stage 2. please enter password for stage 3: 37647You successfully passed stage 3. please enter password for stage 4: 213909504You successfully passed stage 4. please enter password for stage 5: 221222You successfully passed stage 5. please enter password for stage 6: 259177581 Breakpoint 9, 0x08048cb6 in explode ()(gdb) Quit(gdb) runThe program being debugged has been started already.Start it from the beginning? (y or n) yStarting program: /home/swpig/Documents/ICS/bomb1191please enter password for stage 1: 165124You successfully passed stage 1. please enter password for stage 2: 16383You successfully passed stage 2. please enter password for stage 3: 37647You successfully passed stage 3. please enter password for stage 4: 213909504You successfully passed stage 4. please enter password for stage 5: 221222You successfully passed stage 5. please enter password for stage 6: 25918858 Breakpoint 9, 0x08048cb6 in explode ()(gdb) Quit(gdb) break *0x8049373Breakpoint 10 at 0x8049373(gdb) break *0x804937aBreakpoint 11 at 0x804937a(gdb) break explodeNote: breakpoint 9 also set at pc 0x8048cb6.Breakpoint 12 at 0x8048cb6(gdb) runThe program being debugged has been started already.Start it from the beginning? (y or n) yStarting program: /home/swpig/Documents/ICS/bomb1191please enter password for stage 1: 165124You successfully passed stage 1. please enter password for stage 2: 16383You successfully passed stage 2. please enter password for stage 3: 37647You successfully passed stage 3. please enter password for stage 4: 213909504You successfully passed stage 4. please enter password for stage 5: 221222You successfully passed stage 5. please enter password for stage 6: 12345678 Breakpoint 10, 0x08049373 in stage6 ()(gdb) print $0x804c860$49 = void(gdb) print *0x804c860$50 = 258393491(gdb) print /x *0x804c860$51 = 0xf66c593(gdb) print /x *0x804c863$52 = 0x8841eb0f(gdb) print /x *0x804c864$53 = 0xe78841eb(gdb) killKill the program being debugged? (y or n) y(gdb) runStarting program: /home/swpig/Documents/ICS/bomb1191please enter password for stage 1: 165124You successfully passed stage 1. please enter password for stage 2: 16383You successfully passed stage 2. please enter password for stage 3: 37647You successfully passed stage 3. please enter password for stage 4: 213909504You successfully passed stage 4. please enter password for stage 5: 221222You successfully passed stage 5. please enter password for stage 6: 47206253 Breakpoint 10, 0x08049373 in stage6 ()(gdb) sSingle stepping until exit from function stage6,which has no line number information. Breakpoint 11, 0x0804937a in stage6 ()(gdb) sSingle stepping until exit from function stage6,which has no line number information. Breakpoint 10, 0x08049373 in stage6 ()(gdb) sSingle stepping until exit from function stage6,which has no line number information. Breakpoint 11, 0x0804937a in stage6 ()(gdb) sSingle stepping until exit from function stage6,which has no line number information. Breakpoint 10, 0x08049373 in stage6 ()(gdb) sSingle stepping until exit from function stage6,which has no line number information. Breakpoint 11, 0x0804937a in stage6 ()(gdb) sSingle stepping until exit from function stage6,which has no line number information. Breakpoint 10, 0x08049373 in stage6 ()(gdb) cContinuing. Breakpoint 11, 0x0804937a in stage6 ()(gdb) cContinuing. Breakpoint 10, 0x08049373 in stage6 ()(gdb) sSingle stepping until exit from function stage6,which has no line number information. Breakpoint 11, 0x0804937a in stage6 ()(gdb)Single stepping until exit from function stage6,which has no line number information.0x08048880 in main ()(gdb)Single stepping until exit from function main,which has no line number information. Breakpoint 9, 0x08048cb6 in explode ()(gdb) Quit(gdb) deleteDelete all breakpoints? (y or n) y(gdb) break explodeBreakpoint 13 at 0x8048cb6(gdb) break stage6Breakpoint 14 at 0x804931e(gdb) deleteDelete all breakpoints? (y or n) y(gdb) break explodeBreakpoint 15 at 0x8048cb6(gdb) runThe program being debugged has been started already.Start it from the beginning? (y or n) yStarting program: /home/swpig/Documents/ICS/bomb1191please enter password for stage 1: 165124You successfully passed stage 1. please enter password for stage 2: 16383You successfully passed stage 2. please enter password for stage 3: 37647You successfully passed stage 3. please enter password for stage 4: 213909504You successfully passed stage 4. please enter password for stage 5: 221222You successfully passed stage 5. please enter password for stage 6: 47106253You successfully passed stage 6. Program exited with code 042.(gdb)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -