Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.
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