telnet

How to process the backspace terminal control character in Java? [closed]

本小妞迷上赌 提交于 2019-12-13 09:53:54
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I am coding a basic telnet server in Java and I would like to process the backspace terminal control character denoted by '\b'. The backspace character deletes/removes the preceding character in the string. I am currently using the example method below to successfully achieve this but does anyone know of a

To find a particular string using telnet through a server side C# Console

偶尔善良 提交于 2019-12-13 09:07:35
问题 I have written this code to check for a particular string from a file. Right now it checks for the string. But how can I send the reply back saying "it is present" to the client? The server side program should have all the codes. It also accepts multiple clients. The Procedure of this program is as follows Basically if a client wants to check if there's a particular string(word) in a file, he connects this code through a port on telnet. He types in the strings he wants to search(on telnet)

Telnet server wont execute my command sent from a socket

杀马特。学长 韩版系。学妹 提交于 2019-12-13 08:17:36
问题 Hi im currently working on a program that sends a command to the telnet server. Here is my code: int _tmain(int argc, _TCHAR* argv[]) { WSAData wsaData; WSAStartup(MAKEWORD(2, 2), &wsaData); addrinfo hints; ZeroMemory(&hints, sizeof(hints)); hints.ai_family = AF_INET; hints.ai_socktype = SOCK_STREAM; hints.ai_protocol = IPPROTO_TCP; addrinfo* result; int res = getaddrinfo("192.168.56.101", "23", &hints, &result); if (res) { std::cout << "failed to getaddrinfo" << std::endl; } SOCKET sock =

Couldn't retrieve all the memcache keys via telnet client

时光怂恿深爱的人放手 提交于 2019-12-13 07:18:53
问题 I want to list all the keys stored in the memcached server. I googled for the same, I got some python/php scripts that can list the same. I tested it but all went failed and none gave me full keys. I can see thousands of keys using telnet command stats items I used perl script that uses telnet to list keys, but that got failed too. I mean that script is listing keys but not all of them. Do I need to reconfigure telnet ? Is there any other way ? 回答1: memcache does not provide an api to

Telnet - Connection to host lost - on port 1099 in local machine

落花浮王杯 提交于 2019-12-13 07:17:05
问题 My jBoss server is running on the port 1099. While I am trying to telnet the port from the local machine, getting the "Connection to host lost" message. I was doing telnet 192.168.200.150 1099 Its showing some other port as 8083. What this error message means? 回答1: My jBoss server is running on the port 1099. No. Your JBoss server is almost certainly running on port 80 or port 8080. Port 1099 is its port for its implementation of the RMI Registry, not its primary port. While I am trying to

Can't figure out how to receive http requests using lighttpd

醉酒当歌 提交于 2019-12-13 06:52:48
问题 I have a simple lighttpd web server running off my router. In it's .conf file I know I need to set $HTTP["querystring"] =~ "cams=on" { telnet to turn on cams via managed poe switch } The issue I am having is trying to figure out how to actually get it to run a script that sends telnet commands to my poe switch. I've never done anything like this and I'm unable to find any help for anyone not angry familiar with web serving. 回答1: There are multiple ways to do this with lighttpd. One of the

C# cmd prompt cannot see telnet.exe

与世无争的帅哥 提交于 2019-12-13 06:51:55
问题 I used C# with a console program to create a new cmd process, did not redirect stdin or stdout, so I could type into the command line from here. (I was having trouble using telnet from there, so this step was just an investigation.) Able to type into the window and receive output. When I switched to c:Windows\system32, typing dir te*.exe shows nothing. In another command prompt I created directly, I see the file (telnet.exe). Any suggestions about what is wrong? { ProcessStartInfo startInfo =

linux 安装Telnet命令

坚强是说给别人听的谎言 提交于 2019-12-13 06:14:24
1、先检查CentOS7.2是否已经安装以下两个安装包:telnet-server、xinetd。命令如下: rpm -qa telnet-server rpm -qa xinetd 如果没有安装,则先安装。安装命令: 2安装telnet yum list |grep telnet yum install telnet-server.x86_64 yum install telnet.x86_64 3安装xinetd 这里安装xinetd yum list |grep xinetd yum install xinetd.x86_64 安装完成后,将xinetd服务加入开机自启动: systemctl enable xinetd.service 将telnet服务加入开机自启动: systemctl enable telnet.socket 4.重启服务 最后,启动以上两个服务即可: 由于telnet服务也是由xinetd守护的,所以安装完telnet-server,要启动telnet服务就必须重新启动xinetd 。 systemctl start telnet.socket systemctl start xinetd 来源: CSDN 作者: fww445231202 链接: https://blog.csdn.net/fww445231202/article/details

Sending Control-N and <CR><LF> via telnet using C#

有些话、适合烂在心里 提交于 2019-12-13 05:35:52
问题 I am currently using minimalistic Telnet from CodeProject and am having trouble sending the correct output to my telnet device. Essentially I am trying to automate the gathering of config data from Netopia DSL modems using this process. I am able to read the welcome screen of the netopia telnet interface just fine however I can not get any further. The process manually goes like this: 1) Telnet to device ip 2) A welcome screen is displayed. 3) While on the welcome screen, press Control-N 4)

ruby telnet to windows 2008 ,execute command error

和自甴很熟 提交于 2019-12-13 04:58:58
问题 I tried to use ruby Net::Telnet to connect windows 2008 and execute some commands. But it failed. if execute tn = Net::Telnet::new("Host"=>"walnutserver","Port"=>2300,"Prompt"=> /C:.*>/) tn.login("user","pass") tn.cmd("dir") tn.cmd("dir") the first tn.cmd("dir") is success but the second one throws exceptions.And then subsequent commands all failed. After experimenting,I found that any windows command will cause this. Exceptions: Timeout::Error: timed out while waiting for more data from c: