Added -i --interactive option at commandline to launch console shell

This commit is contained in:
Christian Frichot
2014-04-27 07:12:53 +08:00
parent 34ec20cd0d
commit fe14601dfc
2 changed files with 10 additions and 0 deletions

View File

@@ -18,6 +18,7 @@ module BeEF
@options[:ext_config] = ""
@options[:port] = ""
@options[:ws_port] = ""
@options[:interactive] = false
@already_parsed = false
@@ -54,6 +55,10 @@ module BeEF
opts.on('-w', '--wsport WS_PORT', 'Change the default BeEF WebSocket listening port') do |ws_port|
@options[:ws_port] = ws_port
end
opts.on('-i', '--interactive', 'Starts with the Console Shell activated') do
@options[:interactive] = true
end
end
optparse.parse!