From e4494d35822d0f3c44824a656b76bae882ee5df7 Mon Sep 17 00:00:00 2001 From: Tod Beardsley Date: Wed, 10 Feb 2010 19:06:01 +0000 Subject: [PATCH] Added a verbosity line to telnet. git-svn-id: file:///home/svn/framework3/trunk@8442 4d416f70-5f16-0410-b530-b9f4589650da --- modules/auxiliary/scanner/telnet/telnet_login.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/auxiliary/scanner/telnet/telnet_login.rb b/modules/auxiliary/scanner/telnet/telnet_login.rb index 4f88c29c2d..b6afc4ce3e 100644 --- a/modules/auxiliary/scanner/telnet/telnet_login.rb +++ b/modules/auxiliary/scanner/telnet/telnet_login.rb @@ -47,8 +47,10 @@ class Metasploit3 < Msf::Auxiliary deregister_options('RHOST') register_options( [ - OptInt.new('ATTEMPTS', [ false, 'Number of login attempts before reconnecting', 3 ]) - ], Msf::Exploit::Remote::Telnet) + OptInt.new('ATTEMPTS', [ false, 'Number of login attempts before reconnecting', 3 ]), + OptBool.new('VERBOSE', [ true, 'Verbose output', false]) + ], Msf::Exploit::Remote::Telnet + ) @attempts = 0 @got_shell = false @@ -67,6 +69,7 @@ class Metasploit3 < Msf::Auxiliary end def try_user_pass(user, pass) + print_status "#{rhost}:#{rport} Telnet - Attempting: '#{user}':'#{pass}'" if datastore['VERBOSE'] if @got_shell @got_shell = false @attempts = 0