Welcome to HBH! If you had an account on hellboundhacker.org you will need to reset your password using the Lost Password system before you will be able to login.

CODE FOR ACCESING PHYSICAL LOCATION - Python Code Bank


CODE FOR ACCESING PHYSICAL LOCATION
ACcESSING pHysicAl lOcAtiOn
                import pygeoip
 gi = pygeoip.GeoIP('/opt/GeoIP/Geo.dat')
 def printRecord(tgt): 
rec = gi.record_by_name(tgt)
 city = rec['city'] 
region = rec['region_name']
 country = rec['country_name']
 long = rec['longitude']
 lat = rec['latitude'] 
print '[*] Target: ' + tgt + ' Geo-located. '
 print '[+] '+str(city)+', '+str(region)+', '+str(country) 
print '[+] Latitude: '+str(lat)+ ', Longitude: '+ str(long) tgt = 'ip adress here' printRecord(tgt)

            
Comments
Sorry but there are no comments to display