An exploit for CVE-2022-0847 dirty-pipe vulnerability# CVE-2022-0847-dirty-pipe-exploit
An exploit for CVE-2022-0847 dirty-pipe vulnerability
# How to use this
Compile with ```gcc exploit.c -o exploit``` (assumes gcc is installed)
Run ```./exploit``` and it'll pop a root shell
If you are getting error message like then,
Login as ```root``` with password ```cspshivam```
#### Then, restore ```/etc/passwd``` by running ```mv /tmp/passwd.bak /etc/passwd```
[4.0K] /data/pocs/b412e2367079c32987c68c1396537dcb25a5e3e4
├── [5.1K] exploit.c
├── [ 34K] LICENSE
└── [ 408] README.md
0 directories, 3 files