Share
## https://sploitus.com/exploit?id=32070F43-C6B7-5C66-89ED-2AE2F8A1DD03
# 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```