cleanup tior and .tmp files
bypassuac module now also cleans the tior.exe and all the .tmp files so we have a clean environemnt afterwardsbug/bundler_fix
parent
f66709b5bb
commit
b952b103bd
|
@ -96,9 +96,9 @@ class Metasploit3 < Msf::Exploit::Local
|
|||
end
|
||||
session.sys.process.kill(pid)
|
||||
# delete the uac bypass payload
|
||||
delete_file = "#{path_bypass}"
|
||||
|
||||
file_rm(delete_file)
|
||||
file_rm(path_bypass)
|
||||
file_rm("#{expand_path("%TEMP%")}\\tior.exe")
|
||||
cmd_exec("cmd.exe", "/c del \"#{expand_path("%TEMP%")}\\w7e*.tmp\"" )
|
||||
end
|
||||
|
||||
def path_bypass
|
||||
|
|
Loading…
Reference in New Issue