Proof-of-Concept exploit for CVE-2017-7494(Samba RCE from a writable share)
Python C Shell
Switch branches/tags
Nothing to show
Clone or download
Latest commit ccc154c Jul 26, 2017
Failed to load latest commit information.
payload added for libpoc May 25, 2017 Update Jul 26, 2017 first commit May 25, 2017
requirements.txt first commit May 25, 2017
screenshot.png first commit May 25, 2017

Basic Setup

Install Samba version 4.5.9

Get patched version of Impacket

pip install -r requirements.txt


  1. Start Samba server in interactive mode + debug print

sudo /home/ubuntu/samba-4.5.9/bin/smbd -i --debuglevel=10 --configfile=/etc/samba/smb.conf

  1. Copy to target share
  2. HAVE FUN! -t x.x.x.x -m /path/to/