SLAE/exam6/HOWTO
2013-04-09 17:21:09 +02:00

7 lines
242 B
Plaintext

Compile and run
nasm -f elf32 -o helloworld.o helloworld.nasm && ld -m elf_i386 -o helloworld helloworld.o && ./helloworld ; echo $?
Get shellcode
for i in $(objdump -d helloworld -M intel |grep "^ " |cut -f2); do echo -n '\x'$i; done;echo