Code Monkey home page Code Monkey logo

openssh-portable's Introduction

Portable OpenSSH Honeypot version by enohka

This modification of OpenSSH will log all password login attempts in a json like format at:

/var/log/hp

A sample log file at this location looks like this:

hp_1643514716.log

{ "ipaddress": "84.171.**.**", "username": "root", "password": "wrongpassword", "time": 1643514716 }

Due to the nature of unix timestamps it is possible that multible login attempts occour within the same milisecond thus it will log more then one attempt into the same file.

Besides the additional logging, all functionality of OpenSSH stays the same, It will still be possible to login via SSH.

Building from git

If building from git, you'll need autoconf installed to build the configure script. The following commands will check out and build portable OpenSSH from git:

git clone https://github.com/enohka/openssh-portable 
cd openssh-portable
autoreconf
./configure
make

Installation

I have installed my honeypot on a plain debian 11.2 (bullseye) installation with ssh server option

After building run these commands

# The portable is looking at /usr/local/etc for sshd_conf and the like so we are creating a symlink
sn -l /etc/ssh /usr/local/etc

systemctl stop sshd
# Copy the custom built sshd to the original location
cp <path to your sshd binary> /usr/sbin/sshd
systemctl start sshd

openssh-portable's People

Contributors

djmdjm avatar daztucker avatar mouring avatar mfriedl avatar jonathangray avatar ischwarze avatar djm-google avatar botovq avatar github-cygwin avatar rubenk avatar bluhm avatar 4a6f656c avatar nkadel avatar tobhe avatar klemensn avatar is-consulting avatar jakuje avatar sebastianas avatar hogand avatar hallexander avatar semarie avatar jcourreges avatar stspdotname avatar sthen avatar martelletto avatar omoerbeek avatar natano avatar fobser avatar cjeker avatar sebastianbenoit 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.