□
haki ng @> I ive:/ram d i sk/ho me/haki ng
[haking@live hakingl$ head -c 280 /dev/zero I ./vuln 280 &buf=0xbffff%0 num=280
Segmentation fault
[haking@live haking]$ gcc -ggdb vuln.c -o vuln [haking01ive hakingl$ gdb vuln GNU gdb Red Hat Linux (5.3.90-0.20030710.41rh)
Copgright 2003 Free Software Foundation, Inc.
GDB is free software, covered bg the GNU General Public License, and gou are welcone to change it and/or distribute copies of it under certain conditions. Tgpe "show copging" to see the conditions.
There is absolutelg no warrantg for GDB. Tgpe "show warrantg" for details.
This GDB was configured as "i386-redhat-linux-gnu"...Using host libthread_db lib rarg "/Iib/tls/1ibthread_db.so.l".
(gdb) break 6
Breakpoint 1 at 0x80483d6: file vuln.c, linę 6.
(gdb) run
Starting program: /ramdisk/home/haking/vuln &buf=0xbffff%0
Breakpoint 1, main (argc=l, argv=0xbffffb44) at vuln.c:6 6 num = read(0,buf,atoi(argv[ll));
(gdb) |