From 9a5f29e228846a2a7fda8497e72c94cad516376c Mon Sep 17 00:00:00 2001 From: Malfurious Date: Sun, 22 Aug 2021 06:03:20 -0400 Subject: Add sys_exit shellcode templates Signed-off-by: Malfurious --- templates/shellcode/exit32.asm | 8 ++++++++ templates/shellcode/exit64.asm | 8 ++++++++ 2 files changed, 16 insertions(+) create mode 100644 templates/shellcode/exit32.asm create mode 100644 templates/shellcode/exit64.asm diff --git a/templates/shellcode/exit32.asm b/templates/shellcode/exit32.asm new file mode 100644 index 0000000..559c89c --- /dev/null +++ b/templates/shellcode/exit32.asm @@ -0,0 +1,8 @@ +[SECTION .text] +global _start + +_start: + xor ebx, ebx + xor eax, eax + mov al, 0x1 + int 0x80 diff --git a/templates/shellcode/exit64.asm b/templates/shellcode/exit64.asm new file mode 100644 index 0000000..fb899a2 --- /dev/null +++ b/templates/shellcode/exit64.asm @@ -0,0 +1,8 @@ +[SECTION .text] +global _start + +_start: + xor rdi, rdi + mov al, 0x3c + cdq + syscall -- cgit v1.2.3