SLAE/exam6/HOWTO

7 lines
242 B
Plaintext
Raw Permalink Normal View History

2013-04-09 15:21:09 +00:00
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