Code Monkey home page Code Monkey logo

libtelnetsrv's People

Contributors

czardoz avatar gooseyard avatar ianepperson avatar kjoconnor avatar yakxxx avatar

Watchers

 avatar  avatar

libtelnetsrv's Issues

Error while starting the server

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

Terminal cannot be setup

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.

Exception when any data is sent after connecting to the 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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.