SHARE
TWEET

Grab Site From IP by:hackertarget.com

ToKeiChun Mar 22nd, 2019 (edited) 21 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top