Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Geolocation Information
* Country Code
* ISP
* Latitude
* Longtitude
* Longitude
* Organization
* Region Code
* Region Name
Expand Down
4 changes: 2 additions & 2 deletions core/FileExporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def __ExportToTXT(self, ipGeoLocObjs, filename):
txtfile.write('Country Code: {}\n'.format(ipGeoLocObj.CountryCode))
txtfile.write('ISP: {}\n'.format(ipGeoLocObj.ISP))
txtfile.write('Latitude: {}\n'.format(ipGeoLocObj.Latitude))
txtfile.write('Longtitude: {}\n'.format(ipGeoLocObj.Longtitude))
txtfile.write('Longitude: {}\n'.format(ipGeoLocObj.Longitude))
txtfile.write('Organization: {}\n'.format(ipGeoLocObj.Organization))
txtfile.write('Region: {}\n'.format(ipGeoLocObj.Region))
txtfile.write('Region Name: {}\n'.format(ipGeoLocObj.RegionName))
Expand Down Expand Up @@ -115,7 +115,7 @@ def __ExportToCSV(self, ipGeoLocObjs, filename):
writer.writerow(['Country Code', ipGeoLocObj.CountryCode])
writer.writerow(['ISP', ipGeoLocObj.ISP])
writer.writerow(['Latitude', ipGeoLocObj.Latitude])
writer.writerow(['Longtitude', ipGeoLocObj.Longtitude])
writer.writerow(['Longitude', ipGeoLocObj.Longitude])
writer.writerow(['Organization', ipGeoLocObj.Organization])
writer.writerow(['Region', ipGeoLocObj.Region])
writer.writerow(['Region Name', ipGeoLocObj.RegionName])
Expand Down
10 changes: 5 additions & 5 deletions core/IpGeoLocation.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def __init__(self, query, jsonData = None):
self.CountryCode = '-'
self.ISP = '-'
self.Latitude = 0.0
self.Longtitude = 0.0
self.Longitude = 0.0
self.Organization = '-'
self.IP = '0.0.0.0'
self.Region = '-'
Expand Down Expand Up @@ -70,7 +70,7 @@ def __init__(self, query, jsonData = None):
self.Latitude = jsonData['lat']

if 'lon' in jsonData:
self.Longtitude = jsonData['lon']
self.Longitude = jsonData['lon']

if 'org' in jsonData:
self.Organization = jsonData['org']
Expand All @@ -93,15 +93,15 @@ def __init__(self, query, jsonData = None):
if 'zip' in jsonData:
self.Zip = jsonData['zip']

if type(self.Latitude) == float and type(self.Longtitude) == float:
self.GoogleMapsLink = 'http://www.google.com/maps/place/{0},{1}/@{0},{1},16z'.format(self.Latitude, self.Longtitude)
if type(self.Latitude) == float and type(self.Longitude) == float:
self.GoogleMapsLink = 'http://www.google.com/maps/place/{0},{1}/@{0},{1},16z'.format(self.Latitude, self.Longitude)


def ToDict(self):
#self.__dict__.
return {'Target':self.Query, 'IP':self.IP, 'ASN':self.ASN, 'City':self.City,
'Country':self.Country, 'Country Code':self.CountryCode, 'ISP':self.ISP,
'Latitude':str(self.Latitude), 'Longtitude':str(self.Longtitude),
'Latitude':str(self.Latitude), 'Longitude':str(self.Longitude),
'Organization':self.Organization, 'Region':self.Region,
'Region Name':self.RegionName, 'Timezone':self.Timezone,
'Zip':self.Zip, 'Google Maps':self.GoogleMapsLink
Expand Down
2 changes: 1 addition & 1 deletion core/Logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def PrintIPGeoLocation(self, ipGeoLocation):
self.PrintResult('Country Code', ipGeoLocation.CountryCode)
self.PrintResult('ISP', ipGeoLocation.ISP)
self.PrintResult('Latitude', str(ipGeoLocation.Latitude))
self.PrintResult('Longtitude', str(ipGeoLocation.Longtitude))
self.PrintResult('Longitude', str(ipGeoLocation.Longitude))
self.PrintResult('Organization', ipGeoLocation.Organization)
self.PrintResult('Region Code', ipGeoLocation.Region)
self.PrintResult('Region Name', ipGeoLocation.RegionName)
Expand Down
2 changes: 1 addition & 1 deletion core/Utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def __init__(self, nolog=False, verbose=False):

def openLocationInGoogleMaps(self, ipGeolObj):
"""Open IP Geolocation in Google Maps with default browser"""
if type(ipGeolObj.Longtitude) == float and type(ipGeolObj.Latitude) == float:
if type(ipGeolObj.Longitude) == float and type(ipGeolObj.Latitude) == float:
self.Logger.Print('Opening Geolocation in browser..')

if _platform == 'cygwin':
Expand Down