让xray自动化批量扫站--躺着等洞上门
0 x 00: 简介 众所周知 , xray只能设置被动扫描多个站或者主动扫描单个网站 。( 如果有大佬是能设置扫多个站的 , 算我孤陋寡闻了 ) 虽然它很“强大” , 但是也有短板之处 。 我既不想被动扫描 ( 主要是我懒 ) 多个站 , 也不想主动扫描一个站 。 所以就衍生我一个想法 , 主动扫多个站 。 躺着它不香吗 。 0 x 01: 环境 python3 MAC Xray 1.5 破解版 0 x 02: 思路 测试利用 python 函数调用 xray 来爬网站并做扫描 ( 把 xray 放在脚本同一个目录下 ) os.system("./xray webscan --basic-crawler http ://www.xxx.com/ --html-output 1.html") 尝试加入授权网站列表 IP.txt( 记得未授权会被请去喝茶的哟 ) import os #author:Jaky def xray(ip): #exp=(("./xray webscan --basic-crawler {0}/ --html-output {1}.html").format(ip,name)) #os.system(exp) print (("./xray webscan --basic-crawler {0}/ --html-output {1}.html")