Make motd printing optional, off by default

bug/bundler_fix
Jon Hart 2015-11-04 10:11:00 -08:00
parent 8f497faa09
commit f1a79bd207
No known key found for this signature in database
GPG Key ID: 2FA9F0A3AFA8E9D3
1 changed files with 3 additions and 1 deletions

View File

@ -42,6 +42,8 @@ class Metasploit3 < Msf::Auxiliary
register_advanced_options(
[
OptBool.new('SHOW_MOTD',
[ true, 'Show the rsync motd, if found', false ]),
OptInt.new('READ_TIMEOUT', [ true, 'Seconds to wait while reading rsync responses', 2 ])
]
)
@ -148,7 +150,7 @@ class Metasploit3 < Msf::Auxiliary
name: 'rsync',
info: info
)
vprint_good("#{peer} - rsync MOTD: #{motd}") if motd
vprint_good("#{peer} - rsync MOTD: #{motd}") if motd && datastore['SHOW_MOTD']
modules_metadata = rsync_list
disconnect