-1
如果我使用下面的代碼從URL獲取IP地址,如何從該IP地址獲取Nmap掃描? 進口插座如何在Windows上使用python獲取Nmap和Whois
def get_ips_for_host(url):
try:
ips = socket.gethostbyname_ex(url)
except socket.gaierror:
ips = []
return ips
ips = get_ips_for_host('www.facebook.com')
print(repr(ips))