Banner details updated

git-svn-id: https://beef.googlecode.com/svn/trunk@996 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
wade@bindshell.net
2011-06-13 09:38:00 +00:00
parent 94bb46eb48
commit 3948ff432e
2 changed files with 5 additions and 8 deletions

5
beef
View File

@@ -30,9 +30,6 @@ case config.get("beef.database.default")
print_error 'No default database selected. Please add one in config.yaml'
end
BeEF::Extension::Console::Banners.print_network_interfaces_count
if BeEF::Extension::Console.resetdb?
print_info 'Resetting the database for BeEF.'
DataMapper.auto_migrate!
@@ -53,8 +50,10 @@ http_hook_server.prepare
# prints information back to the user before running the server
BeEF::Extension::Console::Banners.print_loaded_extensions
BeEF::Extension::Console::Banners.print_loaded_modules
BeEF::Extension::Console::Banners.print_network_interfaces_count
BeEF::Extension::Console::Banners.print_network_interfaces_routes
# We dynamically get the list of all browser hook handler using the API and register them

View File

@@ -12,8 +12,7 @@ module Banners
def print_welcome_msg
config = BeEF::Core::Configuration.instance
version = config.get('beef.version')
print_info " -=[ BeEF v#{version} ]=-"
print_info "Ensure you're running the latest framework version. Run 'svn update' to update."
print_info "Version: #{version} - Run 'svn update' to update to the latest version."
end
#
@@ -50,12 +49,12 @@ module Banners
# [14:06:48][+] running on network interface: 192.168.255.1
# [14:06:48] | Hook URL: http://192.168.255.1:3000/hook.js
# [14:06:48] | UI URL: http://192.168.255.1:3000/ui/panel
# [14:06:48] |_ Demo URL: http://192.168.255.1:3000/demos/basic.html
# [14:06:48][+] running on network interface: 127.0.0.1
# [14:06:48] | Hook URL: http://127.0.0.1:3000/hook.js
# [14:06:48] | UI URL: http://127.0.0.1:3000/ui/panel
# [14:06:48] |_ Demo URL: http://127.0.0.1:3000/demos/basic.html
#
def print_network_interfaces_routes
configuration = BeEF::Core::Configuration.instance
@@ -63,7 +62,6 @@ module Banners
print_success "running on network interface: #{host}"
data = "Hook URL: http://#{host}:#{configuration.get("beef.http.port")}#{configuration.get("beef.http.hook_file")}\n"
data += "UI URL: http://#{host}:#{configuration.get("beef.http.port")}#{configuration.get("beef.http.panel_path")}\n"
data += "Demo URL: http://#{host}:#{configuration.get("beef.http.port")}#{configuration.get("beef.http.demo_path")}"
print_more data
end