domenica 11 gennaio 2026

Black hole printer

Using *nix netcat to impersonate a network printer sending all received data to /dev/null

nc -kl 9100 > /dev/null

Snippet code below formatted by hilite.me

#!/bin/bash

# Start listening on port 9100

echo "Listening on port 9100 emulate HP Jetdirect - Socket. All data received is sent to /dev/null"
echo "^C to halt script"
nc -kl 9100 > /dev/null

Nessun commento: