Sploitus

Exploit for CVE-2021-1675

githubexploit Β· 2021-07-01

Exploit Code

README43 lines
## https://sploitus.com/exploit?id=895FF449-0383-5007-9352-FABB3E8BD54C
# PrintNightmareScanner
Scanner to detect Windows Print Spooler Remote Code Execution Vulnerability (CVE-2021-1675)

## Prerequisite's
- python3
- python3 -m pip install -r Requirements.txt

## Usage
python3 detectprintnightmare.py --help

```
usage: detectprintnightmare.py [-h] [-t TARGET] [-T TARGETS] [-c CIDR]

optional arguments:
  -h, --help            show this help message and exit
  -t TARGET, --target TARGET
                        Single IP
  -T TARGETS, --targets TARGETS
                        List of IP in text file
  -c CIDR, --cidr CIDR  CIDR range
```
## Example: 1
Run the script for single IP
```
python3 detectprintnightmare.py -t 192.168.0.1
```
![alt text](https://github.com/cybersecurityworks553/CVE-2021-1675_PrintNightMare/blob/main/Usage.png)

## Example: 2
Run the script for Multiple ips by providing text file with ips
```
python3 detectprintnightmare.py -T ips.txt
```
![alt text](https://github.com/cybersecurityworks553/CVE-2021-1675_PrintNightMare/blob/main/Example.png)
## Example: 3
Run the script for CIDR
```
python3 detectprintnightmare.py -c 192.168.0.1/24
```

## Reference
[PrintNightmare](https://github.com/afwu/PrintNightmare)