Minor enhancement to smart_migrate

Adding a check to see if the user is currently already migrated to the "explorer.exe" and "winlogon.exe" processes prior to attempting migration.
bug/bundler_fix
sammbertram 2015-11-19 13:30:12 +00:00
parent 8d1f5849e0
commit f1675f9ae4
1 changed files with 5 additions and 0 deletions

View File

@ -27,6 +27,11 @@ class Metasploit3 < Msf::Post
server = client.sys.process.open
original_pid = server.pid
print_status("Current server process: #{server.name} (#{server.pid})")
if server.name.casecmp("winlogon.exe") == 0 or server.name.casecmp("explorer.exe") == 0
print_good("Current process is already in #{server.name} process, exiting.")
return
end
uid = client.sys.config.getuid