A simple command-line Telnet client written in Go (Golang). This tool allows you to connect to Telnet servers, send commands, and view responses directly from your terminal.
- Connects to a specified IP address and port.
- Validates IP address and port range (1-65535) before attempting connection.
- Supports concurrent reading and writing to the Telnet server.
- Gracefully handles disconnections and input errors.
- Exits upon receiving a Ctrl+C command.
-
Prerequisites: Ensure you have Go installed on your system.
-
Building the Application:
- Clone this repository to your local machine.
git clone https://github.com/wuchuhengtools/telnet.git
- Navigate to the project directory.
cd YOUR_REPOSITORY- Build the Telnet client binary.
go build -o telnet-client main.go
-
Running the Telnet Client: Open a terminal and run the compiled binary with the target IP address and port number.
./telnet-client <address> <port>
Example:
./telnet-client 192.168.1.1 23
<address>: The IP address of the Telnet server (e.g.,192.168.1.1). Must be a valid IPv4 address.<port>: The port number of the Telnet service (e.g.,23). Must be within the range of 1 to 65535.
Contributions are welcome! If you find any bugs or have feature requests, please open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for more information.