Path: blob/master/modules/network/identify_lan_subnets/module.rb
1873 views
#1# Copyright (c) 2006-2026 Wade Alcorn - [email protected]2# Browser Exploitation Framework (BeEF) - https://beefproject.com3# See the file 'doc/COPYING' for copying permission4#5##6# Ported to BeEF from: http://browserhacker.com/code/Ch10/index.html7##89class Identify_lan_subnets < BeEF::Core::Command10def self.options11[12{ 'name' => 'timeout', 'ui_label' => 'Timeout for each request (ms)', 'value' => '500' }13]14end1516def post_execute17content = {}18content['host'] = @datastore['host'] unless @datastore['host'].nil?19content['hosts'] = @datastore['hosts'] unless @datastore['hosts'].nil?20content['fail'] = 'No active hosts have been discovered.' if content.empty?21save content22end23end242526