Sploitus

Exploit for CVE-2024-53704

kitploit · 2026-09-05

Exploit Code

MARKDOWN111 lines
## https://sploitus.com/exploit?id=KITPLOIT:TOOLS-GITHUB-ISTAGMBH-CVE-2024-53704
# nxbender

**nxbender** 是一个概念验证(PoC),用于通过 NetExtender 建立 VPN 连接。  
本项目仅供教育和研究目的。请仅在您获得明确授权的环境中使用此代码。

## 前提条件

  * **Python 3.6+** (推荐:Python 3.8 或更高版本)
  * **pip** (Python 包管理器)
  * 依赖项: 
    * configargparse
    * requests
    * colorlog
    * pyroute2



例如,使用以下命令安装所需包:

root@kitploit:~
    
    
    pip install configargparse requests colorlog pyroute2
    

## 配置

_nxbender_ 使用 `configargparse` 从命令行参数和配置文件中加载设置。  
默认会在 `/etc/nxbender` 和 `~/.nxbender` 中查找配置文件。

配置文件示例(例如 `~/.nxbender`):

root@kitploit:~
    
    
    # ~/.nxbender
    server = vpn.example.com
    port = 4433
    swap = <dein_swap_cookie>
    debug = True
    show_ppp_log = False
    max_line = 1500
    

## 运行

您可以直接通过 Python 启动该程序。有两种方式:

### 1\. 通过模块调用运行

root@kitploit:~
    
    
    python -m nxbender
    

### 2\. 直接运行脚本

进入包含 `nxbender` 文件夹的目录,并执行以下命令:

root@kitploit:~
    
    
    ./nxbender/__init__.py -s vpn.example.com -S "<dein_swap_cookie>"
    

**示例:**

root@kitploit:~
    
    
    ./nxbender/__init__.py -s vpn.example.com -P 4433 -S "SGVsbG9Xb3JsZA=="
    

其中:

  * `-s` 或 `--server`:VPN 服务器地址。
  * `-P` 或 `--port`:服务器端口(默认:4433)。
  * `-S` 或 `--swap`:交换 Cookie(Base64 编码的字符串)。
  * `--debug`:启用调试模式。
  * `--show-ppp-log`:在控制台中直接显示 PPP 日志消息。
  * `-m` 或 `--max-line`:单行 PPP 数据的最大长度。



## 重要提示

  * **安全性:**  
本项目仅为 PoC,在生产环境中使用风险自负。请确保采取所有安全措施。

  * **Root 权限:**  
某些操作(例如设置网络路由)需要 root 权限。必要时请使用 `sudo` 运行程序。

  * **调试:**  
使用 `--debug` 标志可以获取更详细的错误信息和日志输出。

  * **PPP 日志:**  
使用 `--show-ppp-log` 可以在控制台中显示 pppd 的日志消息。




## 许可证

本项目基于 MIT 许可证提供。

## 免责声明

本项目仅供教育和研究目的。  
作者不对因使用此代码而产生的直接或间接损害承担任何责任。