fix minor issue typing 'transport remove'

meterpreter > transport remove
[-] Error running command transport: NoMethodError undefined method `end_with?' for nil:NilClass
bug/bundler_fix
Brent Cook 2015-06-22 16:56:16 -05:00
parent 8656add0ad
commit 6a0a410cad
1 changed files with 1 additions and 1 deletions

View File

@ -739,7 +739,7 @@ class Console::CommandDispatcher::Core
print_error("Failed to add transport, please check the parameters")
end
when 'remove'
if !opts[:transport].end_with?('_tcp') && opts[:uri].nil?
if opts[:transport] && !opts[:transport].end_with?('_tcp') && opts[:uri].nil?
print_error("HTTP/S transport specified without session URI")
return
end