ToKeiChun

Grab Site From IP by:hackertarget.com

Mar 22nd, 2019
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. #!/usr/bin/python
  2. import requests, sys
  3. import time
  4.  
  5. def grab():
  6. Files = open(sys.argv[1])
  7. for i in Files.readlines():
  8. site = i.strip()
  9. try:
  10. site = site.strip()
  11. ch = requests.get('http://api.hackertarget.com/reverseiplookup/?q='+site)
  12. if '.' in ch.content:
  13. print ch.content
  14. open('sites.txt', 'a').write(ch.content)
  15. time.sleep(5)
  16.  
  17. else:
  18. print "[!] => "+site+' Not Work '
  19. except:
  20. pass
  21. grab()
Add Comment
Please, Sign In to add comment