Skip to content

Program to emulate a pseudo-honeypot ssh server with some fun commands

License

Notifications You must be signed in to change notification settings

cheeseandcereal/fake-ssh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fake SSH

Example

Python program to emulate an ssh server as a sort of psuedo-honeypot with some fun commands. It will accept all connections given any provided username/password for authentication.

Utilizes paramiko for the OpenSSH protocol. A generic private key is provided for convenience, although it can be substituted out for another key if desired.

Usage

This should be able to run on both python 2 and 3 with paramiko as the only requirement

pip install paramiko

Then simply run the file to start the server:

sudo ./fake_ssh.py

Note: sudo is simply needed to bind to port 22, although this can be easily changed if desired (it will present a generic OpenSSH banner/fingerprint to network scanners to find regardless of the port)

You can specify the port and address to bind to with the -p and -b flags:

# Run the server on port 12345, only listening on localhost
./fake_ssh.py -p 12345 -b 127.0.0.1

Scan

About

Program to emulate a pseudo-honeypot ssh server with some fun commands

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages