From d2eb384103e818abad068e4c481afcec2deeacfc Mon Sep 17 00:00:00 2001 From: toni Date: Fri, 1 Aug 2014 00:09:09 +0200 Subject: - building shellcode with C --- shellcode/simple.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 shellcode/simple.c (limited to 'shellcode/simple.c') diff --git a/shellcode/simple.c b/shellcode/simple.c new file mode 100644 index 0000000..bf2bf43 --- /dev/null +++ b/shellcode/simple.c @@ -0,0 +1,11 @@ +/* + * gcc -c -Wall -fpic -Os shellcode.c -o shellcode.o + * ld -N -Ttext 0x0 -e _start -Map shellcode.map shellcode.o -o shellcode + * objcopy -R .note -R .comment -S -O binary shellcode shellcode.bin + */ + +int _start(void) { + while (1) { + } + return (0); +} -- cgit v1.2.3