Path: blob/master/modules/network/fetch_port_scanner/module.rb
1154 views
#1# Copyright (c) 2006-2025 Wade Alcorn - [email protected]2# Browser Exploitation Framework (BeEF) - https://beefproject.com3# See the file 'doc/COPYING' for copying permission4#5class Fetch_port_scanner < BeEF::Core::Command6# set and return all options for this module7def self.options8[9{ 'name' => 'ipHost', 'ui_label' => 'Scan IP or Hostname', 'value' => '127.0.0.1' },10{ 'name' => 'ports', 'ui_label' => 'Specific port(s) to scan', 'value' => 'top' }11]12end1314def post_execute15content = {}16content['result'] = @datastore['result']17save content1819configuration = BeEF::Core::Configuration.instance20return unless configuration.get('beef.extension.network.enable') == true2122session_id = @datastore['beefhook']2324# @todo log the network service25# will need to once the datastore is confirmed.26# This should basically try and hook the browser27end28end293031