telnet

Error no module named curses

老子叫甜甜 提交于 2019-12-09 15:06:57
问题 When I try to run the following code... from telnetsrvlib import * if __name__ == '__main__': "Testing - Accept a single connection" class TNS(SocketServer.TCPServer): allow_reuse_address = True class TNH(TelnetHandler): def cmdECHO(self, params): """ [<arg> ...] Echo parameters Echo command line parameters back to user, one per line. """ self.writeline("Parameters:") for item in params: self.writeline("\t%s" % item) def cmdTIME(self, params): """ Print Time Added by dilbert """ self

How do I use fsockopen() to open a Telnet connection with a password?

旧街凉风 提交于 2019-12-09 03:23:22
问题 I'd like to access a camera through it's Telnet capability. The problem is, it has Password-protection. This is no problem when doing it via Terminal, as I just use telnet 10.30.blah.blah then enter my password when prompted. But in php, I don't see the opportunity to input a password. $con = fsockopen("10.30.blah.blah", 25); $msg = "camera move left"; fwrite($con, $msg); Anybody have any ideas? UPDATE : I tried just using fputs to output the password as @Cfreak said, but still to no avail.

Dstributed Erlang, networking, echo server

给你一囗甜甜゛ 提交于 2019-12-09 01:28:27
so my year long project involves doing some pretty nasty stuff with Erlang. I am just starting to get to grips with it. I have very limited knowledge of networking and need to ask how/why something doesn't work. I followed the code from this guide, http://20bits.com/article/network-programming-in-erlang , that provides Erlang code for a server to echo back text that is fed into it The instructions to run it is to start the erlang code, he reccomends port 8888, and then telnet to the localhost and voila, access to the echo server My question is, would it be easy for me to run this server on my

How to send a POST request through telnet

时间秒杀一切 提交于 2019-12-08 17:51:35
问题 I want to know how to send a POST request to a server (e.g. Google Search). I already know how to send a GET request, For example: GET http://www.google.com/ I tried doing it like this: POST /wikipedia or POST wikipedia or POST /wikipedia or POST Search: wikipedia Anyone know how to send a POST request through telnet/cmd/batch? 回答1: Of course you can, don't listen to npocmaka! Telnet just opens a TCP connection to a port in a server and does nothing else. So, if you send the right commands

Fetch imap body message by telnet

不想你离开。 提交于 2019-12-08 13:48:14
问题 I know that to get all message body, this is the command: [imap_code] UID FETCH [uid] BODY.PEEK[TEXT] Thus I get the entire message body. But I need to exclude the part of the attachments. I want only message wrote from sender, text and/or html. Is there a way? This is a full raw html mail with attachment http://pastebin.com/FMEQdLM3 I would like to get only <div dir="ltr">This is the message body<div><ul><li>one</li><li>two</li></ul></div></div> or plain text if there isn't html version 回答1:

Telnet Blocking C# TCP Server

允我心安 提交于 2019-12-08 10:00:44
问题 I am writing a TCP server in C#, and have run into a strange and potentially a security issue as well. My basic arch for accepting new connections is as follows: A C# Socket listening on a port, using the AcceptAsync method to accept incoming connections. Spinning off accepted connections using the ThreadPool for finishing the accept. Everything works quite well, however everything grinds to a halt if someone telnets into the port. Symptoms: If I telnet into my server and do not send any data

Why Do I Get This Error Message When Using Telnet In Python Shell [duplicate]

半城伤御伤魂 提交于 2019-12-08 08:43:08
问题 This question already has answers here : Telnet.read.until function doesn't work (4 answers) Closed 5 years ago . I am having a problem because I am trying to connect to my raspberry pi using telnet but when it comes to the part where it is reading for the username entry I get an error which I have pasted bellow. #IMPORTS from tkinter import * import time import telnetlib import sys import getpass import tkinter.messagebox #TELNET user = input("Please Enter Your Username: ") time.sleep(0.4)

Checking if port is open [closed]

折月煮酒 提交于 2019-12-08 08:03:42
问题 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 7 years ago . I want to see if port 1878 is open on my Windows Server 2008 R2. I use VPS server, so i talked with the VPS servers company and asked them to open all ports. When i'm running telnet 172.0.0.1 1878 i get that the port is not reachable. Is there another way to see if the port is open or open it? 回答1: Use may use

Check remote port access using Delphi - Telnet style

倾然丶 夕夏残阳落幕 提交于 2019-12-08 07:59:58
问题 I deploy my application in environments heavily stricken with firewalls. Frequently I find myself using Telnet to check if a port is open and accessible in the network. Now I would like to implement an equivalent functionality of the command, Telnet [domainname or ip] [port] , in Delphi. Is it adequate that I just attempt to open and close a TCP/IP socket without sending or receiving any data? Is there any risk that I might crash the arbitrary application/service listening on the other end?

Ruby script to telnet switch

可紊 提交于 2019-12-08 07:45:10
问题 I've created the following ruby script that telnet to Cisco devices, that telnet to Cisco devices and run command 'show int status err'. require 'net/telnet' C3550_20_PterraEst = "192.168.244.20" #Enter the IP address here USER = "user" #Enter username here PASS = "password" #Enter password here ENABLE = "password" #Enter enable password here print "Selezionare il piano [0-1-2-All]: "; # get the input from the console, val1 = gets; tn = Net::Telnet::new("Host" => C3550_20_PterraEst, "Timeout"