Vuln Dev
Buffer Overrun Newbie Feb 05 2006 10:20PM
gj_williams2000 yahoo co uk (2 replies)
Re: Buffer Overrun Newbie Feb 08 2006 03:44PM
James Longstreet (jlongs2 uic edu)

On Sun, 5 Feb 2006 gj_williams2000 (at) yahoo.co (dot) uk [email concealed] wrote:

> I was messing about with my pc trying to learn how buffer overruns work
> (mostly as an excuse to use assembler) and I have run into a problem.
>
> The program I am exploiting is just a simple c program I wrote which
> mismanages a string provided by the user by copying it into a 512 byte
> variable on the stack without checking its length.

I suggest that you try learning about buffer overflows with something
slightly more simple. It's my understanding that shellcode is actually
relatively difficult to write for Windows.

If you have experience with Linux, or another Unix OS, I would suggest
starting there. If you don't want to install Linux, you can even run it
in Bochs, QEMU, VMWare, etc.

Start with a simple exploitable C program:

#include <stdio.h>

int main()
{
char buf[512];
gets(buf);
return 0;
}

Try getting this to spawn a shell. You can easily find shellcode on the
internet, or write your own.

[ reply ]
Re: Buffer Overrun Newbie Feb 06 2006 10:55PM
Jason Royes (jroyes da-experts com)


 

Privacy Statement
Copyright 2010, SecurityFocus