阿里云备案相关

aliyun备案相关

扫描代码

#ip段 https://bgp.he.net/
import requests
import threading
def get_title(ip):
	try:
		res = requests.get("http://"+ip,timeout=3)
		if res.status_code == 200:
			html = res.content.decode("utf-8")
			title = html.split("<title>")[1].split("</title>")[0].strip()
		else:
			pass
		title = f"{ip} {title[0:20]}"
	except:
		title = None
	if (title):
		print(title)
for m in range(0,10):
	for i in range(0,255):
		ip = f"39.104.{m}.{i}"
		t=threading.Thread(target=get_title,args=(ip,))
		t.start()

ip段扫描
原文链接

猜你喜欢

转载自www.cnblogs.com/lijiext/p/12793198.html