diff --git a/README.md b/README.md deleted file mode 100644 index 419cb18..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -SLAE -==== - -SLAE - Securitytube Linux Assembly Expert \ No newline at end of file diff --git a/exam1/compile.sh b/exam1/compile.sh new file mode 100755 index 0000000..db9cd62 --- /dev/null +++ b/exam1/compile.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env sh +ARG1=$1 +set -x +nasm -f elf32 -o $ARG1.o $ARG1.nasm && ld -m elf_i386 -o $ARG1 $ARG1.o + diff --git a/exam1/shell_bind_tcp b/exam1/shell_bind_tcp new file mode 100755 index 0000000..a349ce6 Binary files /dev/null and b/exam1/shell_bind_tcp differ diff --git a/exam1/shell_bind_tcp.nasm b/exam1/shell_bind_tcp.nasm new file mode 100644 index 0000000..a4bf64c --- /dev/null +++ b/exam1/shell_bind_tcp.nasm @@ -0,0 +1,19 @@ +; Filename: shell_bind_tcp.nasm +; Author: Andrey Arapov +; 2013 March + +global _start + + +section .text + +_start: + + xor eax, eax ; EAX = 0x000000 + mov al, 1 ; EAX = 0x000001 __NR_exit 1:/usr/include/asm/unistd_32.h + + xor ebx, ebx ; EBX = 0x000000 0: success status + int 0x80 + + +;section .data diff --git a/exam1/shell_bind_tcp.o b/exam1/shell_bind_tcp.o new file mode 100644 index 0000000..8d4172e Binary files /dev/null and b/exam1/shell_bind_tcp.o differ diff --git a/newfile.txt b/newfile.txt deleted file mode 100644 index 00ab2db..0000000 --- a/newfile.txt +++ /dev/null @@ -1,2 +0,0 @@ -hello world -update