diff --git a/Elf.odp b/Elf.odp index 8bd220c..1c154b1 100644 Binary files a/Elf.odp and b/Elf.odp differ diff --git a/cmatrix b/cmatrix new file mode 100644 index 0000000..71b8e5b Binary files /dev/null and b/cmatrix differ diff --git a/combo b/combo new file mode 100755 index 0000000..5739d6e Binary files /dev/null and b/combo differ diff --git a/compile.sh b/compile.sh new file mode 100755 index 0000000..d75c291 --- /dev/null +++ b/compile.sh @@ -0,0 +1,6 @@ +#!/bin/bash +rm tiny +rm tiny.o +nasm -f elf64 tiny.asm -o tiny.o +ld -nostdlib tiny.o -o tiny +strip -s tiny diff --git a/ld.svg b/ld.svg new file mode 100644 index 0000000..b279b57 --- /dev/null +++ b/ld.svg @@ -0,0 +1,232 @@ + + + + + + + + + + + + + + + + R-- + + + + R-X + + + + R-X + + + + RW- + + + + RW- + + + ld.so + _printf() + printf() @libc.so + + + diff --git a/map.svg b/map.svg new file mode 100644 index 0000000..605a5e4 --- /dev/null +++ b/map.svg @@ -0,0 +1,273 @@ + + + + + + + + + + + + + + + + + + + + + + + + + R-- + + + + .elf + + + + R-X + + + + RW- + + + + RW- + + + mmap() + + + + + + diff --git a/poly.sh b/poly.sh new file mode 100755 index 0000000..760967d --- /dev/null +++ b/poly.sh @@ -0,0 +1,3 @@ +#!/bin/bash +echo Was wollt ich sagen? +exit diff --git a/tiny b/tiny new file mode 100755 index 0000000..5a994af Binary files /dev/null and b/tiny differ diff --git a/tiny.asm b/tiny.asm new file mode 100644 index 0000000..0144da6 --- /dev/null +++ b/tiny.asm @@ -0,0 +1,17 @@ +section .text + global _start ; Start Symbol + +_start: + mov rax, 1 ; sys_write + mov rdi, 1 ; to file descriptor 1 (stdout) + mov rsi, message ; pointer to message downstairs + mov rdx, 16 ; message length + syscall + + ; Exit syscall: _exit(0) + mov rax, 60 ; syscall number for sys_exit + xor rdi, rdi ; exit code 0 + syscall + +section .data + message: db "Hello Interfug", 16 diff --git a/tiny.o b/tiny.o new file mode 100644 index 0000000..030be63 Binary files /dev/null and b/tiny.o differ diff --git a/tiny2 b/tiny2 new file mode 100644 index 0000000..6eb0e32 Binary files /dev/null and b/tiny2 differ