18 gdb 2

18 gdb 2



hakingff’ live:/ramdisk/home/haking

(gdb) break 3

Breakpoint 1 at 0x8048382: file stack_l.c, linę 3.

(gdb) run 888888888888888888888888888088

Starting program: /ramdisk/home/haking/stack_l 888888888888888888888888888888

Breakpoint 1, fn (a=0xbffffc2b '8' <repeats 30 times>) at stack_l.c:3

3    strcpg(buf, a);

(gdb) print &buf

$1 = (char (•*) [ 101) 0xbffffa50

(gdb) print $ebp+4

$2 = (void *) 0xbffffa6c

(gdb) x $ebp+4

0xbffffa6c:    0x080483c6

(gdb) next

4    printfCthe end of fn\n");

(gdb) x $ebp+4

0xbffffa6c:    0x08004141

(gdb) cont Continuing. the end of fn

Program received signal SIGSEGW, Segmentation fault. 0x08004141 in ?? O (gdb) |


Wyszukiwarka

Podobne podstrony:
18 gdb hakingff’ live:/ramdisk/home/haking ) main (int argc, char *argv[]) { fn(argv[ll); print
08 gdb v ^ 1^_hakingg live:/ramdisk/home/haking_j n □ X Type "shou copying" to see the con
10 gdb hakingff’ live:/ramdisk/home/haking 5 printfCnou ue are in fn

11 gdb hakingff’ live:/ramdisk/home/haking m 0xbffffaa0:
12 gdb m hakingff’ live:/ramdisk/home/haking 0xbffffae0:
hakingg’ live:/ramdisk/home/haking There is absolutely no uarranty for GDB. Type "shou uarranty
16 gdb hakingff’ live:/ramdisk/home/haking (gdb) list 1
29 gdb □ hakingff live:/ramdisk/home/haking/libgtop-1.0.6/src/daemon This GDB uas configured as
39 gdb ** ^ __haking@>live:/ramdisk/home/haking/libgtop-1.0.6/src/daemon__) ° □ X m [haking@live
lazyjoe F ->- haking@live:/ramdisk/home/haking/lazyjoe/listings Plik Edycja Widok lerminal Zakła
lazyjoeb F ->- haking@live:/ramdisk/home/haking/lazyjoe/listings Plik Edycja Widok lerminal Zakł
hakingff’ live:/ramdisk/home/haking &buf=0xbffff9b0 num=272 Segmentation fault (core
19 1 r—    :-^ ^ «« ^ 1^__hakingg live:/ramdisk/home/haking_ J n □ X [hakingQlive hak
&buf=0xbffff9b0 f haking£> live:/ramdisk/home/haking [haking@live haking]$ ./egg_2.pg I nc
36 hexdump n □ X ł_hakingg’ live:/ramdisk/home/haking_J [hakingQlive haking]$ echo -en
hakingśP live:/ramdisk/home/haking <7    ^ m [haking@live haking]$ ./vuln_2 m
38 gdb □ X haking£live:/ramdisk/home/haking/libgtop-1.0.6/src/daemon [haking@live daemon]$ gdb
15 gdb haking?Plive:/ramdisk/home/haking Type "shou copying" to see the conditions. There
haking?Plive:/ramdisk/home/haking §1 [hakingdlive haking]$ ping jabber.org i PING jabber.org

więcej podobnych podstron