Files
beef/modules/network/identify_lan_subnets/module.rb
jcrew99 486a9bb329 Update copyright 2023 (#2675)
* updated copyright

* reverted gemfile lock changes
2022-12-31 15:36:07 +10:00

25 lines
728 B
Ruby

#
# Copyright (c) 2006-2023 Wade Alcorn - wade@bindshell.net
# Browser Exploitation Framework (BeEF) - http://beefproject.com
# See the file 'doc/COPYING' for copying permission
#
##
# Ported to BeEF from: http://browserhacker.com/code/Ch10/index.html
##
class Identify_lan_subnets < BeEF::Core::Command
def self.options
[
{ 'name' => 'timeout', 'ui_label' => 'Timeout for each request (ms)', 'value' => '500' }
]
end
def post_execute
content = {}
content['host'] = @datastore['host'] unless @datastore['host'].nil?
content['hosts'] = @datastore['hosts'] unless @datastore['hosts'].nil?
content['fail'] = 'No active hosts have been discovered.' if content.empty?
save content
end
end