fix minor issue typing 'transport remove'
meterpreter > transport remove [-] Error running command transport: NoMethodError undefined method `end_with?' for nil:NilClassbug/bundler_fix
parent
8656add0ad
commit
6a0a410cad
|
@ -739,7 +739,7 @@ class Console::CommandDispatcher::Core
|
||||||
print_error("Failed to add transport, please check the parameters")
|
print_error("Failed to add transport, please check the parameters")
|
||||||
end
|
end
|
||||||
when 'remove'
|
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")
|
print_error("HTTP/S transport specified without session URI")
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue