Path: blob/master/modules/host/physical_location_thirdparty/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 Physical_location_thirdparty < BeEF::Core::Command6def self.options7[{8'name' => 'api_url',9'type' => 'combobox',10'ui_label' => 'API',11'store_type' => 'arraystore',12'store_fields' => ['api_url'],13'store_data' =>14[15%w[http://ip-api.com/json],16%w[https://ip.nf/me.json],17%w[https://ipapi.co/json],18%w[https://geoip.tools/v1/json],19%w[https://geoip.nekudo.com/api/],20%w[https://extreme-ip-lookup.com/json/],21%w[http://www.geoplugin.net/json.gp],22%w[https://ipinfo.io/json]23],24'emptyText' => 'Select an API',25'valueField' => 'api_url',26'displayField' => 'api_url',27'mode' => 'local',28'forceSelection' => 'false',29'autoWidth' => true30}]31end3233def post_execute34save({ 'result' => @datastore['result'] })35end36end373839