File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
modules/payloads/singles/windows Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -86,14 +86,19 @@ def generate
86
86
call [ebp+8] ;ExitProcess/Thread(0)
87
87
EOS
88
88
89
- # if exit is set to seh, overrule
89
+ # if exit is set to seh or none , overrule
90
90
if datastore [ 'EXITFUNC' ] . upcase . strip == "SEH"
91
91
# routine to exit via exception
92
92
doexit = <<EOS
93
93
xor eax,eax
94
94
call eax
95
95
EOS
96
96
getexitfunc = ''
97
+ elsif datastore [ 'EXITFUNC' ] . upcase . strip == "NONE"
98
+ doexit = <<-EOS
99
+ nop
100
+ EOS
101
+ getexitfunc = ''
97
102
end
98
103
99
104
# Generate code to get ptr to Title
@@ -232,6 +237,7 @@ def generate
232
237
push 0x41206c6c
233
238
push 0x642e3233
234
239
push 0x72657375 ;user32.dll
240
+ xor bl,bl ;make sure we have a null byte
235
241
mov [esp+0xA],bl ;null byte
236
242
mov esi,esp ;put pointer to string on top of stack
237
243
push esi
You can’t perform that action at this time.
0 commit comments