
Ultrafast CUPS-browsed scanner (CVE-2024-47176)
Use jugs to look for CUPS: an ultrafast UDP sender, that tries to tickle listening cups-browsed processes to do a HTTP callback.
This is a high performance scanner that writes UDP packets directly to the network.
sudo apt install golang libpcap0.8-dev
go install github.com/lkarlslund/jugular@main
... or download the Linux x64 binary from the builds
Allow jugular to bind to low ports and access raw sockets without being run as root (you only need to do this once):
sudo setcap CAP_NET_BIND_SERVICE,CAP_NET_RAW=eip jugular
jugular listen --bind 0.0.0.0:80
Run jugular and do the scan:
jugular prod --network 10.0.0.0/8 --delay 1 --url http://yourdomain.net/printer/scanning-you --addip true --ip your-own-machine-ip
Since this software creates and writes its own packets directly to an outgoing network for performance reasons, you need to assign your own correct machine IP address (run ip addr to find it). The remote instances need to be able to route back to the URL you put in that parameter as well.
Test locally before going on a hunt, and please remember that this software can overwhelm your NAT firewall and other equipment (use the delay option).
PLEASE NOTE There is an up to 300 second delay from CUPS recieving the message to it reaches out to the URL you gave it. This is due to a hardcoded scheduling wait that is inside the CUPS software. You may also trigger endless notifications, as some CUPS servers do not stop trying to connect back to the URL even after they have received an error response.
Choose one or more ... (for Ubuntu, YMMV with others - I updated + enabled ufw)
If you get interesting results, I'd love to hear about them.