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
parent
8d1f5849e0
commit
f1675f9ae4
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue