Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
shodscript — 针对Shodan搜索结果的漏洞利用/PoC自动执行 - 并发调度、过滤、结构化输出和导出。 | Kitploit
工具/GitHubGitHub/momenbasel/shodscript
侦察漏洞扫描器漏洞利用信息收集渗透测试
GitHubmomenbasel/shodscript

shodscript

针对Shodan搜索结果的漏洞利用/PoC自动执行 - 并发调度、过滤、结构化输出和导出。

查看仓库
125个月前尚未审核

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

ShodScript

自动化针对Shodan搜索结果的漏洞利用和PoC执行。查询Shodan,过滤目标,并对每个匹配项运行你的脚本——并发执行,具有结构化输出和导出功能。

为什么

你有一个PoC脚本,它接受一个IP和端口。你想针对匹配Shodan查询的每个主机运行它。ShodScript填补了这一空白:搜索、过滤、分发、收集结果。

安装

root@kitploit:~
pip install git+https://github.com/momenbasel/shodscript.git

或者克隆并本地安装:

root@kitploit:~
git clone https://github.com/momenbasel/shodscript.git
cd shodscript
pip install -e .

设置

设置你的Shodan API密钥:

root@kitploit:~
export SHODAN_API_KEY="your-api-key-here"

或者在每个命令中使用--api-key / -k传递。

用法

搜索Shodan

root@kitploit:~
# 表格输出
shodscript search "apache 2.4.49"

# 按端口和国家过滤
shodscript search "nginx" --port 443 --country US --limit 50

# JSON输出
shodscript search "apache" --json

对结果运行脚本

root@kitploit:~
# 对每个匹配"apache 2.4.49"的主机运行check_http.py
shodscript run "apache 2.4.49" ./exploit.py

# 20个并发工作线程,每个目标60秒超时
shodscript run "apache 2.4.49" ./exploit.py -w 20 -t 60

# 过滤为德国端口80,保存结果
shodscript run "apache" ./exploit.py --port 80 --country DE -o results.json

# CSV导出
shodscript run "nginx" ./check.py -o results.csv --format csv

# 仅显示成功命中
shodscript run "apache" ./exploit.py --quiet

目标如何传递给你的脚本

通过--pass-via有三种模式:

模式
root@kitploit:~
# 通过环境变量传递
shodscript run "nginx" ./script.py --pass-via env

# 通过stdin传递
shodscript run "nginx" ./script.py --pass-via stdin

# 向脚本传递额外参数
shodscript run "nginx" ./script.py -e "--verbose" -e "--ssl"

导出IP(适合管道)

root@kitploit:~
# 每行一个IP - 管道到其他工具
shodscript ips "apache 2.4.49" | xargs -I{} curl -s http://{}

# 包含端口
shodscript ips "apache 2.4.49" --with-port

# 管道到nuclei、httpx等
shodscript ips "apache 2.4.49" -n 500 | httpx -silent

主机查询

root@kitploit:~
shodscript host 1.2.3.4
shodscript host 1.2.3.4 --json

账户信息

root@kitploit:~
shodscript info

编写兼容脚本

你的脚本只需要接受一个IP和端口。最小示例:

root@kitploit:~
#!/usr/bin/env python3
import sys

ip = sys.argv[1]
port = int(sys.argv[2])

# 在此处编写你的漏洞利用/检查逻辑
print(f"[+] {ip}:{port} - vulnerable")
# 退出码0 = 成功(标记为绿色),非零 = 失败(标记为红色)

有关更多模式,包括基于环境变量的和横幅抓取脚本,请参阅examples/目录。

导出格式

结果可以保存为JSON、JSONL或CSV:

root@kitploit:~
shodscript run "query" ./script.py -o results.json            # JSON(默认)
shodscript run "query" ./script.py -o results.jsonl --format jsonl  # 每行一个JSON对象
shodscript run "query" ./script.py -o results.csv --format csv     # CSV

每个记录包含:ip、port、host、org、country、returncode、success、stdout、stderr、elapsed、error。

许可证

MIT

免责声明

仅用于授权的安全测试和研究。

下载工具
你的脚本如何接收目标
arg (默认)python3 script.py <ip> <port>
envTARGET_IP、TARGET_PORT、TARGET_HOST环境变量
stdin写入stdin的ip:port\n