Add -q option to msfd to disable banner

This commit is contained in:
William Vu
2015-10-07 01:50:36 -05:00
parent ddea0ea708
commit 77fae28cd4
4 changed files with 7 additions and 3 deletions
+3
View File
@@ -34,6 +34,7 @@ arguments = Rex::Parser::Arguments.new(
"-f" => [ false, "Run the daemon in the foreground" ],
"-A" => [ true, "Specify list of hosts allowed to connect" ],
"-D" => [ true, "Specify list of hosts not allowed to connect" ],
"-q" => [ false, "Do not print the banner on startup" ],
"-h" => [ false, "Help banner" ])
opts = { 'RunInForeground' => true }
@@ -68,6 +69,8 @@ arguments.parse(ARGV) { |opt, idx, val|
$stderr.puts "Bad argument for -D: #{$!}"
exit
end
when "-q"
opts['DisableBanner'] = true
when "-h"
print(
"\nUsage: #{File.basename(__FILE__)} <options>\n" +