File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
modules/exploits/windows/smb Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -52,11 +52,11 @@ def initialize(info = {})
52
52
'DisableNops' => true ,
53
53
'StackAdjustment' => -3500
54
54
} ,
55
- 'Arch' => [ ARCH_X86 , ARCH_X86_64 ] ,
56
55
'Platform' => 'win' ,
57
56
'Targets' =>
58
57
[
59
- [ 'Automatic' , { } ] ,
58
+ [ 'Windows x86' , { 'Arch' => ARCH_X86 } ] ,
59
+ [ 'Windows x64' , { 'Arch' => ARCH_X86_64 } ]
60
60
] ,
61
61
'DefaultTarget' => 0 ,
62
62
'References' => [
@@ -77,6 +77,10 @@ def exploit
77
77
print_warning ( "You probably want to DisablePayloadHandler and use exploit/multi/handler with the PERSIST option." )
78
78
end
79
79
80
+ if datastore [ 'RUN_WOW64' ] and target_arch . first == "x86_64"
81
+ fail_with ( Exploit ::Failure ::BadConfig , "Select an x86 target and payload with RUN_WOW64 enabled" )
82
+ end
83
+
80
84
#Try and authenticate with given credentials
81
85
if connect
82
86
begin
You can’t perform that action at this time.
0 commit comments