Giter Site home page Giter Site logo

tar_pyt's Introduction

tar_pyt

SSH tarpit implemented in Python 3.7 with asyncio

Essentially, this is a functional copy of endlessh by Chris Wellons, as suggested in his blog on that project. Asyncio is particularly well suited for this application, and it makes this program much simpler to implement than its C counterpart without sacrificing memory performance. The idea is to change your SSH port and leave tar_pyt runnning on the default port 22, potentially trapping malicious connections and wasteing a small part of their resources. I highly suggest you vist endlessh and the aforementioned blog for a more in-depth overview.

Usage

Run with python3.7 tar_pyt, usage information is printed with -h or -help.

Usage: endlessh [-h] [-d MS] [-f CONFIG] [-l LEN] [-m LIMIT] [-p PORT] [-v]
  -d INT    Message millisecond delay [10000]
  -f        Set and load config file [NOT YET IMPLEMENTED]
  -h        Print this help message and exit
  -l INT    Maximum banner line length (3-255) [32]
  -m INT    Maximum number of clients [4096]
  -p INT    Listening port [2222]
  -v        Print diagnostics to standard output

Argument order does not matter and the configuration functionality is yet to be implemented. By default there is no log output, and it is enabled with -v and sent to standard output.

In order to list active connections and thier statitics, type log while the program is running.

Keyboard interrupts shut down the program, type CTRL + C.

Potential Issues

This must be run with python 3.7.

Usage on port 22 may require additional privledges depending on system and SSH configuration.

Future Additions

Add configuration file support.

Potentially add primitive geolocaction for client connections.

potentially add HTTP serer support.

tar_pyt's People

Contributors

zanair avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.