Browse Source

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-b9f4589650
James Lee 8 years ago
parent
commit
d1d4f9f798

+ 2
- 2
scripts/meterpreter/enum_putty.rb View File

@@ -22,7 +22,7 @@ opts.parse(args) { |opt, idx, val|
22 22
 def hkcu_base
23 23
 	key_base = []
24 24
 	
25
-	if is_system?
25
+	if not is_system?
26 26
 		key_base << "HKCU"
27 27
 	else
28 28
 		key = "HKU\\"
@@ -96,4 +96,4 @@ if client.platform =~ /win32|win64/
96 96
 else
97 97
 	print_error("This version of Meterpreter is not supported with this Script!")
98 98
 	raise Rex::Script::Completed
99
-end
99
+end

+ 2
- 2
scripts/meterpreter/enum_shares.rb View File

@@ -77,7 +77,7 @@ if client.platform =~ /win32|64/
77 77
 	# Enumerate shares being offered
78 78
 	enum_conf_shares()
79 79
 	
80
-	if is_system?
80
+	if not is_system?
81 81
 		mount_history = enum_recent_mounts("HKEY_CURRENT_USER")
82 82
 		run_history = enum_run_unc("HKEY_CURRENT_USER")
83 83
 	else
@@ -115,4 +115,4 @@ if client.platform =~ /win32|64/
115 115
 else
116 116
 	print_error("This version of Meterpreter is not supported with this Script!")
117 117
 	raise Rex::Script::Completed
118
-end
118
+end

+ 2
- 2
scripts/meterpreter/enum_vmware.rb View File

@@ -102,7 +102,7 @@ def enum_viclient
102 102
 		end
103 103
 	end
104 104
 	
105
-	if is_system?
105
+	if not is_system?
106 106
 		recentconns = registry_getvaldata("HKCU\\Software\\VMware\\VMware Infrastructure Client\\Preferences","RecentConnections").split(",")
107 107
 		print_status("Recent VI Client Connections:")
108 108
 		recentconns.each do |c|
@@ -323,4 +323,4 @@ if client.platform =~ /win32|win64/
323 323
 else
324 324
 	print_error("This version of Meterpreter is not supported with this Script!")
325 325
 	raise Rex::Script::Completed
326
-end
326
+end

Loading…
Cancel
Save