aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsegfault <segfault@secmail.pro>2019-03-25 02:00:03 +0100
committersegfault <segfault@secmail.pro>2019-03-25 02:00:03 +0100
commit02aef8902a4a48c32f1156c6f888ad2d4050a71a (patch)
treef324cf85a37363ce444f2ae8775808f86a2823a2
parent368a9d701233bda78358335f62aa84c8f81cbeaa (diff)
added shellcode_trailer comments in shellcode.asm
Signed-off-by: segfault <segfault@secmail.pro>
-rw-r--r--shellcode.asm7
1 files changed, 4 insertions, 3 deletions
diff --git a/shellcode.asm b/shellcode.asm
index 8d4057d..2d1826c 100644
--- a/shellcode.asm
+++ b/shellcode.asm
@@ -165,9 +165,10 @@ cmp eax, 0xDEADBEEF
jne shellcode_noret
ret
shellcode_noret:
-; will be overwritten by our "jump back to original code flow" instruction
-db 0xFF,0xDE,0xAD,0xC0,0xDE
-db 0x00,0x00,0x00,0x00,0x00
+; The following 10 bytes represent the shellcode_trailer union (see injector.c).
+; It will be overwritten by our "jump back to original code flow" instruction.
+db 0xFF,0xDE,0xAD,0xC0,0xDE ; insts[0]
+db 0x00,0x00,0x00,0x00,0x00 ; insts[1]
_shellcode_size:
dd $ - _shellcode