summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--templates/shellcode/exit32.asm8
-rw-r--r--templates/shellcode/exit64.asm8
2 files changed, 16 insertions, 0 deletions
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