Vulnerability Development mailing list archives

Re: Generating shellcode


From: SpaceWalker <spacewalker () altern org>
Date: Mon, 20 May 2002 20:32:58 +0200

do is a simple proggy which does
printf("\\0%x",(unsigned char) c); for the simbols from the file 

The confusing thin is that you have to convert from AT&T
asembly style(gas gdb etc) to INTEL asm style (nasm)
But that is no problem.
I did a program which dump a shellcode as 
shellcode = 
        "\xcd\x80";
 /* Size : 2 */
on stdout, using his object file linked to.

Attachment: look.c
Description:


Current thread: