Questions tagged [telnet]

1

votes
0

answer
372

Views

python telnet and put the message in a particular log file

hi I am coding the python script to login telnet and it has to write log file to op.txt the absolute path is /netperf/mntpt/array1/home/prg_use/op.txt the python code ptlog.py import getpass import sys import telnetlib import time host ='12.12.1.123' user ='user_name' passwd ='telnet_password' tn =...
joe
1

votes
1

answer
55

Views

ATSPACE.COM has broken HELO / EHLO command for SMTP transaction?

SMTP connection from my laptop to my ISP has worked fine for years when my computer sends 'EHLO [10.0.0.107]' to introduce itself. It happens to be a Mac OSX using Mail, but that's irrelevant because I'm typing the tests manually using telnet command line, tested from a Mac, a Win10, even a Pi, and...
Brian
1

votes
1

answer
36

Views

Multiple sockets override itself

My Code I want to make a multiple connection to a telnet console. This project is for Teamspeak and Teamspeak just communicate with telnet. I´ve a object that create a telnet connection as socket with the net lib. If we have just one instance to connect all works fine and I get the serverlist over...
Lukas Gund
1

votes
0

answer
35

Views

Verification of Email Addresses from MX using Bash

I want to verify a batch of email addresses in a file (say .txt) using telnet to mx and declaring recipient then checking response. I need a script that reads email addresses from a file, takes out host after '@', looks up MX, telnets(or mailcmd, whichever you prefer), does the deed, then outputs re...
Ateeb Khan
1

votes
1

answer
71

Views

Kill a process in a telnet connection using a python script

I've established a telnet connection and give commands to start following in real time some data. Before closing the connection I have to kill the process first. Manually this can be done with Ctrl+C but I don't know how to do it from .py script. Can anyone have any idea on how to do this? Below yo...
Ramona
1

votes
0

answer
53

Views

How to reconnect automatically to a TCP Server?

I'm having a TCP-Server which prints out some logging information. Normally I'm used to dump these logging to terminal by: nc -v 192.168.0.42 7777 Or I dump the logging to a file using nc -v 192.168.0.42 7777 >> log.log Well, sometimes the server runs through a reboot. Thus the connection to the cl...
eDeviser
1

votes
1

answer
38

Views

Simple TELNET in Python - loop paused if no data coming

I'm trying to build a very simple TELNET client in Python and I'm getting problem on the last part: sending/receiving data to/from the server. With the code I have, if no data arrives at the very beginnig, the loop get paused and I can't even send commands. Here the interested part of the code: # In...
teo-gamba
1

votes
0

answer
37

Views

Issues with Python Telnetlib trying to automatize a PDU41001

I am trying to make the Python Telnetlib to work with a PDU41001 switched power bar. I previously tried to interact with the device via putty using telnet and it works fine. In my code, I'm able to connect to the device successfully as the code raise an exception if I change the IP address or the po...
X. Mercure
1

votes
0

answer
51

Views

issue in doing a telnet connection through ssh on to a linux device box?

We are facing trouble establishing telnet connection via ssh. firstly I used rencissh library to establish ssh on to the linux box. linux_box_ip/host/password : 192.168.4.127/admin/password12 Then, i try to do a telnet connection by calling tcp class, tcpSocket = new TcpClient(host,port); host/po...
Anil Gadiyar
1

votes
1

answer
45

Views

Send F6 to linux in java

I use apache commons-net.jar to connect to a linux box. After login, I want to send an F6 , like I press key F6 in netterm. String s = '\033ou'; try { out.write(s.getBytes()); out.flush(); //System.out.println(s); } catch (Exception e) { } Linux does not send any response , not say c...
Ron
1

votes
1

answer
59

Views

Going beyond text messages in C telnet server

For educational purpose, I'm supposed to write a TCP telnet server in C. Client is simply connecting to the server as telnet program. After connection is established, the client should see on its console a menu with some options, which it should be able to navigate via arrows and accept with enter....
micsza
1

votes
0

answer
41

Views

Bash - Read and write to an interactive telnet session

I am making a program that will start a telnet session and reads questions and sends the answers, then reads the new output. For example, this would be a telnet session: 50*2584 (Answer) 38/3.63 (Answer) And etc. My question is: How can I read the question as it appears, or is there any way to writ...
Beckett O'Brien
1

votes
0

answer
450

Views

Android Telnet client send

Hi i'm just starting android studio for the most part. i'm following this tutorial on setting up sockets trying to get familiar with things. i can compile and run the application in the tutorial but the server i'm trying to send data to is a telnet server. the server just sits and waits for specific...
notsolowki
1

votes
1

answer
1.9k

Views

How to list FTP directories using telnet? [duplicate]

This question already has an answer here: Telnet and passive FTP 1 answer I installed FileZilla ftp server on one of local server in local network. I can successfully list folders for user user using ftp command (actually I installed Ubuntu in windows 10 through Microsoft store). ftp -p 192.168.11....
broadband
1

votes
0

answer
88

Views

Telnet inner-workings: Is telnet server necessary if client connects to an HTTP server?

One way to quickly test the first-order functionality of a web server is to use the application layer tool Telnet, e.g. How to send an HTTP request using Telnet. This is the usage I am most familiar with, but today I learned there is such a thing as a Telnet server: https://askubuntu.com/questions/6...
flow2k
1

votes
1

answer
14

Views

The DataOutputStream text from Server to Client is indented weird and produces a 4

Right now, I'm trying to make a server that can display messages to the client when they connect (through localhost). When I connect through telnet, it gives me weird indentation. The code for the server is: private ServerSocket middleman; private int port = 8080; private Socket client; protected vo...
Brock Lesnar
1

votes
0

answer
171

Views

how do I add a variable into the telnet write command

I've been trying to write a code that allows me to get a file from a telnet server and I want to if we can include variables in telnet write function. Here is my code. import telnetlib import sys import getpass host = '192.168.1.1' tn = telnetlib.Telnet(host, '23') tn.write((' \n').encode(...
Kaushik Hande
1

votes
0

answer
164

Views

Tera Term - enable local echo

Hi everybody, I have some question about a enable local echo in tera term. How can I enable local echo in tera term via command? When I send a message from telnet server (device) 'WON'T' Echo 'DO' Echo Tera term responds: 'WON'T' ECHO I know i can enable local echo in setup but I want a option to e...
Artur Rossa
1

votes
0

answer
139

Views

Passing additional “arguments” to a telnet connection command

I have a server that takes whatever data is sent to it and sends it back. With netcat on linux I am able to exectue the nc ip port command with an additional 'argument' in a single line: python -c print('Hello!') | nc ip port This is equivalent to first running nc ip port to connect to the server, a...
1

votes
0

answer
26

Views

Ruby and/or python: write telnetdata to file

i have a telnet-server running here (from a vendor) which is implemented in a barcode reader. to get the data, i simply need to connect to the telnetserver port 23 with my telnetclient from commandline. What i want to do is doing this with ruby or python and write the output to a file. so whats wor...
Peter Core
1

votes
1

answer
728

Views

kubernetes (kubectl) port forwarding not working on mac for IBM MQ/Docker deployment

I am trying to deploy IBM MQ to my local MAC machine using an image hosted on docker hub repository. I am using docker edge version with Kubernetes support on it. I am able to deploy the image successfully using kubernetes and also have the Queue Manager running fine inside the container. I am also...
Anurag
1

votes
0

answer
72

Views

Telnet protocol with dart

Is there any way to establish a telnet connection in dart? Basically what I want to achive it's to create a teamspeak 3 bot using Dart. I tought about using socket with I have no idea about how to go on. EDIT: I managed to estabilish a socket connection to the ts3 but I cannot make dart to keep the...
Mattia
1

votes
0

answer
8

Views

Does APE (Ajax Push Engine) require the web browser to be open before it can function?

I have a program that runs in a terminal emulator (Telnet) and I need a way to open websites from it. I've been exploring making an app that listens to a network port for XML from the telnet session and launches whichever website it asks for. Is that something and APE server could do, or does APE on...
zambonidude
1

votes
0

answer
147

Views

Python telnet switch connection closed

I'm new to being able to telnet to a switch using python so please excuse me if I'm asking something obvious. I used the following script in Python 3.6 and it appears my telnet connection closes. I've been able to properly connect through telnet in command prompt so I am not sure what is going on wi...
Sarah Munir
1

votes
1

answer
140

Views

Telnet to a port that is already in use

I'm trying to use telnet to check if the port of an application is open. But i'm receiving the following error: Connecting To 192.168.1.10...Could not open connection to the host, on port 3001: Connect failed I assume the port is closed, but is it also possible the port is being in use by another...
user2919457
1

votes
1

answer
41

Views

How to have a persistent connection with Net in Node.js?

I am using a Telnet - client to validate the emails, I connect to the server and it responds with 250 but when I write another command and ask for the answer, it simply does not answer me. This is my code: function ConnectTelnet(){ //var connection = new telnet(); var response; var HOST = 'mail.domi...
java005
1

votes
0

answer
22

Views

have problem in telnet client server with python

i want to make telnet server in python. here is my server code: #!/usr/bin/python import socket SK = socket.socket(socket.AF_INET, socket.SOCK_STREAM) HOST = '192.168.1.10' PORT = 23 SK.bind((HOST, PORT)) SK.listen(5) (Attacker_connection, (Attacker_IP, Attacker_PORT)) = SK.accept() while True: Comm...
HiDD3N
1

votes
0

answer
57

Views

Connection error(connection ECONNREFUSED) while connecting to SQL Server where installed in VMware Fusion

I build REST API for connecting to a SQL Server where installed vmware fusion. When ı tried to connect remote SQL Server port 1433 it will throw an error: 'Failed to connect to 192.168.1.20:1433 - connect ECONNREFUSED 192.168.1.20:1433' 192.168.1.20 -> This is my bridge network ip adress with vmwa...
Kaan Karamanoğlu
1

votes
0

answer
63

Views

Telnet server always returns garbage when connecting to it using Boost Asio

So I am trying to make a telnet client that connects to some address part for work and part for Boost::Asio learning purpose. My small project has three handlers: Resolve handler: void resolverHandler(const boost::system::error_code& ec, ip::tcp::resolver::iterator iter) { if (ec) { cout
Adrian
1

votes
0

answer
59

Views

telnet timeout while port is open

I bought a VPS and built a shadowsocks server on it. It runs well for like 2 months and suddenly failed to work, i.e. I cannot use it overcome the GFW. So I check the server, reinstall everything, check the firewall, but still couldn't solve the problem. Please help me out this puzzle! First, I can...
Ch3_ong
1

votes
1

answer
66

Views

Problem with sending commands to mikrotik through telnet using expect script

my task is to create automatic script, which send commands to mikrotik router through telnet. I am trying to create 'expect' script. But I got stuck at command sending part. Standalone login works well (first code), but when i add another command (second code), console gets stuck at password (https:...
RAJJJA
1

votes
1

answer
62

Views

While running a Python script, I'm getting an error

While running the Python script below, I'm am getting an error: [[email protected] ~]# cat pythonR5script1 import getpass import sys import telnetlib HOST = '100.100.100.1' user = raw_input('Enter your telnet username: ') password = getpass.getpass() tn = telnetlib.Telnet(HOST) tn.read_until('username:...
Alan Cladistan
1

votes
0

answer
49

Views

Telnet refuses Connection

Im setting up a spell check program and am having trouble with connecting to a server that houses the program. I do not know if it is a problem with the creation of a socket connection or how I am using the telnet client. I have tested it on my own computer using telnet with the address 127.0.0.1 an...
1

votes
1

answer
578

Views

Why is the “terminal speed” of a native linux telnet client 0,0 when spawned from Java (and how can I fix it)?

I'm unable to login to an HPUX host using telnet when the telnet process is created by a Java program. When I telnet to the HPUX host from the command line (from bash), I am able to login and use the session. When I spawn the telnet process from Java, something strange happens. I am prompted for the...
David Resnick
1

votes
1

answer
1.3k

Views

C# Telnet Proxy

I am working on developing an extensible MUD/ORPG game server framework in C#. As part of the package, I would like to include a SOCKS5 proxy client that could be installed on user's machines. This proxy client would sit between the user's standard telnet client (zMUD, GMUD, MUSHclient, or just plai...
Polatrite
1

votes
2

answer
1.3k

Views

Example of messages to send to a telnet server

We have a unix box in our ofc. We usually telnet to this box and initiate commands on it. We usually do this from windows clients from the command prompt using the telnet.exe. We simply provide the ip of the unix box and it loads up a screen where we provide the login credentials. There is a default...
deostroll
1

votes
3

answer
382

Views

Can anyone recommend a java FOSS server that does all the typical protocols (ssh etc)

I would like to add the ability for users to telnet into my app where by they can type in commands etc. I would like a simple Java Telnet server whereby i can provide the authentication strategy. By 'telnet' i am not referring what lib provides telnet connectivity but something a little more. I want...
mP.
1

votes
1

answer
381

Views

push file to remote system through telent using ruby

I have a remote embedded system which it is telnet-able. How can I download a binary file from the host to it? I can read file from the system, but have no idea how to write to it.
pierrotlefou
1

votes
1

answer
402

Views

Perl Is it possible to re-create the Net::Telnet connection if I have its memory location?

Is it possible to re-create the Net::Telnet connection if I have its memory location ? how can i turn Net::Telnet=GLOB(0x1b50ff0) string to a Net::Telnet object again ? Thanks.
Ricky Levi
1

votes
3

answer
16.6k

Views

VB.NET writing a telnet client using system.net.tcpclient

This isn't working for me when I connect to my solaris box The server is sending back ??% does anyone know what i'm doing wrong Imports System.Net Imports System.Net.Sockets Imports System.Text Public Class TelnetClient Private _hostname As String = 'myserver' Private _username As String = 'user' P...
PeanutPower

View additional questions