From 2715e0400cf72bbd183d79815f4a51edbb1331c3 Mon Sep 17 00:00:00 2001 From: antisnatchor Date: Wed, 15 Feb 2012 15:05:45 +0100 Subject: [PATCH] added browser type,version and OS to console output when a new browser is hooked in BeEF --- extensions/initialization/handler.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/extensions/initialization/handler.rb b/extensions/initialization/handler.rb index bcd16bf50..c6dd1d66b 100644 --- a/extensions/initialization/handler.rb +++ b/extensions/initialization/handler.rb @@ -81,7 +81,6 @@ module BeEF # add a log entry for the newly hooked browser BeEF::Core::Logger.instance.register('Zombie', "#{zombie.ip} just joined the horde from the domain: #{log_zombie_domain}:#{log_zombie_port.to_s}", "#{zombie.id}") - # get and store browser name browser_name = get_param(@data['results'], 'BrowserName') if BeEF::Filters.is_valid_browsername?(browser_name) @@ -274,6 +273,10 @@ module BeEF self.err_msg "Invalid value for hasPersistentCookies returned from the hook browser's initial connection." end + # log a few info of newly hooked zombie in the console + print_info "New Hooked Browser [ip:#{zombie.ip}, type:#{browser_name}-#{browser_version}, os:#{os_name}], hooked domain [#{log_zombie_domain}:#{log_zombie_port.to_s}]" + + # Call autorun modules autorun = [] BeEF::Core::Configuration.instance.get('beef.module').each { |k, v|