Giter Site home page Giter Site logo

ansible_ssh-tarpit's Introduction

ansible_ssh-tarpit

Simple Ansible role and sample playbook to deploy a ssh-tarpit-node (https://github.com/Snawoot/ssh-tarpit). Ssh-tarpit is a python3-implementation of a ssh-server, which sends data to clients slowly and endlessly, primarily to trap bots.

Most things are self explanatory, adjust the daemon-opts according to your needs in roles/ssh-tarpit/default/main.yml and the host in the example playbook.

Options:

tarpit_port Port to listen on
tarpit_ip IP to bind to
tarpit_log logfile location.
tarpit_interval Interval in seconds between every chunk of information to the client
tarpit_loglevel info contains the connection attemtps (debug,info,warn,error,fatal)
tarpit_daemon_opts crafted startup command

Limitations:

ssh-tarpit currently does not understand the Signal HUP, so on logrotate the Service gets restarted and trapped clients in this moment are getting released. This can be avoided, if you do not use logrotate, and use journalctl exclusively (see Snawoot/ssh-tarpit#4)

Compatibility:

Testet against Ubuntu 20.04 (yes, I know this will most likely not run on any distribution, maybe you need to tweak the installation of PIP3 beforehand).

ansible_ssh-tarpit's People

Contributors

zeus86 avatar

Stargazers

 avatar  avatar

Watchers

 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.