diff --git a/extensions/admin_ui/media/javascript/ui/panel/tabs/ZombieTabNetwork.js b/extensions/admin_ui/media/javascript/ui/panel/tabs/ZombieTabNetwork.js index 27910003a..bbd1179d7 100644 --- a/extensions/admin_ui/media/javascript/ui/panel/tabs/ZombieTabNetwork.js +++ b/extensions/admin_ui/media/javascript/ui/panel/tabs/ZombieTabNetwork.js @@ -231,28 +231,6 @@ ZombieTab_Network = function(zombie) { }); } },{ - text: 'Identify LAN Subnets', - iconCls: 'network-host-ctxMenu-network', - handler: function() { - var mod_id = get_module_id("identify_lan_subnets"); - commands_statusbar.update_sending('Identifying zombie LAN subnets ...'); - $jwterm.ajax({ - contentType: 'application/json', - data: JSON.stringify({}), - dataType: 'json', - type: 'POST', - url: "/api/modules/" + zombie.session + "/" + mod_id + "?token=" + token, - async: false, - processData: false, - success: function(data){ - commands_statusbar.update_sent("Command [id: " + data.command_id + "] sent successfully"); - }, - error: function(){ - commands_statusbar.update_fail('Error sending command'); - } - }); - } - },{ text: 'Discover Proxies', iconCls: 'network-host-ctxMenu-proxy', handler: function() { diff --git a/modules/network/identify_lan_subnets/config.yaml b/modules/network/identify_lan_subnets/config.yaml index 859adabd1..5c15611bd 100644 --- a/modules/network/identify_lan_subnets/config.yaml +++ b/modules/network/identify_lan_subnets/config.yaml @@ -12,5 +12,5 @@ beef: description: "Discover active hosts in the internal network(s) of the hooked browser. This module works by attempting to connect to commonly used LAN IP addresses and timing the response." authors: ["browserhacker.com"] target: - working: ["FF", "C"] + user_notify: ["FF", "C"] not_working: ["IE", "S", "O"] diff --git a/modules/network/identify_lan_subnets/module.rb b/modules/network/identify_lan_subnets/module.rb index 27346b09f..7003994df 100644 --- a/modules/network/identify_lan_subnets/module.rb +++ b/modules/network/identify_lan_subnets/module.rb @@ -23,25 +23,6 @@ class Identify_lan_subnets < BeEF::Core::Command content['fail'] = 'No active hosts have been discovered.' end save content - - configuration = BeEF::Core::Configuration.instance - if configuration.get("beef.extension.network.enable") == true - - session_id = @datastore['beefhook'] - - # log the network hosts - if @datastore['results'] =~ /^hosts=([\d\.,]+)/ - hosts = "#{$1}" - hosts.split(',').flatten.each do |ip| - next if ip.nil? - next unless ip.to_s =~ /^([\d\.]+)$/ - next unless BeEF::Filters.is_valid_ip?(ip) - print_debug("Hooked browser found host #{ip}") - BeEF::Core::Models::NetworkHost.add(:hooked_browser_id => session_id, :ip => ip) - end - end - end - end end