telnet

How to create Telnet Client with Delphi 5

烂漫一生 提交于 2019-12-01 23:30:53
How do I create a Telnet Client inside of a Delphi 5 application? ICS (Internet Component Suite) by Francois Piette has got some useful components: http://www.overbyte.be/eng/products/ics.html It'll give you telnet protocol support, a terminal emulator and some stuff to help you scripting. It's easy to use, and it's all free. From the site: TTnCnx - TELNET client protocol support. TEmulVT - ANSI terminal emulation (like a TMemo but with ANSI escape sequences interpretation). TTnEmulVT - TELNET and ANSI terminal emulation combined into a single component. You can build a full telnet client

Send email from gmail using Telnet

∥☆過路亽.° 提交于 2019-12-01 23:30:30
I am working on windows and I have enabled telnet client In cmd prompt: $telnet smtp.gmail.com 587 220 mx.google.com ESMTP dk3sm50678627pbc.32 - gsmtp $Helo 250 mx.google.com at your service $ mail from: <myuser@gmail.com> 530 5.7.0 Must issue a STARTTLS command first. dk3sm50678627pbc.32 - gsmtp $ STARTTLS 220 2.0.0 Ready to start TLS $ mail from: C:\Users\{myuser}> Connection to host lost. Don't know What is the problem ? Can anyone help me out , how i can send emails from gmail server using telnet from command line > smtp.gmail.com requires TLS. The basic telnet client that comes with

How to create Telnet Client with Delphi 5

人盡茶涼 提交于 2019-12-01 22:12:41
问题 How do I create a Telnet Client inside of a Delphi 5 application? 回答1: ICS (Internet Component Suite) by Francois Piette has got some useful components: http://www.overbyte.be/eng/products/ics.html It'll give you telnet protocol support, a terminal emulator and some stuff to help you scripting. It's easy to use, and it's all free. From the site: TTnCnx - TELNET client protocol support. TEmulVT - ANSI terminal emulation (like a TMemo but with ANSI escape sequences interpretation). TTnEmulVT -

python line editing telnet server

拟墨画扇 提交于 2019-12-01 20:30:24
I am creating a server in python (what it is doing is irrelevant), but I would like it to accept telnet connections and provide a command line interface with line editing capabilities (tabcompletion, emacs/vi-mode, etc) and history per session. I have successfully created the telnet session, disabled line mode and enabled server echo. My initial thoughts were using readline but the python readline module seems to only work for a single session on stdin; and examining the underlying readline library that seems to be the way it works. What I would like to do however is to create an instance

Odd Behavior when Connecting to my Program

穿精又带淫゛_ 提交于 2019-12-01 19:47:41
I'm using Twisted to implement a server, of sorts. When I test it, the first line it receives is always strange: Starting Server... New connection from 192.168.1.140 192.168.1.140: ÿûÿû ÿûÿû'ÿýÿûÿý\NAME Blurr 192.168.1.140: \NAME Blurr (for both inputs I sent \NAME Blurr .) This is the code that prints the input: def lineReceived(self, line): print "{0}: {1}".format(self.name, line) I'm connecting via Putty through Telnet to a remote host. Is this a telnet protocol I'm missing, or what? When I use Unix's telnet program and connect locally, the first line is fine. You can find an explanation of

Python multiple telnet sessions

霸气de小男生 提交于 2019-12-01 19:45:35
I need to build a script to get the telnet output of as many hosts as possible and save them to a separate file for each host. The script should run as a daemon. For the moment i have a function that encapsulates the logic for do it for a single host with telnetlib , but i do not how to proceed. I planned to open a process ( multiprocessing.Process ) for each host but i suspect it's going to be a resource waste and it must to exist a better way :) def TelnetLogSaver(hostname,ip,filename): # open files and telnet sessions f = open(filename,"a") tn = telnetlib.Telnet(ip,23,TIMEOUT) # login e =

Cross platform solution for automating ncurses-type telnet sessions

旧城冷巷雨未停 提交于 2019-12-01 19:28:33
Background Part of my work in networking and telco involves automating telnet sessions when legacy hardware doesn't offer easy solutions in other interfaces. Many older pieces of equipment can only be accessed via craft ports (RS-232 serial ports), SNMP, or telnet. Sometimes telnet is the only way to access specific information, however telnet is designed as a human interface and thus requires screen scraping. In addition, there is also the issue of scraping screens where only portions are updated in order to save bandwidth (see ncurses ). In my work I have used ActiveState Expect and the

How To Automate A Telnet Session Without SendKeys

孤街醉人 提交于 2019-12-01 17:31:44
I would like to telnet into my router, and I want to automate it so I do not have to login all the time, as I do it several times a day. Is there another method apart from sendkeys in VBS? This is because that physically types, so the telnet window needs to be active, with is rather annoying. I tried a batch file, but I am getting really strange results. Here it is: telnet 192.168.1.254 REM This is the router IP ping 255.255.255.255 -n 1 -w 1000 > nul REM This is to wait for the router if its being slow George REM This is the username, as it prompts as soon as it logs in ping 255.255.255.255

Telnet over a socket with GCDAsyncSocket

戏子无情 提交于 2019-12-01 17:26:50
I'm trying to connect to a Cisco C40 codec via telnet from objective c. When using the terminal on my computer I get: Password: However when doing a socket connection there are telnet negotiations that need to be made. Which I am but for some reason I cannot get to the "Password:" prompt above. - (void)socket:(GCDAsyncSocket *)sock didReadData:(NSData *)data withTag:(long)tag { NSLog(@"RECEIVE BUFFER %@",data); //store read bytes to rawData self.rawData = [[NSMutableData alloc] initWithData:data]; //cast bytes const uint8_t *bytes = [self.rawData bytes]; //go through rawdata format and save it

centos7安装telnet服务

点点圈 提交于 2019-12-01 17:23:28
1. CentOS7.0 telnet-server 启动的问题。 解决方法: ①、先检查CentOS7.0是否已经安装以下两个安装包:telnet-server、xinetd。命令如下: rpm -qa telnet-server rpm -qa xinetd 如果没有安装,则先安装。安装命令: [root @master ~]# yum list |grep telnet telnet-server.x86_64 1:0.17-59.el7 @base telnet.x86_64 1:0.17-59.el7 base [root @master ~]# yum install telnet-server.x86_64 [root @master ~]# yum install telnet.x86_64 [root @master ~]# yum list |grep xinetd xinetd.x86_64 2:2.3.15-12.el7 @base [root@master ~]# yum install xinetd.x86_64 安装完成后,将xinetd服务加入开机自启动: systemctl enable xinetd.service 将telnet服务加入开机自启动: systemctl enable telnet.socket 最后,启动以上两个服务即可: