czardoz / libtelnetsrv Goto Github PK
View Code? Open in Web Editor NEWA Python library to create Telnet servers
License: GNU Lesser General Public License v3.0
A Python library to create Telnet servers
License: GNU Lesser General Public License v3.0
When using Python2, the server fails to start with this error:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/czardoz/git/libtelnetsrv/libtelnetsrv/paramiko_ssh.py", line 240, in start_pty_request
self.pty_handler(request, self.client_address, self.tcp_server)
File "/home/czardoz/git/libtelnetsrv/libtelnetsrv/paramiko_ssh.py", line 75, in __init__
super(MixedPtyHandler, self).__init__(*args)
File "/home/czardoz/git/libtelnetsrv/libtelnetsrv/paramiko_ssh.py", line 33, in __init__
super(TelnetToPtyHandler, self).__init__(*args)
TypeError: object.__init__() takes no parameters
When running libtelnetsrv, it fails if the TERM
environment variable is set to xterm
. This needs to be investigated and fixed.
A quick and dirty workaround is to not pass this information to the curses
library.
Traceback (most recent call last):
File "/usr/lib/python3.4/threading.py", line 920, in _bootstrap_inner
self.run()
File "/usr/lib/python3.4/threading.py", line 868, in run
self._target(*self._args, **self._kwargs)
File "/home/czardoz/git/libtelnetsrv/libtelnetsrv/paramiko_ssh.py", line 240, in start_pty_request
self.pty_handler(request, self.client_address, self.tcp_server)
File "/home/czardoz/git/libtelnetsrv/libtelnetsrv/paramiko_ssh.py", line 75, in __init__
super(MixedPtyHandler, self).__init__(*args)
File "/home/czardoz/git/libtelnetsrv/libtelnetsrv/paramiko_ssh.py", line 33, in __init__
super(TelnetToPtyHandler, self).__init__(*args)
File "/home/czardoz/git/libtelnetsrv/libtelnetsrv/threaded.py", line 21, in __init__
TelnetHandlerBase.__init__(self, request, client_address, server)
File "/home/czardoz/git/libtelnetsrv/libtelnetsrv/main.py", line 484, in __init__
socketserver.BaseRequestHandler.__init__(self, request, client_address, server)
File "/usr/lib/python3.4/socketserver.py", line 673, in __init__
self.handle()
File "/home/czardoz/git/libtelnetsrv/libtelnetsrv/main.py", line 1034, in handle
raw_input = self.readline(prompt=self.PROMPT).strip()
File "/home/czardoz/git/libtelnetsrv/libtelnetsrv/main.py", line 758, in readline
if ord(c) < 32:
TypeError: ord() expected string of length 1, but int found
This is because of incompatibilities in Python 2 and 3. In case of Python3, the variable is already an int
because the container is a bytes
object.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.