Questions tagged [telnet]

Telnet is an old protocol for bidirectional interactive text-oriented communication with remote hosts via virtual terminals. It is defined in rfc854. On modern UNIX-like systems it is replaced with more secure and flexible SSH protocol.

Telnet is a network protocol used on the Internet or local area networks to provide a bidirectional interactive text-oriented communications facility using a virtual terminal connection. User data is interspersed in-band with Telnet control information in an 8-bit byte oriented data connection over the Transmission Control Protocol (TCP).

Shell example:

telnet website.com 80 # telnet to the website with port 80

Then HTTP methods can be executed like below

GET /index.html

More information at http://en.wikipedia.org/wiki/Telnet

2479 questions
0
votes
0 answers

C++ How to output a successful telnet connection

Is there a way for a computer to test a telnet connection to a local server using C++? I've used _popen() to pipe a telnet connection line into cmd and it connected to the server, but I haven't been able to find a way for my code to receive feedback…
darren wu
  • 3
  • 2
0
votes
1 answer

Telnet device automation

I try to connect to devices with python using telnet protocole to do some automation (for example somes old Cisco routers), For that i am using Napalm library (which based on Napalm library which based on telnetlib library) The problem is that when…
Med
  • 97
  • 1
  • 2
  • 9
0
votes
0 answers

Why does telnet connect to database but cx-oracle won't?

When I run the below command it works fine. telnet hostname port But when I try the below code from the same machine I get an error. import cx_Oracle cx_Oracle.connect(username, password, hostname:port/service_name) DatabaseError: ORA-12170:…
PSK
  • 347
  • 2
  • 13
0
votes
0 answers

Automation of filling in fields in a telnet session

I'm automaticng some telnet tasks in C++ based on this library QTelnet. The steps are the following: Login to server via telnet. Telnet asks for user (I put user + [enter]), then asks for password (I put password + [enter]). Telnet shows list of…
0
votes
0 answers

How to access remote telnet server within a docker container?

I would like to access the Star Wars Ascii movie from the telnet "towel.blinkenlights.nl" within a Docker Container. Given this Dockerfile based on nerdalert: FROM alpine:latest RUN apk add busybox-extras ENTRYPOINT ["/usr/bin/telnet",…
T1Berger
  • 445
  • 3
  • 10
0
votes
1 answer

Python telnet script Loop

I have a Telnet python script that works fine with one "IP" but when i add "for" to works on multiple IP's It gives me an error. This is my script: import getpass import telnetlib HOST = "192.168.122.240,192.168.122.241" user = input("Enter your…
Linux User
  • 29
  • 4
0
votes
1 answer

problem with telnet HTTP/1.1 400 Bad Request

I was trying to do this: Telnet into a Web server and send a multiline request message. Include in the request message the If-modified-since: header line to force a response message with the 304 Not Modified status code. so I did steps below telnet…
negar
  • 11
  • 2
0
votes
1 answer

Python 3 telnetlib router reboot

I am trying to write a python script to reboot my router. I can do this just fine with normal telnet, however, in the python code, for some reason, unless I add tn.read_all() to the bottom of the code, reboot operation does not execute. Here is the…
Lax
  • 21
  • 5
0
votes
1 answer

How to save telnet output logs to a text file

hi guys please how can I save the output logs to text file for this script to solve this problem import sys import telnetlib import getpass ##################### ###### Define Host …
0
votes
0 answers

How to remove extra alphabets and numeric in telnet output?

Hi I am new to telnet package in python. My code works but not expected execution output contains extra alphanumerics. Final output should contain only 1.index and 2.comment. instead it prints:- f085467678G1.uGpindex_gvA3e5JGyhjejkn…
thimoni
  • 1
  • 3
0
votes
0 answers

Best approach to check if host / port (industrial device) is reachable using Delphi 6 (or 7)

I have a program in Delphi 6 which connects to an industrial device (2d barcode scanner), using TCP/IP on a specific port. The scanner socket is not connected all the time, only when operator performs a certain operation. At that time, I would like…
MyICQ
  • 987
  • 1
  • 9
  • 25
0
votes
1 answer

Python socket client: send data and receive result

I am trying to develop an application in python that has the following behavior. Knowing the existence of an external socket server, I can currently connect via telnet and have the following result: telnet localhost 1234 When I connect to the…
victornoleto
  • 1
  • 1
  • 6
0
votes
0 answers

Unable to telnet SMTP server from ec2 prod machine

I'm unable to telnet my SMTP server via ec2. What can be the possible reasons for the same. The SMTP server is running fine, tested it from the local machine. telnet smtp.example.com 587 This is the command used? Can there be some firewalls…
Praful Bagai
  • 16,684
  • 50
  • 136
  • 267
0
votes
0 answers

I want to Access to a modem/router through QTcpSocket

When i use a program(just console) like putty i can access to 192.168.x.x and it shows user/pass to enter//, this helps to do some tweaking to the DSL Line (Snr Margin ... etc) void testtcp::connect(){ socket = new QTcpSocket(this); …
Oliver07
  • 13
  • 2
0
votes
1 answer

How to change default C/C++ gnu readline newline character?

My goal is to use the C/C++ readline library on the telnet server-side as it delivers all necessary terminal functionality out of the box. Readline is already connected to the telnet socket, read and write to the socket works fine. I'm using…
Antoni
  • 176
  • 10