cleanup tior and .tmp files

bypassuac module now also cleans
the tior.exe and all the .tmp files so we have a
clean environemnt afterwards
bug/bundler_fix
David Maloney 2014-02-27 13:18:34 -06:00
parent f66709b5bb
commit b952b103bd
No known key found for this signature in database
GPG Key ID: DEDBA9DC3A913DB2
1 changed files with 3 additions and 3 deletions

View File

@ -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