All Projects → ruby → net-telnet

ruby / net-telnet

Licence: other
Provides telnet client functionality.

Programming Languages

ruby
36898 projects - #4 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to net-telnet

Gensio
A library to abstract stream I/O like serial port, TCP, telnet, UDP, SSL, IPMI SOL, etc.
Stars: ✭ 30 (-41.18%)
Mutual labels:  telnet
Hisilicon Dvr Telnet
PoC materials for article https://habr.com/en/post/486856/
Stars: ✭ 101 (+98.04%)
Mutual labels:  telnet
Esp32 Serial Bridge
Wifi to 3x Serial bridge based on a ESP32
Stars: ✭ 169 (+231.37%)
Mutual labels:  telnet
Fqterm
Stars: ✭ 50 (-1.96%)
Mutual labels:  telnet
Docker Cowrie
Cowrie Docker GitHub repository
Stars: ✭ 68 (+33.33%)
Mutual labels:  telnet
Print My Shell
Python script wrote to automate the process of generating various reverse shells.
Stars: ✭ 140 (+174.51%)
Mutual labels:  telnet
Streamhut
Stream your terminal to web without installing anything 🌐
Stars: ✭ 676 (+1225.49%)
Mutual labels:  telnet
Libtelnet
Simple RFC-complient TELNET implementation as a C library.
Stars: ✭ 228 (+347.06%)
Mutual labels:  telnet
Guacamole
Guacamole是无客户端的远程桌面网关。它支持VNC,RDP和SSH等标准协议。 我们称之为无客户端,因为不需要插件或客户端软件。 感谢HTML5,一旦Guacamole安装在服务器上,您访问桌面所需的全部功能就是一个Web浏览器。
Stars: ✭ 99 (+94.12%)
Mutual labels:  telnet
Go Telnet
Package telnet provides TELNET and TELNETS client and server implementations, for the Go programming language, in a style similar to the "net/http" library that is part of the Go standard library, including support for "middleware"; TELNETS is secure TELNET, with the TELNET protocol over a secured TLS (or SSL) connection.
Stars: ✭ 161 (+215.69%)
Mutual labels:  telnet
Currymud
A Multi-User Dungeon server in Haskell.
Stars: ✭ 54 (+5.88%)
Mutual labels:  telnet
Nyancat
Nyancat in your terminal, rendered through ANSI escape sequences. This is the source for the Debian package `nyancat`.
Stars: ✭ 1,144 (+2143.14%)
Mutual labels:  telnet
Eve Ng Integration
integrates EVE-NG (aka UNetLab) with Linux desktop
Stars: ✭ 143 (+180.39%)
Mutual labels:  telnet
Terminals
Terminals is a secure, multi tab terminal services/remote desktop client. It uses Terminal Services ActiveX Client (mstscax.dll). The project started from the need of controlling multiple connections simultaneously. It is a complete replacement for the mstsc.exe (Terminal Services) client. This is official source moved from Codeplex.
Stars: ✭ 971 (+1803.92%)
Mutual labels:  telnet
Doe
自己编写dubbo客户端实现rpc调用,在线调试dubbo接口、dubbo接口可视化测试、自动化测试工具。
Stars: ✭ 183 (+258.82%)
Mutual labels:  telnet
Teleport
Teleport是一款简单易用的堡垒机系统。
Stars: ✭ 718 (+1307.84%)
Mutual labels:  telnet
Ts3 Nodejs Library
TeamSpeak 3 Server Query Library supports SSH and RAW Query
Stars: ✭ 110 (+115.69%)
Mutual labels:  telnet
Knock
🔑 Scan the entire internet for SSH and Telnet services. Then hack them.
Stars: ✭ 60 (+17.65%)
Mutual labels:  telnet
Brutedum
BruteDum - Brute Force attacks SSH, FTP, Telnet, PostgreSQL, RDP, VNC with Hydra, Medusa and Ncrack
Stars: ✭ 212 (+315.69%)
Mutual labels:  telnet
Hontel
Telnet Honeypot
Stars: ✭ 145 (+184.31%)
Mutual labels:  telnet

Net::Telnet

Provides telnet client functionality.

This class also has, through delegation, all the methods of a socket object (by default, a TCPSocket, but can be set by the Proxy option to new()). This provides methods such as close() to end the session and sysread() to read data directly from the host, instead of via the waitfor() mechanism. Note that if you do use sysread() directly when in telnet mode, you should probably pass the output through preprocess() to extract telnet command sequences.

Installation

Add this line to your application's Gemfile:

gem 'net-telnet'

And then execute:

$ bundle

Or install it yourself as:

$ gem install net-telnet

Usage

Log in and send a command, echoing all output to stdout

localhost = Net::Telnet::new("Host" => "localhost",
                             "Timeout" => 10,
                             "Prompt" => /[$%#>] \z/n)
localhost.login("username", "password") { |c| print c }
localhost.cmd("command") { |c| print c }
localhost.close

Check a POP server to see if you have mail

pop = Net::Telnet::new("Host" => "your_destination_host_here",
                       "Port" => 110,
                       "Telnetmode" => false,
                       "Prompt" => /^\+OK/n)
pop.cmd("user " + "your_username_here") { |c| print c }
pop.cmd("pass " + "your_password_here") { |c| print c }
pop.cmd("list") { |c| print c }

Development

After checking out the repo, run bin/setup to install dependencies. Then, run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release to create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

  1. Fork it ( https://github.com/ruby/net-telnet/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].