mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-09-04 20:18:27 +02:00
fix logic errors introduced by is_system? changes. see r11998 and r12018
git-svn-id: file:///home/svn/framework3/trunk@12019 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
parent
db55db6a2e
commit
d1d4f9f798
@ -22,7 +22,7 @@ opts.parse(args) { |opt, idx, val|
|
||||
def hkcu_base
|
||||
key_base = []
|
||||
|
||||
if is_system?
|
||||
if not is_system?
|
||||
key_base << "HKCU"
|
||||
else
|
||||
key = "HKU\\"
|
||||
@ -96,4 +96,4 @@ if client.platform =~ /win32|win64/
|
||||
else
|
||||
print_error("This version of Meterpreter is not supported with this Script!")
|
||||
raise Rex::Script::Completed
|
||||
end
|
||||
end
|
||||
|
@ -77,7 +77,7 @@ if client.platform =~ /win32|64/
|
||||
# Enumerate shares being offered
|
||||
enum_conf_shares()
|
||||
|
||||
if is_system?
|
||||
if not is_system?
|
||||
mount_history = enum_recent_mounts("HKEY_CURRENT_USER")
|
||||
run_history = enum_run_unc("HKEY_CURRENT_USER")
|
||||
else
|
||||
@ -115,4 +115,4 @@ if client.platform =~ /win32|64/
|
||||
else
|
||||
print_error("This version of Meterpreter is not supported with this Script!")
|
||||
raise Rex::Script::Completed
|
||||
end
|
||||
end
|
||||
|
@ -102,7 +102,7 @@ def enum_viclient
|
||||
end
|
||||
end
|
||||
|
||||
if is_system?
|
||||
if not is_system?
|
||||
recentconns = registry_getvaldata("HKCU\\Software\\VMware\\VMware Infrastructure Client\\Preferences","RecentConnections").split(",")
|
||||
print_status("Recent VI Client Connections:")
|
||||
recentconns.each do |c|
|
||||
@ -323,4 +323,4 @@ if client.platform =~ /win32|win64/
|
||||
else
|
||||
print_error("This version of Meterpreter is not supported with this Script!")
|
||||
raise Rex::Script::Completed
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user