Remove Identify LAN Subnets from Network extension
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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"]
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user