📄 gdb-test1.txt
字号:
Starting 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: 222222 Breakpoint 10, 0x0804929d in stage5 ()(gdb) sSingle stepping until exit from function stage5,which has no line number information. Breakpoint 12, 0x08049305 in stage5 ()(gdb) print /d $esi$40 = 657(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: 222211 Breakpoint 10, 0x0804929d in stage5 ()(gdb) sSingle stepping until exit from function stage5,which has no line number information. Breakpoint 12, 0x08049305 in stage5 ()(gdb) print /d $esi$41 = 655(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: 222211 Breakpoint 10, 0x0804929d in stage5 ()(gdb) sSingle stepping until exit from function stage5,which has no line number information. Breakpoint 12, 0x08049305 in stage5 ()(gdb) print /d $esi$42 = 655(gdb) print /d $eax$43 = 615(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: 333333 Breakpoint 10, 0x0804929d in stage5 ()(gdb) sSingle stepping until exit from function stage5,which has no line number information. Breakpoint 12, 0x08049305 in stage5 ()(gdb) print /d $eax$44 = 656(gdb) print /d $esi$45 = 663(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: 222222 Breakpoint 10, 0x0804929d in stage5 ()(gdb) sSingle stepping until exit from function stage5,which has no line number information. Breakpoint 12, 0x08049305 in stage5 ()(gdb) print /d $eax$46 = 656(gdb) print /d $esi$47 = 657(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: 221222 Breakpoint 10, 0x0804929d in stage5 ()(gdb) sSingle stepping until exit from function stage5,which has no line number information. Breakpoint 12, 0x08049305 in stage5 ()(gdb) print /d $esi$48 = 656(gdb) print /d $eax$49 = 656(gdb) sSingle stepping until exit from function stage5,which has no line number information.0x08048880 in main ()(gdb) sSingle stepping until exit from function main,which has no line number information.You successfully passed stage 5. please enter password for stage 6:Program received signal SIGINT, Interrupt.0x400e0df4 in read () from /lib/i686/libc.so.6(gdb) quitA debugging session is active.Do you still want to close the debugger?(y or n) yswpig@linux:~/Documents/ICS> lsasm.txt~ bomb-d1.txt bomb-t.txt handout_lab2.pdf password.txt~bomb1191 bomb-d.txt bomb-t.txt~ password.txtswpig@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 *0x8049321Breakpoint 3 at 0x8049321(gdb) break *0x804934eBreakpoint 4 at 0x804934e(gdb) break *0x8049373Breakpoint 5 at 0x8049373(gdb) break *0x804937aBreakpoint 6 at 0x804937a(gdb) break *0x8049383Breakpoint 7 at 0x8049383(gdb) break *0x804938cBreakpoint 8 at 0x804938c(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: 10000000 Breakpoint 2, 0x0804931e in stage6 ()(gdb) x/d ($ebp+0x8)0xbffff620: 10000000(gdb) x/d ($ebp+0xc)0xbffff624: 298582(gdb) print /d $ebx$1 = 10000000(gdb) sSingle stepping until exit from function stage6,which has no line number information. Breakpoint 3, 0x08049321 in stage6 ()(gdb) sSingle stepping until exit from function stage6,which has no line number information. Breakpoint 4, 0x0804934e in stage6 ()(gdb) print /d $ebx$2 = 1000000(gdb) print /d $eax$3 = 10000000(gdb) print /d $ecx$4 = 1717986919(gdb) print /d $edx$5 = 1000000(gdb) print /d $esi$6 = 0(gdb) print /d $edi$7 = 134522656(gdb) sSingle stepping until exit from function stage6,which has no line number information. Breakpoint 5, 0x08049373 in stage6 ()(gdb) print /d $edi$8 = 134531168(gdb) print /d $esi$9 = 0(gdb) print /d $eax$10 = 1000000(gdb) print /d $ebx$11 = 1000000(gdb) print /d $ecx$12 = 100000(gdb) print /d $edx$13 = 0(gdb) sSingle stepping until exit from function stage6,which has no line number information. Breakpoint 8, 0x0804938c in stage6 ()(gdb) print /d $eax$14 = 0(gdb) print /d $ebx$15 = 1000000(gdb) print /d $ecx$16 = 100000(gdb) print /d $edx$17 = 0(gdb) print /d $esi$18 = 0(gdb) print /d $edi$19 = 134531168(gdb) sSingle stepping until exit from function stage6,which has no line number information.0x08048880 in main ()(gdb) killKill the program being debugged? (y or n) y(gdb) deleteDelete all breakpoints? (y or n) y(gdb) list1 ../sysdeps/i386/elf/start.S: No such file or directory. in ../sysdeps/i386/elf/start.S(gdb) delete(gdb) break explodeBreakpoint 9 at 0x8048cb6(gdb) break *0x804934eBreakpoint 10 at 0x804934e(gdb) break *0x8049373Breakpoint 11 at 0x8049373(gdb) break *0x804937aBreakpoint 12 at 0x804937a(gdb) break *0x8049383Breakpoint 13 at 0x8049383(gdb) break *0x804938cBreakpoint 14 at 0x804938c(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: 55070287 Breakpoint 10, 0x0804934e in stage6 ()(gdb) print /d $ebx$20 = 5507028(gdb) print /d $eax$21 = 55070280(gdb) print /d $ecx$22 = 1717986919(gdb) print /d $edx$23 = 5507028(gdb) print /d $esi$24 = 7(gdb) print /d $edi$25 = 134522656(gdb) sSingle stepping until exit from function stage6,which has no line number information. Breakpoint 11, 0x08049373 in stage6 ()(gdb) print /d $edi$26 = 134531168(gdb) print /d $eax$27 = 5507020(gdb) print /d $ebx$28 = 5507028(gdb) print /d $ecx$29 = 550702(gdb) print /d $edx$30 = 8(gdb) print /d $esi$31 = 7(gdb) sSingle stepping until exit from function stage6,which has no line number information. Breakpoint 12, 0x0804937a in stage6 ()(gdb) print /d $eax$32 = 5506868(gdb) print /d $ebx$33 = 5507028(gdb) print /d $ecx$34 = 550702(gdb) print /d $edx$35 = 8(gdb) print /d $esi$36 = 7(gdb) print /d $edi$37 = 134531168(gdb) sSingle stepping until exit from function stage6,which has no line number information. Breakpoint 14, 0x0804938c in stage6 ()(gdb) print /d $eax$38 = 0(gdb) print /d $al$39 = Value can't be converted to integer.(gdb) x/d($al)Value can't be converted to integer.(gdb) print /d $al$40 = Value can't be converted to integer.(gdb) print /d $al$41 = Value can't be converted to integer.(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: 19840430 Breakpoint 10, 0x0804934e in stage6 ()(gdb) print /d $eax$42 = 19840430(gdb) print /d $ebx$43 = 1984043(gdb) print /d $ecx$44 = 1717986919(gdb) print /d $edx$45 = 1984043(gdb) sSingle stepping until exit from function stage6,which has no line number information. Breakpoint 11, 0x08049373 in stage6 ()(gdb) print /d $eax$46 = 1984040(gdb) print /d $ebx$47 = 1984043(gdb) print /d $ecx$48 = 198404(gdb) print /d $edx$49 = 3(gdb) print /d ($edx,$edi,1)$50 = 1(gdb) print /d ($esi,$edi,1)$51 = 1(gdb) sSingle stepping until exit from function stage6,which has no line number information. Breakpoint 12, 0x0804937a in stage6 ()(gdb) sSingle stepping until exit from function stage6,which has no line number information. Breakpoint 14, 0x0804938c in stage6 ()(gdb) print /d $eax$52 = 0(gdb) print /d $ebx$53 = 1984043(gdb) killKill the program being debugged? (y or n) y(gdb) quitswpig@linux:~/Documents/ICS>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -