We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd45d92 commit b9b40edCopy full SHA for b9b40ed
lib/msf/core/exe/segment_injector.rb
@@ -59,20 +59,11 @@ def create_thread_stub
59
EOS
60
end
61
62
- def payload_as_asm
63
- asm = ''
64
- @payload.each_byte do |byte|
65
- asm << "db " + sprintf("0x%02x", byte) + "\n"
66
- end
67
- return asm
68
69
-
70
def payload_stub(prefix)
71
asm = "hook_entrypoint:\n#{prefix}\n"
72
asm << create_thread_stub
73
- asm << payload_as_asm
74
shellcode = Metasm::Shellcode.assemble(processor, asm)
75
- shellcode.encoded
+ shellcode.encoded + @payload
76
77
78
def generate_pe
0 commit comments