Printer
Nmap discovered a printer service running on the target port 515
port 515
is mostly used for printer services, specifically line printer daemon (LPD)
┌──(kali㉿kali)-[~/archive/htb/labs/sunday]
└─$ nc -nv $IP 515
(UNKNOWN) [10.10.10.76] 515 (printer) open
Connecting to the target port 515
with Netcat does not provide any additional information
There is only one tool that I know that enumerate and interact with LPD it’s pret
┌──(kali㉿kali)-[~/archive/htb/labs/sunday]
└─$ python3 ~/Tools/PRET/lpd/lpdtest.py --port 515 sunday put test
[put] Trying to write to file test
Negative acknowledgement
┌──(kali㉿kali)-[~/archive/htb/labs/sunday]
└─$ python3 ~/Tools/PRET/lpd/lpdtest.py --port 515 sunday get test
[get] Trying to print file test
Negative acknowledgement
I tried pretty much everything, but it doesn’t seem to be interactable