Skip to content
/ sshoney Public

SSH Honeypot for logging access credentials.

Notifications You must be signed in to change notification settings

ultros/sshoney

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

sshoney.py

Simple SSH Honeypot for Capturing Credentials

$ nmap -p 22 -A localhost -Pn

PORT   STATE SERVICE VERSION
22/tcp open  ssh     OpenSSH 7.4p1 Raspbian 10+deb9u2 (protocol 2.0)

$ sudo python3 sshoney.py

$ cat credentials.txt 
127.0.0.1:user:asdfasdf asdf asdfa sdf
127.0.0.1:user:#@#$@#$@#$f
127.0.0.1:user:';oij';

For Installation

pip3 install -r /opt/sshoney/requirements.txt

Daemon Skeleton

[Unit]
Description=sshoney.py
After=network.target

[Service]
Type=simple
ExecStart=/usr/bin/python3 /opt/sshoney/sshoney.py
Restart=always

[Install]
WantedBy=multi-user.target

Daemon Setup (Debian)

# vim /etc/systemd/system/sshoney.service
# systemctl enable /etc/systemd/system/sshoney.service
# systemctl start /etc/systemd/system/sshoney.service
# systemctl status /etc/systemd/system/sshoney.service

sshoney.py script changes

You will need to provide the full path to credentials.txt.
E.g. the default script assumes that sshoney has been cloned to "/opt/sshoney/".
with open('/opt/sshoney/credentials.txt', 'a') as file_obj:

About

SSH Honeypot for logging access credentials.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages