Exploit databaseDownload repository ZIP
GH-8fff673aceeb1a21bbeb9fb42c04e820
simonschoeni/cve-2020-7247-poc
Sources for CVE-2020-7247
18 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files8
simonschoeni/cve-2020-7247-pocRevision 6244637708f1
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
setup.sh
Shell · 929 bytessudo apt install build-essential -y
sudo apt install libasr-dev -y
sudo apt install autoconf -y
sudo apt install automake -y
sudo apt install bison -y
sudo apt install libevent-dev -y
sudo apt install libtool -y
sudo apt install linux-headers-$(uname -r) -y
sudo apt install libz-dev -y
sudo apt install libssl-dev -y
#If you want you can fetch it from the original opensmtpd repositories rather than using the provided tar file.
#wget wget https://www.opensmtpd.org/archives/opensmtpd-6.6.1p1.tar.gz
tar xzvf opensmtpd-6.6.1p1.tar.gz
cd opensmtpd-6.6.1p1
./configure --with-gnu-ld --sysconfdir="/etc"
make
sudo make install
cd ..
sudo mkdir /var/empty
sudo useradd -c "SMTP Daemon" -d /var/empty -s /sbin/nologin _smtpd
sudo useradd -c "SMTPD Queue" -d /var/empty -s /sbin/nologin _smtpq
sudo mkdir /etc/mail
sudo cp aliases /etc/mail/
sudo rm -r /etc/smtpd.conf
sudo cp smtpd.conf /etc/
cd /usr/local/sbin
sudo smtpd -dv