Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. import requests
  2. subdomain = requests.get("https://api.hackertarget.com/hostsearch/?q=worldlink.com.np")
  3. subout = subdomain.text
  4. hostAndIpArray = subout.split("\n")
  5. host = []
  6. ip = []
  7. for hostAndIp in hostAndIpArray:
  8. hostAndIpItem = hostAndIp.split(",")
  9. if len(hostAndIpItem) == 2:
  10. host.append(hostAndIpItem[0])
  11. ip.append(hostAndIp[1])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement