📄 gdb-test1.txt
字号:
Breakpoint 20, 0x08049210 in calc_ ()(gdb) print /d $eax$114 = 4(gdb) sSingle stepping until exit from function calc_,which has no line number information. Breakpoint 20, 0x08049210 in calc_ ()(gdb) print /d $eax$115 = 5(gdb) sSingle stepping until exit from function calc_,which has no line number information. Breakpoint 20, 0x08049210 in calc_ ()(gdb) print /d $eax$116 = 5(gdb) sSingle stepping until exit from function calc_,which has no line number information. Breakpoint 20, 0x08049210 in calc_ ()(gdb) print /d $eax$117 = 5(gdb) sSingle stepping until exit from function calc_,which has no line number information. Breakpoint 20, 0x08049210 in calc_ ()(gdb) print /d $eax$118 = 5(gdb) sSingle stepping until exit from function calc_,which has no line number information. Breakpoint 20, 0x08049210 in calc_ ()(gdb) print /d $eax$119 = 5(gdb) sSingle stepping until exit from function calc_,which has no line number information. Breakpoint 20, 0x08049210 in calc_ ()(gdb) print /d $eax$120 = 5(gdb) sSingle stepping until exit from function calc_,which has no line number information. Breakpoint 20, 0x08049210 in calc_ ()(gdb) print /d $eax$121 = 5(gdb) sSingle stepping until exit from function calc_,which has no line number information. Breakpoint 20, 0x08049210 in calc_ ()(gdb) print /d $eax$122 = 5(gdb) sSingle stepping until exit from function calc_,which has no line number information. Breakpoint 20, 0x08049210 in calc_ ()(gdb) print /d $eax$123 = 5(gdb) killKill the program being debugged? (y or n) y(gdb) sThe program is not being run.(gdb) killThe program is not being run.(gdb) deleteDelete all breakpoints? (y or n) y(gdb) break explodeBreakpoint 21 at 0x8048cb6(gdb) break stage4Breakpoint 22 at 0x8049225(gdb) break stage5Breakpoint 23 at 0x804929d(gdb) break *0x804927fBreakpoint 24 at 0x804927f(gdb) break *0x8049275Breakpoint 25 at 0x8049275(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: 38368600 Breakpoint 22, 0x08049225 in stage4 ()(gdb) sSingle stepping until exit from function stage4,which has no line number information. Breakpoint 25, 0x08049275 in stage4 ()(gdb) print /d $eax$124 = 4(gdb) print /d $ebx$125 = 18(gdb) print /d $ecx$126 = 393251(gdb) print /d $edx$127 = 7(gdb) print /d $edi$128 = 4(gdb) print /d $esi$129 = 38368600(gdb) sSingle stepping until exit from function stage4,which has no line number information. Breakpoint 24, 0x0804927f in stage4 ()(gdb) print /d $eax$130 = 5(gdb) print /d $edi$131 = 4(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: 213909504 Breakpoint 22, 0x08049225 in stage4 ()(gdb) sSingle stepping until exit from function stage4,which has no line number information. Breakpoint 25, 0x08049275 in stage4 ()(gdb) sSingle stepping until exit from function stage4,which has no line number information. Breakpoint 24, 0x0804927f in stage4 ()(gdb) print /d $eax$132 = 4(gdb) print /d $edi$133 = 4(gdb) sSingle stepping until exit from function stage4,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 4. please enter password for stage 5:Program received signal SIGINT, Interrupt.0x400e0df4 in read () from /lib/i686/libc.so.6(gdb) killKill the program being debugged? (y or n) y(gdb) sThe program is not being run.(gdb) quitswpig@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 stage5Breakpoint 2 at 0x804929d(gdb) break stage6Breakpoint 3 at 0x804931e(gdb) break *0x80492a4Breakpoint 4 at 0x80492a4(gdb) break *0x80492daBreakpoint 5 at 0x80492da(gdb) break *0x80492deBreakpoint 6 at 0x80492de(gdb) break *0x8049305Breakpoint 7 at 0x8049305(gdb) break *0x80492faBreakpoint 8 at 0x80492fa(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: 656636 Breakpoint 2, 0x0804929d in stage5 ()(gdb) sSingle stepping until exit from function stage5,which has no line number information. Breakpoint 4, 0x080492a4 in stage5 ()(gdb) x/d($ebp+0x8)0xbffff620: 656636(gdb) x/d($ebp+0xc)0xbffff624: 41553(gdb) print /d $ecs$1 = Value can't be converted to integer.(gdb) print /d $ecx$2 = 656636(gdb) sSingle stepping until exit from function stage5,which has no line number information. Breakpoint 5, 0x080492da in stage5 ()(gdb) print /d $ecx$3 = 65663(gdb) sSingle stepping until exit from function stage5,which has no line number information. Breakpoint 5, 0x080492da in stage5 ()(gdb) print /d $ecx$4 = 6566(gdb) sSingle stepping until exit from function stage5,which has no line number information. Breakpoint 5, 0x080492da in stage5 ()(gdb) print /d $ecx$5 = 656(gdb) sSingle stepping until exit from function stage5,which has no line number information. Breakpoint 5, 0x080492da in stage5 ()(gdb) print /d $ecx$6 = 65(gdb) print /d $ecx$7 = 65(gdb) print /d $eax$8 = 594(gdb) print /d $edx$9 = 65(gdb) print /d $ebx$10 = 4(gdb) print /d $esi$11 = 0(gdb) sSingle stepping until exit from function stage5,which has no line number information. Breakpoint 5, 0x080492da in stage5 ()(gdb) print /d $esi$12 = 0(gdb) print /d $ebx$13 = 5(gdb) print /d $edx$14 = 6(gdb) print /d $ecx$15 = 6(gdb) print /d $esi$16 = 0(gdb) print /d $eax$17 = 240(gdb) sSingle stepping until exit from function stage5,which has no line number information. Breakpoint 5, 0x080492da in stage5 ()(gdb) print /d $eax$18 = 19(gdb) print /d $ebx$19 = 6(gdb) print /d $ecs$20 = Value can't be converted to integer.(gdb) print /d $ecx$21 = 0(gdb) print /d $edx$22 = 0(gdb) print /d $esi$23 = 0(gdb) sSingle stepping until exit from function stage5,which has no line number information. Breakpoint 6, 0x080492de in stage5 ()(gdb) print /d $ebx$24 = 6(gdb) sSingle stepping until exit from function stage5,which has no line number information. Breakpoint 8, 0x080492fa in stage5 ()(gdb) print /d $ebx$25 = -1(gdb) print /d $eax$26 = 677(gdb) print /d $ecx$27 = 0(gdb) print /d $edx$28 = 16(gdb) print /d $esi$29 = 677(gdb) sSingle stepping until exit from function stage5,which has no line number information. Breakpoint 7, 0x08049305 in stage5 ()(gdb) print /d $esi$30 = 677(gdb) print /d $eax$31 = 656(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) break stage5Breakpoint 10 at 0x804929d(gdb) break stage6Breakpoint 11 at 0x804931e(gdb) break *0x8049305Breakpoint 12 at 0x8049305(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: 686676 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$32 = 656(gdb) print /d $esi$33 = 684(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: 636656 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$34 = 677(gdb) print /d $eax$35 = 656(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: 535565 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$36 = 656(gdb) print /d $esi$37 = 674(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$38 = 656(gdb) print /d $esi$39 = 663(gdb) killKill the program being debugged? (y or n) y(gdb) run
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -