Skip to content

Commit 958f09d

Browse files
committed
learned about the kick add nasm pseudo instruction 'incbin'
1 parent 6ac6e66 commit 958f09d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

32bitStager/makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ mapper_payload: mapper_payload.s
1616
nasm mapper_payload.s -o shellcode
1717
nasm mapper_payload.s -o mapper_payload_test
1818
nasm mapper_payload.s -o mapper_payload_test_raw
19-
cat $(STAGE_LOC)/stage >> mapper_payload_test
19+
2020

2121
test_shellcode: test_shellcode.c
2222
gcc -m32 test_shellcode.c -o test_shellcode

32bitStager/mapper_payload.s

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,4 +150,5 @@ got_plt: db ".got.plt",0
150150
got_plt_end:
151151
ENDOFCODE:
152152
call have_elf
153-
;; append elf here
153+
;; append elf here
154+
incbin "stage"

0 commit comments

Comments
 (0)