ipprobe/run.sh
2024-01-13 16:45:26 +08:00

21 lines
454 B
Bash
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
# 克隆git仓库
git clone https://git.18g.me/feiwujia/iplist
# 进入iplist目录
cd iplist
# 创建result文件夹
mkdir -p result
# 遍历iplist目录中的所有txt文件
for file in *.txt
do
# 对每个txt文件执行scan_linux_amd64命令输出结果到result文件夹中的csv文件
./scan_linux_amd64 -c 2000 -t 5 -o result/result_${file%.txt}.csv $file
done
# 调用probe.sh脚本对结果进行筛选
bash probe.sh