16 gdb

16 gdb



hakingff’ live:/ramdisk/home/haking

(gdb) list

1    void    fn(char    *a) {

2    char buf[10];

3    strcpy(buf, a);

A    printfCthe end    of    fn\n");

5    }

6

7    main    (int    argc, char *argv[]) {

8    fn(argv[l]);

9    printfCthe end\n");

10    )

(gdb) break 3

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

(gdb) run 000000000000000000000000000000

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

Breakpoint 1, fn (a=0xbffffc2b '0' 3    strcpy(buf, a);

(gdb) print &buf

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

(gdb) print $ebp+4

$2 = (void *) 0xbffffa6c

(gdb) |

<repeats 30 times>) at stack_l.c:3

Cl


Wyszukiwarka

Podobne podstrony:
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
18 gdb 2 hakingff’ live:/ramdisk/home/haking (gdb) break 3 Breakpoint 1 at 0x8048382: file stack_l.c
18 gdb hakingff’ live:/ramdisk/home/haking ) main (int argc, char *argv[]) { fn(argv[ll); print
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