sshhipot: High-interaction MitM SSH honeypot – Penetration Testing

SSHHiPot

High-interaction SSH honeypot (ok, it’s really a logging ssh proxy).

Still more or less a work-in-progress. Feel free to go install this repository if you’d like to try it. Run it with -h to see more options. In particular, logging is kinda rough.

One of these days there’ll be better documentation, really.

The general idea is that sshlowpot runs somewhere between the attacker and the real SSH server such that the attacker logs into the honeypot, and the honeypot logs into the server.

Installation

go install http://ift.tt/2bBVyBy

If you don’t have go available, feel free to ask me (or someone who does) for compiled binaries. They can be made for a bunch of different platforms.

Config

Most of the options should be useable as-is. The ones I expect will need to be configured:

Option

Use

-ck

SSH identity file (i.e. id_rsa) to use to authenticate to the server.

-cs

Server’s address. Can be loopback, even.

-cu

Ok, maybe root wasn’t a great default. test is probably better.

-p

Try 123456 or something more common than hunter2. Also see the -pf flag.

-sf

Fingerprint of real server’s Host Key (retreivable with `ssh-keyscan hostname 2>/dev/null

Please note by default the server listens on port 2222. You’ll have to use pf or iptables or whatever other firewall to redirect the port. It’s probably a really bad idea to run it as root. Don’t do that.

There is a general log which goes to stdout. More granular logs go in a directory named conns by default (-d flag). At the moment, the granular logs also go to stderr.

Source: Github

The post sshhipot: High-interaction MitM SSH honeypot appeared first on Penetration Testing. http://ift.tt/2r1IYDU http://ift.tt/2aM8QhC

Anúncios

Deixe um comentário

Preencha os seus dados abaixo ou clique em um ícone para log in:

Logotipo do WordPress.com

Você está comentando utilizando sua conta WordPress.com. Sair / Alterar )

Imagem do Twitter

Você está comentando utilizando sua conta Twitter. Sair / Alterar )

Foto do Facebook

Você está comentando utilizando sua conta Facebook. Sair / Alterar )

Foto do Google+

Você está comentando utilizando sua conta Google+. Sair / Alterar )

Conectando a %s