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

Python Bash script start

Basically, i'm trying to run multiprocessing using Python that will utilize telnet to a server in order to send HTTP request. The request is recorded in request.txt full request with header. In my python code, I've tested the full multiprocessing,…
Theg8nj
  • 135
  • 1
  • 16
0
votes
1 answer

how to send \r\n in the middle of message via telnet(or some other tool)

I need to send to localhost, given port messages like SOME_NUMBER\r\nANOTHER_NUMBER\r\n and recieve answers. I tried telnet, but can't make it send \r\n. I tried double and single quotes but in all attempts it treats \r\n as 4 usual characters.
Andrey Nekrasov
  • 456
  • 2
  • 12
0
votes
0 answers

How to check connectivity from specific source server to destination server using telnetlib

I am trying script the process of checking the connectivity between host/server using telnet in shellscript. I have understood that we can use telnet to check connectivity to a remote server from our local machine but how to do this when we are…
0
votes
2 answers

Oracle Service Bus - Unix authorization over telnet

I'm completely new to Oracle's Service Bus. The problem I'm facing is that OSB 11g is to be used in a rather specific environment meaning - OSB needs to send CSV formatted messages over telnet to a Legacy System. Before that the connection must be…
peel
  • 11
  • 3
0
votes
1 answer

How to send a character through telnet from Linux shell?

I manage a running program by sending a command-character through telnet. I usually do it step by step: telnet localhost 12345 command-character ctrl+] quit Is it possible that I send the command-character from bash directly, or if not, write a…
fiedel
  • 31
  • 6
0
votes
1 answer

How to send command to Telnet over SSH connection

I am using SSH.NET library to connect to a remote server and then initiate a Telnet session. I am able to do that using SshClient class. My problem is that now I am not able to send commands to that Telnet connection using the connected SSH client.…
0
votes
0 answers

how to enter into an infinite loop of expect operations with Tcl?

How can I intentionally enter an infinite loop with the telnet server? (Not literally infinite, but to "cycle" through a sequence with the server.) whenever presented with a menu of "WEATHER UNDERGROUND MAIN MENU" or "CITY FORECAST MENU" I'd to…
Thufir
  • 8,216
  • 28
  • 125
  • 273
0
votes
1 answer

How can I use the telnet server service, that comes with windows, to listen for a port?

Is there an easy way to use the telnet server from command line? I can connect with telnet [ip/domain] [port] but is there a telnet equivalent of nc -l -p [port]? I've tried using netcat for windows but it didn't support ANSI. I've tried…
0
votes
1 answer

How to toggle Tcl interact and expect for telnet automation?

Similar to but different from autoexpect in that autoexpect will always produce the same output for any given input. Whereas, trying to allow for user input sometimes at least. This works in that it passes control back to the user as…
Thufir
  • 8,216
  • 28
  • 125
  • 273
0
votes
1 answer

Tcl expect error with spawning telnet: invalid command name

How do I send just a "return" to this telnet server: got New York spawn telnet rainmaker.wunderground.com Trying 35.160.169.47... Connected to rainmaker.wunderground.com. Escape character is…
Thufir
  • 8,216
  • 28
  • 125
  • 273
0
votes
1 answer

Socket in c TCP how do i test connection?

For a school project I have to use sockets to create a server, I think I managed to do it but I am supposed to use Telnet to test it, and whenever I try I get telnet: connect to address 0.0.0.0: Connection refused So i guess it is with the IP that…
0
votes
2 answers

Can't find package from application written in Tcl

Thanks to the comments, better understand the problem a bit. The variables: thufir@dur:~/tcl/packages$ thufir@dur:~/tcl/packages$ echo 'puts $auto_path' | tclsh /usr/share/tcltk/tcl8.6 /usr/share/tcltk /usr/lib /usr/local/lib/tcltk…
Thufir
  • 8,216
  • 28
  • 125
  • 273
0
votes
1 answer

How to send a String via Telnet?

I want to send a String to a Telnet Connection using TelnetConnection from Apache import java.io.IOException; import org.apache.commons.net.telnet.TelnetClient; public class TestClass { public static void main(String[] args) throws IOException,…
0
votes
0 answers

Running telnet over ssh

I want to write code to execute some commands through telnet connection so i can get data from server. But i should be connected to server via ssh first, then connect via telnet. I'm already trying implement python script using paramiko & telnet…
0
votes
0 answers

Virtualhost (linux mint) netstat port is different from what i see on win10

first apologies if this is a v stupid question - forgive me - but i cannot make heads or tails for this scenario. I created a python server script (basic socket script) that binds localhost and port 9999 on my PC. Next on my virtualbox (Linux mint)…