File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
modules/post/windows/gather/credentials Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,9 @@ def preconditions_met?
97
97
print_error "This module requires UAC to be bypassed first"
98
98
status = false
99
99
end
100
+ unless session_compat?
101
+ status = false
102
+ end
100
103
return status
101
104
end
102
105
@@ -105,6 +108,16 @@ def repair_ntds(path='')
105
108
cmd_exec ( "esentutl" , arguments )
106
109
end
107
110
111
+ def session_compat?
112
+ if sysinfo [ 'Architecture' ] =~ /x64/ && session . platform =~ /x86/
113
+ print_error "You are running 32-bit Meterpreter on a 64 bit system"
114
+ print_error "Try migrating to a 64-bit process and try again"
115
+ false
116
+ else
117
+ true
118
+ end
119
+ end
120
+
108
121
def vss_method
109
122
id = create_shadowcopy ( "#{ expand_path ( "%SystemDrive%" ) } \\ " )
110
123
sc_details = get_sc_details ( id )
You can’t perform that action at this time.
0 commit comments