aboutsummaryrefslogtreecommitdiff
path: root/include_payload.asm
diff options
context:
space:
mode:
Diffstat (limited to 'include_payload.asm')
-rw-r--r--include_payload.asm10
1 files changed, 10 insertions, 0 deletions
diff --git a/include_payload.asm b/include_payload.asm
new file mode 100644
index 0000000..647c89f
--- /dev/null
+++ b/include_payload.asm
@@ -0,0 +1,10 @@
+bits 32
+section .payload ; could be .rodata/.text as well
+
+payload_start:
+incbin "exec_payload"
+; MyExecTrailer
+db 0xde,0xad,0xc0,0xde ; uint32_t marker[0]
+db 0xca,0xfe,0xca,0xfe ; uint32_t marker[1]
+dd 0x00000000,0x00000000,0x00000000,0x00000000 ; xorkey[XOR_KEYLEN]
+dd $ - payload_start - 4 - 4 - 16 ; payload_size