Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2007-2447 PoC — Samba MS-RPC Shell命令注入漏洞

Source
Associated Vulnerability
Title:Samba MS-RPC Shell命令注入漏洞 (CVE-2007-2447)
Description:Samba是Samba团队开发的一套可使UNIX系列的操作系统与微软Windows操作系统的SMB/CIFS网络协议做连结的自由软件。该软件支持共享打印机、互相传输资料文件等。 Samba在处理用户数据时存在输入验证漏洞,远程攻击者可能利用此漏洞在服务器上执行任意命令。 Samba中负责在SAM数据库更新用户口令的代码未经过滤便将用户输入传输给了/bin/sh。如果在调用smb.conf中定义的外部脚本时,通过对/bin/sh的MS-RPC调用提交了恶意输入的话,就可能允许攻击者以nobody用户的权限执
Description
Samba Reverse Shell
Readme
### Poc exploit(bash script)
[Screencast from 2023-09-14 17-40-22.webm](https://github.com/0xTabun/CVE-2007-2447/assets/144548207/147057e1-75bd-4223-a145-7a29cd1870fa)
### About the exploit
install the package with pip in requirements.txt file<br>

You can get reverse shell with .py file in (Windows and Linux) (in windows, you need to install netcat)<br>

* using for .py:<br>
1.st terminal: nc -lnvp your_port<br>
2.nd terminal: python usermap.py<br>

##### Exploit Title: CVE-2007-2447 | Reverse shell<br>
***Author: Tabun***
File Snapshot

[4.0K] /data/pocs/9d57e64823620b8d3f6f1b4592e866e154496671 ├── [ 530] README.md ├── [ 506] readme.txt ├── [ 15] requirements.txt └── [1.1K] usermap.py 0 directories, 4 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. If the original source is unavailable, please email f.jinxu#gmail.com for a local snapshot (replace # with @).
    3. Shenlong has snapshotted the POC code for you. To support long-term maintenance, please consider donating. Thank you for your support.