Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions beef
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ $root_dir = File.join(File.expand_path(File.dirname(File.realpath(__FILE__))), '
$:.unshift($root_dir)
$home_dir = File.expand_path("#{Dir.home}/.beef/", __FILE__).freeze

# @note Parse BeEF CLI options early (prevents Rack help from taking over)
require 'core/main/console/commandline'
BeEF::Core::Console::CommandLine.parse

#
# @note Require core loader
#
Expand Down
13 changes: 10 additions & 3 deletions core/main/console/commandline.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# Browser Exploitation Framework (BeEF) - https://beefproject.com
# See the file 'doc/COPYING' for copying permission
#
require 'optparse'

module BeEF
module Core
module Console
Expand Down Expand Up @@ -38,7 +40,7 @@ def self.parse
@options[:verbose] = true
end

opts.on('-a', '--ascii_art', 'Prints BeEF ascii art') do
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've noticed there still --ascii_art in the documentation: https://github.com/beefproject/beef/wiki/Configuration#launching-beef

Could you please update the document? Thanks

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for confusion, but '--ascii_art' command is still there. It's in line 43.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's now '--ascii-art', with the dash in the middle, not underscore 😎

Copy link
Collaborator Author

@kaitozaw kaitozaw Dec 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

opts.on('-a', '--ascii-art', 'Prints BeEF ascii art') do
@options[:ascii_art] = true
end

Expand All @@ -54,14 +56,19 @@ def self.parse
@options[:ws_port] = ws_port
end

opts.on('-ud', '--update_disabled', 'Skips update') do
opts.on('-d', '--update-disabled', 'Skips update') do
@options[:update_disabled] = true
end

opts.on('-ua', '--update_auto', 'Automatic update with no prompt') do
opts.on('-u', '--update-auto', 'Automatic update with no prompt') do
@options[:update_auto] = true
end

opts.on('-h', '--help', 'Show this help') do
puts opts
exit 0
end

end

optparse.parse!
Expand Down
Loading