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 8d33138 commit 77e9996Copy full SHA for 77e9996
lib/msf/core/exe/segment_injector.rb
@@ -37,7 +37,6 @@ def create_thread_stub
37
push hook_funcname
38
push eax
39
call [iat_GetProcAddress]
40
- mov eax, [iat_CreateThread]
41
lea edx, [thread_hook]
42
push 0
43
@@ -85,6 +84,9 @@ def generate_pe
85
84
pe.mz.encoded.export = pe_orig.encoded[0, 512].export.dup
86
pe.header.time = pe_orig.header.time
87
+ # Don't rebase if we can help it since Metasm doesn't do relocations well
88
+ pe.optheader.dll_characts.delete("DYNAMIC_BASE")
89
+
90
prefix = ''
91
if pe.header.characteristics.include? "DLL"
92
# if there is no entry point, just return after we bail or spawn shellcode
0 commit comments