Shows Shodan2000 on a Raspberry Pi
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

861 B

Password-Printer This script prints out a random passoword on a thermal printer upon button press.


We use a Card Start 8010 thermal printer. With the USB adaptor, you can simply send text via echo to the /dev/usb/lp1 device. It is printed if the line is full (24 characters) or when a "\r" sequence is sent.


Wanted Output:

| Dein Passwort:      |
| 0123456789          |

Test Output:

echo -e "\r\r+---------------------+\r| Dein Passwort:      |\r| 0123456789          |\r+---------------------+\r\r\r" > /dev/usb/lp1

Final command:


echo  "\r\r+----------------------+| Dein Passwort lautet || " > /dev/usb/lp1
pwgen -N1 10 > /dev/usb/lp1
echo "           |+----------------------+\r\r" > /dev/usb/lp1