Skip to content

AzhariRamadhan/CVE-2026-39047

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

PrintHack - Printer Security Testing Tool

  ____  _        _      _____       _   _ ___ 
 |  _ \| |      | |    |  __ \     | \ | |  _|
 | |_) | |  __  | | __ | |__) | __ |  \| | |  _
 |  _ <| | / _| | |/ / |  ___/ ' \| . ` | | (_)
 | |_) | | \_|  |   <  | |   | (_) | |\  | |___ |
 |____/|_|  \__  |_|\_\|_|    \___/|_| \_|_____|
       _   _  | |
      | | | | | |
      | |_| | | |
       \___/  |_|
       ______
      |______|
      |      |
      |______|

🖨️ printerBOMB - Printer Spooling Attack Framework

Exploiting the overlooked attack vector: Your Network Printers

Developed by: Azhari Ramadhan 🔥


📋 Overview

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.


🎯 Features

Core Capabilities

  • 🔌 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

Attack Vectors

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

🚀 Quick Start

Installation

git clone https://github.com/AzhariRamadhan/CVE-PORT-9100.git
cd CVE-PORT-9100
pip install -r requirements.txt

Requirements

  • Python 3.6+
  • Pillow - Image processing
  • qrcode - QR code generation
  • requests - HTTP requests
pip install Pillow qrcode requests

🛠️ Usage

Basic Operations

# 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!"

Advanced Operations

# 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"

Mass Printing

# 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"

🎖️ Red Team Use Cases

1. Physical Access Simulation

Print covert messages or instructions to compromised printers in physical access scenarios.

2. Social Engineering

Print QR codes linking to credential harvesting pages disguised as security notices.

3. Data Exfiltration

Use printer output as a covert exfiltration channel for encoded data.

4. DoS Testing

Test organizational resilience against printer-based denial of service attacks.

5. Network Reconnaissance

Enumerate and identify printers across the network.


🔒 Detection & Mitigation

For Blue Teams

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

📜 Legal Disclaimer

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

🤝 Contributing

Contributions welcome! Please ensure:

  • Code follows Python PEP 8 standards
  • All new features include tests
  • Security-focused pull requests prioritized

📧 Contact

Developer: Azhari Ramadhan 🔥


📄 License

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

About

submition CVE

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages