telnet

How to access c# sockets server from telnet or SSH?

I've created a very simple sockets server in C# that, when given a number, returns the number doubled. I'm using TCPListener. This server currently works with a simple Winform client I put together, using TCPClient. I tried to connect to the server with Absolute Telnet while it was running. It connects, however the telnet program doe...

Passing Socket From C# to NetFoss

Hello everyone, NetFoss requires you to run it with a command line similar to this: nf.bat /n[#] /h[#] [command line] where /n[#] is a node number and /h[#] is an OS socket handle. I want to write something in C# very similar to what a telnet BBS would do when it runs door games. It should accept the client socket, gather a bit of inf...

Telnet Library for C++

Is there a telnet library that I can use with c++ (for Linux)? I would like to telnet to a remote device, run some commands, parse the o/p and present the results. ...

Windows telnet + controlling local echo from remote

Hello, I have the same problem as http://stackoverflow.com/questions/1098503/how-to-unsupress-local-echo but none of the solutions in that thread are desirable. Specifically, I'm using telnet for communication with a simply Ruby program that requires authentication to connect remotely. When the user is prompted for a password I want to ...

Really weird HTTP client using TcpClient in C#

I am implementing a really simple HTTP Client that just connects to a web server and gets it's default homepage. Here it is and it works nice: using System; using System.Net.Sockets; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { TcpClient tc = new TcpClient(); ...

How do i change from unix to linux for connecting via c# (With telnet)?

Hola, I have code which has connection to a unix server: sample below: UnixTelnetConnection.Login(_server, _username, _password, FCART.Properties.Settings.Default.CleartoolPrompt.ToString()); However, what needs to be different if its for linux? Does it have to be different? Vidu ...

Socket programming and telnet with VB.net

I'm writing a GUI-based app in VB.net that talks to a LambdaMOO server via telnet, sends commands to display the object hierarchy, then parses the output and creates a visual representation of the object hierarchy. So my question is: is there some kind of "telnet client" class for .NET to simplify the sending and receiving of data, or d...

Telnet automation / scripting

I have already checked This Question but could not find what i'm looking for. I am running Windows (the client), and the server is a legacy mainframe type server. Basically I need to write a script, python code or whatever, to send some know commands to the server via telnet, and preferable capture the output. Then return when done. ...

PHP Sockets - Not Reading Output

Hi all, I'm having some problems reading from a socket. Basically, I can connect to the machine without an error. I can write to the machine without an error. I cannot seem to read the output. Here is what I'm doing: $header1 = chr(0xFF).chr(0xFB).chr(0x1F).chr(0xFF).chr(0xFB).chr(0x20).chr(0xFF).chr(0xFB).chr(0x18).chr(0xFF).chr(0xFB)...

Using conditional statements inside 'expect'

I need to automate logging into a TELNET session using expect, but I need to take care of multiple passwords for the same username. Here's the flow I need to create: Open TELNET session to an IP Send user-name Send password Wrong password? Send the same user-name again, then a different password Should have successfully logged-in at t...

telnet to different IPs and run commands

I'm not sure if this is possible or not. What I'm looking for is a way to tell telnet to use a certain IP address to log into and then run commands where the commands change based on a user's MAC address. Basically it would be: tell telnet to use x.x.x.x as the IP to log into and put in the correct username and password tell telnet t...

php telnet no response from script

I'm running PHP5 on Windows XP Professional. I'm trying to write a telnet php script which simply connects, sends a text string and grabs the response buffer and outputs it. I'm using the telnet class file from here: http://cvs.adfinis.ch/cvs.php/phpStreamcast/telnet.class.php which i found in another thread. <?php error_reporti...

Memcache stats cachedump

We have found that with our memcache some keys tend to be lost. To debug, I am using the command stats cachedump <slab> <limit> The output is something like this : ITEM key-stuff-123-mlgtr-tmura [58 b; 1256946310 s] ITEM key-stuff-123-mlgtr-isuca [58 b; 1256946310 s] ITEM key-stuff-123-mlgtr-arpan [58 b; 1256946310 s] ITEM key-stuff-12...

Simple telnet example in LIBCURL - C++

I need to fing simple TELNET example in LIBCURL (curl.haxx.se/libcurl) (C++) I searched over this site, but I don't found any simple example. I need only to connect to TELNET, authenticate, and send message. Thanks ...

Telnet server -> backspace/delete not working

Hi, I'm implementing a simple proof of concept Telnet server in C# and telnet to it via the windows built in telnet client. I echo all non IAC data back to the client. However, I can't figure out how to get backspace/delete to work correctly. I tried several combinations acting on 'BS' from the telnet client: 'BS' (moves cursor bac...

Telnet to google mail server

I want to use telnet to google mail server on linux. I want to send mail using SMTP. But it is not able to do so. I am using this command. telnet alt4.gmail-smtp-in.l.google.com 25 But it says Trying 209.85.220.19... After some time, it gives time out. Does anyone knows how to do it? ...

How to Create a Telnet Interface for an Application

I have come across a couple of proprietary applications on Linux platform which are administered via telnet. Remote telnet is not enabled but on the host you do a telnet session. You get an interface where you enter commands to make the application work. I was wondering how a telnet interface is built for any particular application. Not ...

How can I run a Python program over telnet?

How can I run a Python program so it outputs its STDOUT and inputs its STDIN to/from a remote telnet client? All the program does is print out text then wait for raw_input(), repeatedly. I want a remote user to use it without needing shell access. It can be single threaded/single user. ...

SSH Through Telnet Connection

Is it possible to connect to an SSH server through a Telnet connection? I am trying to connect to an SSH server from Flash, but there is no OpenSSH implementation available in ActionScript. I can successfully connect to a Telnet server and execute commands. I am not able to make any changes on the machine with the SSH server. The machi...

Bash script to connect to open port, send request, read response

Hi, I have a service running on localhost:port. In a bash script I want to connect to this port, send a request, and read back the response - essentially automating a telnet session. What's the best way of doing this? Am looking at /dev/tcp, netcat or telnet/expect. Thanks ...