Giter Club home page Giter Club logo

twisted-honeypots's Introduction

twisted-honeypots

SSH, FTP and Telnet honeypot services based on the Twisted engine for Python 3. All credentials are stored on a local MySQL database.

This will create easily (and painlessly) very good dictionaries to use for pentesting.

Install

$ git clone https://github.com/lanjelot/twisted-honeypots /opt/twisted-honeypots
$ cd /opt/twisted-honeypots
$ sudo ./install.sh && ./setup-db.sh

Usage

To start/stop the services:

$ sudo ./start.sh
$ sudo ./stop.sh

To monitor the current execution:

$ ./monitor.sh

preview

To extract the login/passwords in a wordlist sorted by best popularity:

$ source vars.sh
# logins
$ echo "select distinct login from pot group by login order by count(login) desc" | mysql -rs -u${MYSQL_USER} -p${MYSQL_PWD} ${MYSQL_DB}
# passwords
$ echo "select distinct password from pot group by password order by count(password) desc" | mysql -rs -u${MYSQL_USER} -p${MYSQL_PWD} ${MYSQL_DB}

twisted-honeypots's People

Contributors

hugsy avatar lanjelot avatar yanhuijessica avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

twisted-honeypots's Issues

Failed to SSH into the honeypot.

# /var/log/twistd-pot.log
2019-12-28T11:05:01+0800 [sshpot.PotSSHFactory] disabling non-fixed-group key exchange algorithms because we cannot find moduli file
2019-12-28T11:05:01+0800 [PotSSHServerTransport,0,10.0.2.15] Client version: b'SSH-2.0-OpenSSH_8.0p1 Debian-4'
2019-12-28T11:05:01+0800 [PotSSHServerTransport,0,10.0.2.15] Disconnecting with error, code 3
	reason: b"couldn't match all kex parts"
2019-12-28T11:05:01+0800 [PotSSHServerTransport,0,10.0.2.15] connection lost

Client get the message below

Unable to negotiate with 10.0.2.6 port 22: no matching cipher found. Their offer: aes128-cbc

Failed to load application: No module named 'bcrypt'

Hello,
i am trying to make this work, but startup fails with error bcrypt missing, although it is aviakable.

root@ubuntu:/opt/twisted-honeypots# ./start.sh
Unhandled Error
Traceback (most recent call last):
File "/root/.local/lib/python3.6/site-packages/twisted/application/app.py", line 678, in run
runApp(config)
File "/root/.local/lib/python3.6/site-packages/twisted/scripts/twistd.py", line 30, in runApp
runner.run()
File "/root/.local/lib/python3.6/site-packages/twisted/application/app.py", line 372, in run
self.application = self.createOrGetApplication()
File "/root/.local/lib/python3.6/site-packages/twisted/application/app.py", line 439, in createOrGetApplication
application = getApplication(self.config, passphrase)
--- ---
File "/root/.local/lib/python3.6/site-packages/twisted/application/app.py", line 448, in getApplication
application = service.loadApplication(filename, style, passphrase)
File "/root/.local/lib/python3.6/site-packages/twisted/application/service.py", line 404, in loadApplication
application = sob.loadValueFromFile(filename, "application")
File "/root/.local/lib/python3.6/site-packages/twisted/persisted/sob.py", line 176, in loadValueFromFile
eval(codeObj, d, d)
File "/opt/twisted-honeypots/python/start-all-pot.tac", line 3, in
from sshpot import PotSSHFactory
File "/opt/twisted-honeypots/python/sshpot.py", line 7, in
from twisted.conch.ssh import factory, keys, transport, userauth, connection
File "/root/.local/lib/python3.6/site-packages/twisted/conch/ssh/factory.py", line 17, in
from twisted.conch.ssh import _kex, transport, userauth, connection
File "/root/.local/lib/python3.6/site-packages/twisted/conch/ssh/transport.py", line 36, in
from twisted.conch.ssh import address, keys, _kex
File "/root/.local/lib/python3.6/site-packages/twisted/conch/ssh/keys.py", line 18, in
import bcrypt
builtins.ModuleNotFoundError: No module named 'bcrypt'

Failed to load application: No module named 'bcrypt'

root@ubuntu:/opt/twisted-honeypots# bcrypt
Usage is: bcrypt -[orc][-sN] file1 file2..
-o Write output to standard out
-r Do NOT remove input files after processing
-c Do NOT compress files before encryption
-sN How many times to overwrite input files with random data
root@ubuntu:/opt/twisted-honeypots#

Any Idea?

Requirements missing

There are some requirements missing and the documentation on what needs to be installed isn't enough.
People that are wanting to learn how to do this sort of things will have a hard time trying to get this to work because they will have to search on what dependencies they need to install and etc.

FTP y TELNET funcionan bien. SSH no

Al intentar conectar por SSH, da el siguiente error. Intento con Putty y con Mobaxterm, pero nunca solicita login.

Received unexpected packet when expecting Diffie-Hellman reply, type 3 (SSH2_MSG_UNIMPLEMENTED)

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.