POC详情: 022ad86ac6ac8844cac97d7b9a8ce175ef7386cf

来源
关联漏洞
标题: OpenPLC 代码注入漏洞 (CVE-2021-31630)
描述:OpenPLC是一种开源的可编程逻辑控制器。可为自动化和研究提供低成本的工业解决方案。 OpenPLC v3 存在代码注入漏洞,该漏洞源于产品的web服务中 /hardware 页面的Hardware Layer Code Box组件未能过滤输入的特殊字符。攻击者可通过该漏洞执行系统命令。
描述
proof of Concept (PoC) exploit for CVE-2021-31630, targeting the OpenPLC service running on the WifineticTwo box on the Hack The Box platform.
介绍
## CVE-2021-31630 Exploit
CVE-2021-31630 Exploit PoC for OpenPLC on WifineticTwo box (Hack The Box),
This script serves as a Proof of Concept (PoC) exploit for CVE-2021-31630, targeting the OpenPLC service running on the WifineticTwo box on the Hack The Box platform. 

## Usage

```bash
python exploit.py -ip <IP_ADDRESS_FOR_LISTEN> -p <PORT_FOR_LISTEN> -u <USERNAME> -pwd <PASSWORD>
```
```bash
python ./exploit.py -ip 10.10.16.5 -p 1337 -u openplc -pwd openplc
```

### Arguments

- `-ip`  <IP_ADDRESS>: Specifies the IP address to listen on.
- `-p`   <PORT>: Specifies the port to listen on.
- `-u`   <USERNAME>: Specifies the username for OpenPLC login.
- `-pwd` <PASSWORD>: Specifies the password for OpenPLC login.

## Description

This script exploits the CVE-2021-31630 vulnerability in OpenPLC, allowing remote code execution on the WifineticTwo box. It establishes a connection to the target IP and port, authenticates with the provided username and password, and uploads a malicious payload to execute arbitrary code.

## Author

Created by [z1ntrx](@Hunt3r0x)

## Disclaimer

This script is intended for educational and testing purposes only. Use it responsibly and only on systems you have explicit permission to test.
文件快照

[4.0K] /data/pocs/022ad86ac6ac8844cac97d7b9a8ce175ef7386cf ├── [4.5K] exploit.py └── [1.2K] README.md 0 directories, 2 files
神龙机器人已为您缓存
备注
    1. 建议优先通过来源进行访问。
    2. 如果因为来源失效或无法访问,请发送邮箱到 f.jinxu#gmail.com 索取本地快照(把 # 换成 @)。
    3. 神龙已为您对POC代码进行快照,为了长期维护,请考虑为本地POC付费,感谢您的支持。