turn verbosity off by default
git-svn-id: file:///home/svn/framework3/trunk@10948 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
0d664c3a71
commit
2037262950
|
@ -45,7 +45,10 @@ module Exploit::Remote::Ftp
|
|||
# the RHOST and RPORT options, respectively. After connecting, the banner
|
||||
# message is read in and stored in the 'banner' attribute.
|
||||
#
|
||||
def connect(global = true, verbose = true)
|
||||
def connect(global = true, verbose = nil)
|
||||
verbose ||= datastore['FTPDEBUG']
|
||||
verbose ||= datastore['VERBOSE']
|
||||
|
||||
print_status("Connecting to FTP server #{rhost}:#{rport}...") if verbose
|
||||
|
||||
fd = super(global)
|
||||
|
@ -96,7 +99,9 @@ module Exploit::Remote::Ftp
|
|||
# Connect and login to the remote FTP server using the credentials
|
||||
# that have been supplied in the exploit options.
|
||||
#
|
||||
def connect_login(global = true, verbose = true)
|
||||
def connect_login(global = true, verbose = nil)
|
||||
verbose ||= datastore['FTPDEBUG']
|
||||
verbose ||= datastore['VERBOSE']
|
||||
ftpsock = connect(global, verbose)
|
||||
|
||||
if !(user and pass)
|
||||
|
|
Loading…
Reference in New Issue