[COLOR=blue]var[/COLOR] loc = [COLOR=blue]null[/COLOR];[INDENT][COLOR=blue]function[/COLOR] getLoc() { [/INDENT] [INDENT=2] [COLOR=blue]if[/COLOR] (loc == [COLOR=blue]null[/COLOR]) { loc = [COLOR=blue]new[/COLOR] Windows.Devices.Geolocation.Geolocator(); } [COLOR=blue]if[/COLOR] (loc != [COLOR=blue]null[/COLOR]) { loc.getGeopositionAsync().then(getPositionHandler, errorHandler); } [/INDENT] [INDENT]} [/INDENT] [INDENT=2] [COLOR=blue]function[/COLOR] getPositionHandler(pos) [/INDENT] [INDENT=3]{ document.getElementById([COLOR=#A31515]'latitude'[/COLOR]).innerHTML = pos.coordinate.point.position.latitude; document.getElementById([COLOR=#A31515]'longitude'[/COLOR]).innerHTML = pos.coordinate.point.position.longitude; document.getElementById([COLOR=#A31515]'accuracy'[/COLOR]).innerHTML = pos.coordinate.accuracy; document.getElementById([COLOR=#A31515]'geolocatorStatus'[/COLOR]).innerHTML = getStatusString(loc.locationStatus); }[/INDENT]
philz1982 wrote: » Some folks will put files in a honeypot or a live directory with geolocation code embedded in the file. That's one reason why folks don't shut down hacks instantly. You put the file on the drive being hacked, and the geolocation code will tell you where the hacker is at. Then once you have location you setup a reverse connection and send the location to the listener.You could use an HTTP Socket to send the information, if you wanted to you could encrypt and send over HTTPS.
Dieg0M wrote: » So what you are saying is that you have to hack the hacker to get his identity?