diff --git a/lib/msf/core/exploit/tcp.rb b/lib/msf/core/exploit/tcp.rb index 532b8cb042..e414c58c98 100644 --- a/lib/msf/core/exploit/tcp.rb +++ b/lib/msf/core/exploit/tcp.rb @@ -194,6 +194,14 @@ module Exploit::Remote::Tcp super disconnect end + + def print_prefix + if rhost && rhost.split(' ').length < 2 + super + peer + ' - ' + else + super + end + end ## #