hackerterminal/printer.sh

8 lines
261 B
Bash
Raw Normal View History

2022-02-03 21:52:44 +00:00
#!/bin/sh
# This script prints a random password with 10 characters on a thermal printer.
echo "\r\r+----------------------+| Dein Passwort lautet || " > /dev/usb/lp1
pwgen -N1 10 > /dev/usb/lp1
echo " |+----------------------+\r\r" > /dev/usb/lp1