telnet

Script telnet on webserver

Hi I would like to script telnet to test my website inputs handling. I can do it manually : telnet localhost 8888 ... GET / HTTP/1.1\n Host: localhost ...html response But I can pass command to telnet in my shell script ! I've tried : (echo "GET / HTTP/1.1\n"; echo "Host: localhost \n\n"; sleep 1) | telnet localhost 8888 It pr...

Writing a telnet client

HI, I have a device that exposes a telnet interface which you can log into using a username and password and then manipulate the working of the device. I have to write a C program that hides the telnet aspect from the client and instead provides an interface for the user to control the device. What would be a good way to proceed. I tr...

Why does my Net::Telnet program timeout?

I'm written small code to connect to remote server using Perl but observing error messages #!/usr/bin/perl -w use Net::Telnet; $telnet = new Net::Telnet ( Timeout=>60, Errmode=>'die'); $telnet->open('192.168.50.40'); $telnet->waitfor('/login:/'); $telnet->print('queen'); $telnet->waitfor('/password:/'); $telnet->print('kinG!'); ...

Automating telnet with powershell

Ok, it's little convoluted. I am trying to write a script to automate telneting to a machine, execute few commands, look at the output in the telnet window, based on the output, send few more commands. Thanks for any help ...

how to feed a file to telnet

hello community, trying to understand http and headers i was playing around with telnet to send requests. to not type everything again and again and again i thought i'd write a small textfile with all the commands i need. my file is as simple as follows: GET /somefile.php HTTP/1.1 Host: localhost i then try to feed it to telnet with...

flex chat/telnet application send/receive same window in TextArea

Hi there, Just wanting to know if anybody has seen an example of a telnet/chat or other console like FLEX application where you can use the same TextArea as input/ouput area. I've been trying to modify the app at: http://livedocs.adobe.com/flex/3/html/17_Networking_and_communications_8.html but so far, computer says no. All the imp...

Telnet and traceroute In Iphone

Hi, I am a beginner in programming for iphone.I want to develop traceroute and telnet app for iphone.Can you please provide me with some sample codes or pointers to start with. Thanks, Vinod. ...

Which Java Telnet or openSSH library?

I need to make a small test program in java which has to communicate with remote Windows server using telnet, or openSSH. Which library would you suggest to use? I'd like to use a well documented and stable library. ...

Convert Attachmate Extra visual basic script from Telnet to SSH

I am facing a situation where an Attachmate Extra visual basic script which has worked with Telnet needs to be concerted to SSH. The current Telnet implementation uses a "Telnet specific" edp file. The code which references the EDP is here: Set oExtraBanner = oExtraSystem.Sessions.Open("myTelnet.edp") Set oExtraScreen=oExtraBanner....

Python (Django). Store telnet connection

Hello. I am programming web interface which communicates with cisco switches via telnet. I want to make such system which will be storing one telnet connection per switch and every script (web interface, cron jobs, etc.) will have access to it. This is needed to make a single query queue for each device and prevent huge cisco processor ...

Twisted Matrix and telnet server implementation

I have a project which is essentially a game server where users connect and send text commands via telnet. The code is in C and really old and unmodular and has several bugs and missing features. The main function alone is half the code. I came to the conclusion that rewriting it in Python, with Twisted, could actually result in faster...

404 not found in telnet, works fine in browser

i am having a very irritating problem, when i open a url ( http://celebs.widewallpapers.net/md/a/adriana-lima/1440/Adriana-Lima-1440x900-002.jpg ) in browser, it works fine.. but when i try to access it by telnet on bash, i get 404 not found!! my exact terminal: $ telnet celebs.widewallpapers.net 80 HEAD /md/a/adriana-lima/1440/Adrian...

Telnet connection using .net

Our office currently uses telnet to query an external server. The procedure is something like this. Connect - telnet opent 128........ 25000 Query - we paste the query and then hit alt + 019 Response - We receive the response as text in the telnet window So I’m trying to make this queries automatic using a c# app. My code is the foll...

How can I get the telnet result using C / Objective C?

Here is a telnet site: telnet://202.85.101.136:8604/ It is from Hong Kong public library, can I write some programme to get the string / result from the telnet service, and send the request from C / Objective C? thz u. ...

How to create a telnet connection in Delphi applications

I want to create a telnet connection in Delphi that will allow me to connect to the command prompt on my computer. ...

POSIX Sockets: How to detect Ctrl-C sent over Telnet?

Short Question What's the right way to handle a Ctrl-C event sent over Telnet on the server side? Long Question After calling recv() on a socket, I'd like to handle some situations appropriately. One of them is to return a certain error code when Ctrl-C was received. What's the correct way to detect this? The following works, but it ju...

Colud not open connection to the host error in telnet

I am using telnet tk2smtp.msn.com 22 command from the command prompt to connect to the specific port on tk2smtp but its showing Could not open connection to the host error in command prompt. I installed Telnet Client in my machine . Let me know if there are any other things to be configured for this ...

how to send F2 key to remote host using python

i have to send F2 key to telnet host how do i send it using python...using getch() i found that this '<' used for F2 key but while sending its not working..i think there will be some way to send special function keys but i am not able to find it..if somebody knows please help me.thanks in advance ...

How to test an HTTP 301 redirect?

How can one easily test HTTP return codes, like, say, a 301 redirect? For example, if I want to "see what's going on", I can use telnet to do something like this: ... $ telnet nytimes.com 80 Trying 199.239.136.200... Connected to nytimes.com. Escape character is '^]'. GET / HTTP/1.0 (enter) (enter) HTTP/1.1 200 OK Server: Sun-...

telnet client connection stops receiveing data, server is still sending

I'm Working in an embedded linux environment. it launches a telnet daemon on startup which watches on a particular port and launches a program when a connection is received. i.e. telnetd -l /usr/local/bin/PROGA -p 1234 PROGA - will output some data at irregular intervals. When it is not outputting data, every X period of time it se...