small fix
git-svn-id: file:///home/svn/framework3/trunk@10353 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
2207e7737a
commit
a5c92b7a52
|
@ -38,9 +38,9 @@ def enum_run_unc(base_key)
|
||||||
unc_paths = []
|
unc_paths = []
|
||||||
full_path = "#{base_key}\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\RunMRU"
|
full_path = "#{base_key}\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\RunMRU"
|
||||||
registry_enumvals(full_path).each do |k|
|
registry_enumvals(full_path).each do |k|
|
||||||
if not k =~ /MRUList/
|
if k =~ /./
|
||||||
run_entrie = registry_getvaldata(full_path,k)
|
run_entrie = registry_getvaldata(full_path,k)
|
||||||
unc_paths << run_entrie if run_entrie =~ /^\\\\*/
|
unc_paths << run_entrie if run_entrie =~ /^\\\\/
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
return unc_paths
|
return unc_paths
|
||||||
|
@ -78,8 +78,8 @@ if client.platform =~ /win32|64/
|
||||||
enum_conf_shares()
|
enum_conf_shares()
|
||||||
user = client.sys.config.getuid
|
user = client.sys.config.getuid
|
||||||
if user != "NT AUTHORITY\\SYSTEM"
|
if user != "NT AUTHORITY\\SYSTEM"
|
||||||
mount_history + enum_recent_mounts("HKEY_CURRENT_USER")
|
mount_history = enum_recent_mounts("HKEY_CURRENT_USER")
|
||||||
run_history + enum_run_unc("HKEY_CURRENT_USER")
|
run_history = enum_run_unc("HKEY_CURRENT_USER")
|
||||||
else
|
else
|
||||||
user_sid = []
|
user_sid = []
|
||||||
key = "HKU\\"
|
key = "HKU\\"
|
||||||
|
@ -107,7 +107,7 @@ if client.platform =~ /win32|64/
|
||||||
#Enumerate UNC Paths entered in the Dialog box
|
#Enumerate UNC Paths entered in the Dialog box
|
||||||
if run_history.length > 0
|
if run_history.length > 0
|
||||||
print_status("Recent UNC paths entered in Run Dialog found:")
|
print_status("Recent UNC paths entered in Run Dialog found:")
|
||||||
mount_history.each do |i|
|
run_history.each do |i|
|
||||||
print_status("\t#{i}")
|
print_status("\t#{i}")
|
||||||
end
|
end
|
||||||
print_status()
|
print_status()
|
||||||
|
|
Loading…
Reference in New Issue