本文及资源最后更新时间 2021-05-04 by sky995
为什么有的MJJ套CF速度上天,有的拉跨,这就跟线路有关了。
具体可参考这位大佬的文章:https://luotianyi.vc/3258.html
扫描时间:2020-07-20,扫描结果具有时效性与地域性,请注意观察traceroute。
机场名称代码查询:https://airport.supfree.net/
测试IP列表,从fping-msys2.0提取
内容过长,请转到:https://paste.ubuntu.com/p/g5SZJkfwmd/
扫描结果:
广西-移动:结果过长,请转到:https://paste.ubuntu.com/p/83mb3JyK4V/
广东深圳电信:结果过长,请转到:https://paste.ubuntu.com/p/FMD8CyW33G/
广西联通:结果过长,请转到:https://paste.ubuntu.com/p/r3dKv99m5M/
语言:python3
需装requests库,并把上文提到的ip列表放到同目录下的cloudflare_ip.txt文件中
import requests, threading, queue
IPQueue = queue.Queue()
_WORKER_THREAD_NUM = 3
class Workers(threading.Thread):
def run(self):
while not IPQueue.empty():
ip = IPQueue.get()
try:
rsp = requests.head('http://' + ip, timeout=2).headers
print(ip, rsp['CF-RAY'])
except:
pass
def main():
global IPQueue
with open('cloudflare_ip.txt', 'r') as f:
for ip in f.read().splitlines():
IPQueue.put(ip)
threads = []
for i in range(_WORKER_THREAD_NUM) :
thread = Workers()
thread.start()
threads.append(thread)
for thread in threads :
thread.join()
if __name__ == '__main__':
main()