File tree Expand file tree Collapse file tree 3 files changed +351
-258
lines changed
modules/exploits/windows/misc Expand file tree Collapse file tree 3 files changed +351
-258
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ def generate_payload_exe_service(opts = {})
70
70
pl = opts [ :code ]
71
71
pl ||= payload . encoded
72
72
73
- if opts [ :arch ] and opts [ :arch ] == ARCH_X64
73
+ if opts [ :arch ] and ( opts [ :arch ] == ARCH_X64 or opts [ :arch ] == ARCH_X86_64 )
74
74
exe = Msf ::Util ::EXE . to_win64pe_service ( framework , pl , opts )
75
75
else
76
76
exe = Msf ::Util ::EXE . to_win32pe_service ( framework , pl , opts )
@@ -89,7 +89,7 @@ def generate_payload_dll(opts = {})
89
89
pl = opts [ :code ]
90
90
pl ||= payload . encoded
91
91
92
- if opts [ :arch ] and opts [ :arch ] == ARCH_X64
92
+ if opts [ :arch ] and ( opts [ :arch ] == ARCH_X64 or opts [ :arch ] == ARCH_X86_64 )
93
93
dll = Msf ::Util ::EXE . to_win64pe_dll ( framework , pl , opts )
94
94
else
95
95
dll = Msf ::Util ::EXE . to_win32pe_dll ( framework , pl , opts )
You can’t perform that action at this time.
0 commit comments