diff --git a/README.md b/README.md index 03c7c65..13ea5f1 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ Geolocation Information * Country Code * ISP * Latitude -* Longtitude +* Longitude * Organization * Region Code * Region Name diff --git a/core/FileExporter.py b/core/FileExporter.py index 5a7f431..3631522 100644 --- a/core/FileExporter.py +++ b/core/FileExporter.py @@ -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)) @@ -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]) diff --git a/core/IpGeoLocation.py b/core/IpGeoLocation.py index 1b64b53..1ec2c48 100644 --- a/core/IpGeoLocation.py +++ b/core/IpGeoLocation.py @@ -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 = '-' @@ -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'] @@ -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 diff --git a/core/Logger.py b/core/Logger.py index 574f658..a8e76a7 100644 --- a/core/Logger.py +++ b/core/Logger.py @@ -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) diff --git a/core/Utils.py b/core/Utils.py index 677d0cf..22b73bb 100644 --- a/core/Utils.py +++ b/core/Utils.py @@ -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':