首页 > 其他 > 详细

阿里云备案相关

时间:2020-04-28 12:17:19      阅读:51      评论:0      收藏:0      [点我收藏+]

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段扫描
原文链接

阿里云备案相关

原文:https://www.cnblogs.com/lijiext/p/12793198.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!