12 gdb

12 gdb



m


hakingff’ live:/ramdisk/home/haking


0xbffffae0:    0xbffffac0    0x40038732    0x00000000


0x00000000


0x0804836e

0x0804836f

0x08048371

0x08048374

0x08048377

0x0804837c

0x0804837e

0x08048385

0x0804838c

0x0804838f

0x08048392

0x08048395

0x0804839a

0x0804839d

0x0804839e


(gdb) disas main

Dump of assembler codę for function main:

<main+0>:

push

%ebp

<main+l>:

mov

Xesp,Xebp

<main+3>:

sub

$0x8,Xesp

<main+6>:

and

$0xfffffff0,%esp

<main+9>:

mov

$0x0,Xeax

<main+14>:

sub

Xeax/Xesp

<main+16>:

movl

$0x1,0xfffffffc(Xebp)

<main+23>:

movl

$0x2,0xfffffff8(Xebp)

<main+30>:

sub

$0x8,Xesp

<main+33>:

pushl

0xfffffff8(Xebp)

<main+36>:

pushl

0xfffffffc(Zebp)

<main+39>:

cali

0x8048348 <fn>

<main+44>:

add

$0x10,Xesp

<main+47>:

leave

<main+48>:

ret


End of assembler dump. (gdb) print $ebp+4 $2 = (void *) 0xbffffa9c (gdb) x 0xbffffa9c 0xbffffa9c:    0x0804839a

(gdb) |


ZA


Wyszukiwarka

Podobne podstrony:
11 gdb hakingff’ live:/ramdisk/home/haking m 0xbffffaa0:
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

hakingff’ live:/ramdisk/home/haking &buf=0xbffff9b0 num=272 Segmentation fault (core
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
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
&buf=0xbffff9b0 f haking£> live:/ramdisk/home/haking [haking@live haking]$ ./egg_2.pg I nc
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ł
19 1 r—    :-^ ^ «« ^ 1^__hakingg live:/ramdisk/home/haking_ J n □ X [hakingQlive hak
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 7    printf("num=%d


więcej podobnych podstron