Files
Shellcode-Lab/x86_32/0x2_NetworkShells/bindshell_tcp/build_x86.sh
2017-02-01 13:15:17 +01:00

16 lines
261 B
Bash

#!/bin/bash
# easy build script for shellcode class
if [ $# -ne 1 ];
then
echo "what is the name of the sourcefile, without .asm please"
exit
fi
name=$1
nasm -f elf32 $name.asm -o $name.o;ld -m elf_i386 -o $name $name.o
md5sum $name
ls -al $name
echo "Done"