Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests
- subdomain = requests.get("https://api.hackertarget.com/hostsearch/?q=worldlink.com.np")
- subout = subdomain.text
- hostAndIpArray = subout.split("\n")
- host = []
- ip = []
- for hostAndIp in hostAndIpArray:
- hostAndIpItem = hostAndIp.split(",")
- if len(hostAndIpItem) == 2:
- host.append(hostAndIpItem[0])
- ip.append(hostAndIp[1])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement