summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2021-08-22 06:03:20 -0400
committerMalfurious <m@lfurio.us>2021-08-22 06:03:20 -0400
commit9a5f29e228846a2a7fda8497e72c94cad516376c (patch)
tree82d4b5d5237198fca221548f144aeaf1d27350d8 /templates
parente9cb4e14009a9ea3cbd08c2c4992d0e24b69e097 (diff)
downloadlib-des-gnux-9a5f29e228846a2a7fda8497e72c94cad516376c.tar.gz
lib-des-gnux-9a5f29e228846a2a7fda8497e72c94cad516376c.zip
Add sys_exit shellcode templates
Signed-off-by: Malfurious <m@lfurio.us>
Diffstat (limited to 'templates')
-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