
#!/bin/sh

if [ $# == 2 ]
then
	echo gnration du shellcode
	gcc -o makeshellcode $1 makeshellcode.c	
	./makeshellcode
 	./makeshellcode > crypte.h
	echo cryptage du shellcode
	gcc -o crypte crypte.c
	./crypte $2
	./crypte $2 > cryptecode.h
	echo test du shellcode
	gcc -o testshellcode testshellcode.c
	./testshellcode
else
	echo Utilisation : ./doall \<programme.s\> \<clef entre 1 et 254\>
fi
