From 3803437760aa06da5e8d1d6f734165b897789eae Mon Sep 17 00:00:00 2001 From: chunzhi Date: Sat, 13 Jan 2024 16:45:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20run.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- run.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 run.sh diff --git a/run.sh b/run.sh new file mode 100644 index 0000000..4071fc5 --- /dev/null +++ b/run.sh @@ -0,0 +1,20 @@ +#!/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