Skip to content

Commit

Permalink
Updated for new api restrictions
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisTruncer committed Jan 4, 2016
1 parent 1aa707a commit d82d25e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/intelgathering/geoinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,10 @@ def gather(self, all_ips):
if decoded_json['org'].encode('utf-8') is not '':
incoming_ip_obj[0].ip_organization = decoded_json['org'].encode('utf-8')

# Sleep is here to make sure we don't go over API limits
time.sleep(.25)
except urllib2.URLError:
print helpers.color("[!] Cannot receive IP Geo Information from source!", warning=True)
print helpers.color("[!] Moving to the next IP address...", warning=True)

# Sleep is here to make sure we don't go over API limits
time.sleep(.5)
return

0 comments on commit d82d25e

Please sign in to comment.