Unbreak the migrate command

The server is not returning the core_migrate command.  This is a bandaid
to make migrate work again until that gets sorted.
unstable
James Lee 2012-05-18 10:25:29 -06:00
parent fec2ec37f8
commit 52183aa249
1 changed files with 5 additions and 1 deletions

View File

@ -63,7 +63,11 @@ class Console::CommandDispatcher::Core
if client.passive_service
c["detach"] = "Detach the meterpreter session (for http/https)"
end
if client.commands.include? "core_migrate"
# The only meterp that implements this right now is native Windows and for
# whatever reason it is not adding core_migrate to its list of commands.
# Use a dumb platform til it gets sorted.
#if client.commands.include? "core_migrate"
if client.platform =~ /win/
c["migrate"] = "Migrate the server to another process"
end