• Stars
    star
    178
  • Rank 214,989 (Top 5 %)
  • Language
    Python
  • Created over 7 years ago
  • Updated over 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Proof-of-Concept exploit for CVE-2017-7494(Samba RCE from a writable share)

Basic Setup

Install Samba version 4.5.9

Get patched version of Impacket

pip install -r requirements.txt

Usage

  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 libpoc.so to target share
  2. HAVE FUN!

exploit.py -t x.x.x.x -m /path/to/libpoc.so

Notes

Screenshot