New flag options are not clearly communicated.
Wiki: https://github.com/beefproject/beef/wiki/Configuration
and -- help menu when running ./beef --help
|
def self.parse |
|
return @options if @already_parsed |
|
|
|
begin |
|
optparse = OptionParser.new do |opts| |
|
opts.on('-x', '--reset', 'Reset the database') do |
|
@options[:resetdb] = true |
|
end |
|
|
|
opts.on('-v', '--verbose', 'Display debug information') do |
|
@options[:verbose] = true |
|
end |
|
|
|
opts.on('-a', '--ascii_art', 'Prints BeEF ascii art') do |
|
@options[:ascii_art] = true |
|
end |
|
|
|
opts.on('-c', '--config FILE', "Load a different configuration file: if it's called custom-config.yaml, git automatically ignores it.") do |f| |
|
@options[:ext_config] = f |
|
end |
|
|
|
opts.on('-p', '--port PORT', 'Change the default BeEF listening port') do |p| |
|
@options[:port] = p |
|
end |
|
|
|
opts.on('-w', '--wsport WS_PORT', 'Change the default BeEF WebSocket listening port') do |ws_port| |
|
@options[:ws_port] = ws_port |
|
end |
|
|
|
opts.on('-ud', '--update_disabled', 'Skips update') do |
|
@options[:update_disabled] = true |
|
end |
|
|
|
opts.on('-ua', '--update_auto', 'Automatic update with no prompt') do |
|
@options[:update_auto] = true |
|
end |
|
|
New flag options are not clearly communicated.
Wiki: https://github.com/beefproject/beef/wiki/Configuration
and -- help menu when running
./beef --helpbeef/core/main/console/commandline.rb
Lines 31 to 67 in 1ae320c