IoT Telnet Shell (telnetshell)

Automate telnet interactions with IoT device shells using Python 3 and pexpect.

811|123|Updated Nov 17, 2025
One-click install
npx skills add https://github.com/BrownFineSecurity/iothackbot --skill iot-telnet-shell-telnetshell
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: IoT Telnet Shell (telnetshell)
Source: https://github.com/BrownFineSecurity/iothackbot/tree/main/.claude/skills/telnetshell
Command: npx skills add https://github.com/BrownFineSecurity/iothackbot --skill iot-telnet-shell-telnetshell

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pexpect, inetutils, telnet, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates interaction with IoT device telnet shells, removing the need for manual command entry and prompt detection. It streamlines enumeration, vulnerability discovery, and post-exploitation, making it faster and more reliable to interact with BusyBox-based systems often found in embedded devices.

Core Features & Use Cases

  • Automated Telnet Interaction: Reliably send commands, detect prompts, and handle timeouts for various telnet shells.
  • Session Logging: Logs all telnet I/O to a file for real-time observation and post-analysis, ensuring transparency.
  • BusyBox Shell Support: Optimized for the common BusyBox environments found in most IoT devices, handling their specific command limitations.
  • Use Case: Connect to an IoT camera's hidden telnet port, automatically enumerate system information, and then search for writable configuration files to escalate privileges.

Quick Start

Use the IoT Telnet Shell skill to connect to 192.168.1.100 on port 2222, and then execute the uname -a command while logging the session to /tmp/telnet_session.log.

Frequently Asked Questions about IoT Telnet Shell (telnetshell)

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate telnet commands on IoT devices instead of entering them manually?

Automate telnet commands on IoT devices using pexpect-based interaction that sends commands, detects prompts, and handles timeouts automatically. This eliminates manual entry and works reliably with BusyBox shells common in embedded devices, enabling faster enumeration and vulnerability testing workflows.

Can I use telnet to enumerate and interact with IoT device shells for security testing?

Yes. Telnet interaction tools designed for IoT security testing connect to device shells, execute commands in batches or interactively, clean output for reliable parsing, and log all session activity. This supports enumeration, credential testing, and post-exploitation data collection on networked embedded systems.

What's the best way to handle unreliable telnet connections and prompt detection on embedded devices?

Stable telnet helpers with automatic prompt detection and output cleaning solve unreliability issues. They manage timeouts, parse shell responses consistently, and work across BusyBox variants, making scripted security workflows on IoT devices more predictable and faster than manual interaction.

Do I need special handling to run telnet commands on BusyBox systems during penetration testing?

BusyBox shells have command limitations and specific prompt patterns that require tailored handling. Telnet interaction tools optimized for BusyBox environments detect these patterns, clean non-standard output, and support the command subset available, enabling reliable enumeration and privilege escalation workflows.

How do I log and review telnet session activity for IoT security assessments?

Telnet session logging captures all I/O to a persistent file, enabling real-time observation and post-analysis of device interactions. This transparency is essential for documenting findings during penetration testing, vulnerability discovery, and compliance-driven security assessments on IoT devices.

Can telnet interaction tools support both single commands and scripted batches on remote IoT shells?

Yes. Telnet helpers support ad-hoc single commands, scripted command batches, and interactive sessions through Python-based automation. This flexibility enables rapid device enumeration, vulnerability testing, and post-exploitation workflows without switching between tools or manual intervention.