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
1 answer

Parsing raw TCP data line by line in Python

I'm getting stock market data via TCP. I'm trying to connect with Python to the broker, e.g. via Telnet (telnetlib) with read_eager() or via socket with socket.recv(). This is how the output looks…
featMarcel
  • 23
  • 4
0
votes
1 answer

How to connect a id to a trigger function in html and javascript

With the code below, I am trying to make it responsive to the input of mute and muteon. So that when mute or muteon is input in the textbox it will change the color to red for muteon and green for mute, of a linked id in this case id="text" and…
StackGuru
  • 133
  • 7
0
votes
2 answers

using Python to test telnet connections to servers

I am trying to use telnet to check service connections to a server. This is the code I used: p = subprocess.run("telnet localhost 80", shell=True, universal_newlines=True, stdout=subprocess.PIPE) print(p.stdout) if I run this there is a blank…
0
votes
1 answer

Single command relay on/off

Hey I have a home automation project I've been working on recently, in which I have an Arduino Mega with an Ethernet shield. The Mega is waiting for Telnet commands. When a command is received, it turns a relay on. I then have an auto-hotkey script…
0
votes
1 answer

how send a json body like telnet using jmeter 5.0

I need to connect to "telnet 127.0.0.1 port" and send a json body (I did this by console before). how can I do this in jmeter?
0
votes
1 answer

Automated telnet test on IBM AS400

Does anyone know if it is possible to run an automated Telnet test (to a specific port) on an IBM AS400 platform in batch? Ideally the output of the telnet test should be written to QsysOpr or a file in the IFS if possible. The target platform is…
greenage
  • 399
  • 3
  • 13
0
votes
0 answers

PHP MailTrap Docker

I am having a connection issue to Mailtrap from my PHP instance. I currently have such in my docker-compose.yml version: "3.4" services: php: build: context : ./ dockerfile : Dockerfile network: host ports: -…
Devin Dixon
  • 11,553
  • 24
  • 86
  • 167
0
votes
1 answer

Mongodb community server on Windows 10: Can I access MongoDB shell command interpreter via ordinary telnet? (BEGINNER)

I am beginning to explore MongoDB and wish to write a small program/script using TCP socket to create a document in my local MongoDB community edition server. I would like to access MongoDB (which is now locally installed and running on my laptop)…
wb0gaz
  • 43
  • 1
  • 7
0
votes
0 answers

Why am I getting an error when connecting to telnet?

So whenever I run my script I end up getting this error: 2020-03-12T17:59:51 8100.701 ERR IOException in ReadLine for TelnetClient_127.0.0.1:55356: Unable to write data to the transport connection: An established connection was aborted by the…
Outflows
  • 163
  • 11
0
votes
0 answers

C# Navigating an OpenVMS Menu using a Telnet Connection

I have a (.NET) C# Application (Framework v4.5) which performs a TELNET connection to an OpenVMS machine and is able to successfully login. In order to login to the machine I'm reading the TELNET client stream output buffer, and searching for the…
0
votes
0 answers

How do I create a decent bash script to start an ETRN on a mail-server?

Once in a while, I need to ETRN a couple of backup servers (e.g. after maintenance of my own SMTP server). Normally, I use telnet for that. I go to that server, HELO with my own name and give the ETRN commands. I would like to automate that in a…
gctwnl
  • 217
  • 1
  • 8
0
votes
1 answer

Shell script - Force HTTP 1.1 pipelining in curl, nc or telnet

I need to force HTTP pipelining (1.1) on serveral GET requests with curl, telnet or netcat on a bash script. I've already tried to do so with curl, but as far as I know the tool has dropped HTTP pipelining support since version 7.65.0, and I wasn't…
0
votes
0 answers

Why am I getting "invalid input detected" for this tn.write("ip address 1.1.1.1 255.255.255.255") line?

So this script is meant to telnet into a router and change the IP address on the given interface. However, my script runs into errors and I'm not sure why. The line that errors out is line 44. This is my python script: import os import sys import…
angelstra
  • 13
  • 5
0
votes
1 answer

is it possible to run bash commands over shell running on telnet?

So we have Embedded Linux board running Linux. We can connect to that board using telnet and that spawns shell and gives access to it. Now I am writing a bash script where I want to run commands on that shell and get its output. e.g. My commands…
ART
  • 1,509
  • 3
  • 29
  • 47
0
votes
0 answers

Client-server Telnet in C, problem with pipes

I need to write a simple telnet app in C language using TCP sockets. What i've done is a client & server, which is working with commands like 'ls' or 'pwd', but i need ability to use different shell programs like bash, sh, csh. Can someone tell me…
colomaxy
  • 9
  • 1