telnet

Windows telnet + controlling local echo from remote

 ̄綄美尐妖づ 提交于 2020-01-07 06:55:12
问题 I have the same problem as 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 suppress local echo, so I send the password prompt followed by IAC DONT ECHO, then send IAC DO ECHO after receiving a newline. This method appears to work fine for most telnet clients, but when using windows

How to get the Java stream for ExpectIt to drive Telnet

不想你离开。 提交于 2020-01-06 16:53:25
问题 How do I get the Java stream for telnet to use with the ExpectIt? Instead of using a Java library, such as Apache Telnet as below, using the actual Telnet client on Linux. This is in the context of the man page from expect: Expect is a program that "talks" to other interactive programs according to a script. followup question with a much more narrow scope to a previous, vague, overly broad question where the following comment was made: The library, as all the other Java libraries, uses

can we exit without error from telnet with MozRepl?

天涯浪子 提交于 2020-01-06 15:51:09
问题 based on this answer, I am trying to figure out a way to exit from telnet and it return 0 these wont work: (echo -e "repl.quit()";sleep 1) |telnet localhost 4242;echo $? (echo -e "\029";sleep 1;echo "q";sleep 1) |telnet localhost 4242;echo $? (echo -e "\c]";sleep 1;echo "q";sleep 1) |telnet localhost 4242;echo $? (echo -e "\e]";sleep 1;echo "q";sleep 1) |telnet localhost 4242;echo $? (echo -e "\E]";sleep 1;echo "q";sleep 1) |telnet localhost 4242;echo $? The problem is: I am UNABLE to

Telnet IAC commands (NSStream socket)

落爺英雄遲暮 提交于 2020-01-06 02:51:06
问题 I've made a NSStream socket to connect to a telnet server. Actually, it can connect fine to the server; I got an inputStream with the "first words" of the server, but I don't understand it. I'm looking for some explanations about the telnet IAC commands. Here is my code to receive from the server: case NSStreamEventHasBytesAvailable: if (theStream == inputStream) { uint8_t buffer[1024]; int len; while ([inputStream hasBytesAvailable]) { len = [inputStream read:buffer maxLength:sizeof(buffer)]

What is the final RFC for telnet protocol

时光总嘲笑我的痴心妄想 提交于 2020-01-05 10:10:46
问题 What's the actual TELNET specification? I found RFC 854 which is very old. 回答1: It looks like RFC 5198 is probably current. IF you look at the top of the RFC you referenced, there is a reference to RFC 5198 with a note that 5198 updates 854. 回答2: 854 is the last RFC for the protocol itself. NIC 15373 and IETF STD 8 are normative. Several RFCs have proposed extensions eg RFC 1123, telnet over TCP. The most recent to specifically extend telnet was 4777, in 2006. 回答3: The basic TELNET protocol

有IE,想黑就黑!

拈花ヽ惹草 提交于 2020-01-05 10:04:20
  简单点说,rmtSvc是一款集FTP、Telnet服务、Proxy服务以及vIDC服务的远程控制工具。用户可以通过此款工具方便地对远程计算机进行控制。此工具和其它远程控制工具不同,它采用B/S结构(无需安装),用户可通过浏览器进行远程控制(我们的口号是:有IE,想黑就黑!)。   下面,就以入侵控制的实例来为大家分别介绍rmtSvc常用功能的使用方法及技巧。解压下载后的压缩包,先别急着让rmtSvc.exe在目标机运行(未加壳的程序会遭到杀毒软件的查杀),笔者先告诉大家如何给源程序加壳从而避免被查杀吧(不然就没得玩了-_-|)。运行该软件,进入“选项”菜单,勾选“保留额外数据”,然后“打开文件”,选择源程序rmtSvc.exe后就会自动压缩了。   特别提醒:压缩后的rmtSvc.exe不会被杀毒软件查杀,而且文件体积会减少近50%(经过金山毒霸6增强版、KV2005、诺顿2005测试),如果想进一步增强隐蔽性,请参考2004年第50期G9版《披着羊皮的狼——将Radmin改造为百分百木马》一文介绍的“超级捆绑”软件的使用方法。   武装rmtSvc,“暗杀”杀毒软件   1.打开浏览器输入http://IP:port(其中IP为被控机的IP地址,port为rmtSvc的服务端口,默认为7778)。连接成功后将会看到如图1的欢迎登录画面,输入访问密码(默认为123456)

Fetched results in imap2 to display in console

北战南征 提交于 2020-01-05 07:45:21
问题 I have made a script that connects to a imap server and then sends different messages,in order ot get the first mail[i only need the first one]. When I run the script I get no results but when i type the same last command in the terminal I get a result. Any idea how to fix this? MY script: #!/usr/bin/expect #!/bin/bash set password 'ent' spawn telnet host imap2 send "1 login picard enterprise\r" send "2 list '' '*'\r" expect "*" send "3 EXAMINE INBOX\r" send "4 fetch 1 all\r" send "5 fetch 1

Heroku and Twisted

偶尔善良 提交于 2020-01-04 23:09:49
问题 I am trying to learn Twisted, a Python framework, and I want to put a basic application online that, when it receive a message sends it back. I decided to use Heroku to host it, and I followed the instructions on their docs. import os from twisted.internet import protocol, reactor class Echo(protocol.Protocol): def dataReceived(self, data): self.transport.write(data) class EchoFactory(protocol.Factory): def buildProtocol(self, addr): return Echo() port = int(os.environ.get('PORT', 5000))

How to automate interactive telnet commands?

青春壹個敷衍的年華 提交于 2020-01-02 18:54:51
问题 I would like to query a telnet server on port 105. What I have to do currently is start an interactive session and enter the commands later one by one. Since I already know the commands, I would like to automate this process and fetch the results without any manual intervention. When I try to use pipe to push commands at the time of logging in, this doesn't work. Any help is highly appreciated. 回答1: You are probably looking for a tool like expect. 回答2: Since you do not say what OS you use,

【Mail】telnet收发邮件过程

淺唱寂寞╮ 提交于 2020-01-01 21:01:06
telnet发送邮件   关于电子邮件的基础知识请参照: 【Mail】邮件的基础知识和原理   smtp协议是一个简单的邮件传输协议,利用它我们可以将邮件发送给别人,这里将通过telnet这个程序利用smtp协议从网易向gmail发送一封邮件   基本步骤如下:     1、使用telnet连接smtp服务器     2、发送一个helo或者ehlo指令     3、验证用户(使用邮件名登陆,用户名和密码要采用base64编码)     4、使用mail命令准备发送邮件     5、使用rcpt命令指定对方邮箱地址     6、使用data命令开始输入内容     7、输入test或者hello world类似字样(即邮件内容)     8、输入邮件内容结束标志.     9、退出smtp服务器   在win环境下,开始 --->运行 --->cmd ,打开命令运行窗口       在命令窗口内,输入一下指令命令,注意用户名和密码要采用base64编码,可以在 http://www.bejson.com/enc/base64/ 网站上进行转码。          发送成功过之后,登录网页邮箱查看      SMTP协议的返回码 telnet接收邮件   POP3 协议类似于 SMTP 协议,它定义了一些命令用于管理邮箱等具体操作,为了能够在 Windows 下使用 telnet