{"id":13795976,"url":"https://github.com/magisterquis/sshlowpot","last_synced_at":"2025-05-13T00:30:40.046Z","repository":{"id":144269235,"uuid":"49993177","full_name":"magisterquis/sshlowpot","owner":"magisterquis","description":"Yet another no-frills low-interaction ssh honeypot in Go.","archived":true,"fork":false,"pushed_at":"2020-02-02T20:43:15.000Z","size":560,"stargazers_count":12,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-04T23:10:05.910Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"zlib","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/magisterquis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-01-20T00:33:31.000Z","updated_at":"2024-04-07T17:53:42.000Z","dependencies_parsed_at":"2024-01-03T04:02:43.915Z","dependency_job_id":null,"html_url":"https://github.com/magisterquis/sshlowpot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magisterquis%2Fsshlowpot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magisterquis%2Fsshlowpot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magisterquis%2Fsshlowpot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magisterquis%2Fsshlowpot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/magisterquis","download_url":"https://codeload.github.com/magisterquis/sshlowpot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225159843,"owners_count":17430190,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T23:01:04.797Z","updated_at":"2024-11-18T10:30:59.301Z","avatar_url":"https://github.com/magisterquis.png","language":"Go","funding_links":[],"categories":["Honeypots","\u003ca id=\"c8f749888134d57b5fb32382c78ef2d1\"\u003e\u003c/a\u003eSSH\u0026\u0026Telnet"],"sub_categories":[],"readme":"# sshlowpot\nYet another no-frills low-interaction ssh honeypot in Go.\n\nAccepts SSH connections on a given port (2222 by default), records\nauthentication attempts and tells the connecting client the authentication\nfailed.\n\n**Please note that this is not yet production code.  In particular, the log\noutput is subject to change.**\n\n## Installation\nGet and build the source:\n```bash\ngo get github.com/magisterquis/sshlowpot\ngo install github.com/magisterquis/sshlowpot\n```\nCompiled binaries can be made available upon request.\n\nMake sure IP forwarding is enabled and forward the port.  The following\nexamples assume the external-facing port is 22 and sshlowpot is listening on\n2222.\n\nOpenBSD:\n```bash\n#Assuming the external-facing interface is vio0\n\n[root@box]# sysctl net.inet.ip.forwarding=1\n[root@box]# echo \"pass in on vio0 from any to (vio0) port 22 rdr-to 127.0.0.1 port 2222\" \u003e\u003e /etc/pf.conf\n[root@box]# pfctl -vf /etc/pf.conf\n[user@box]$ sshlowopt -v\n```\n\nLinux:\n```bash\n[root@box]# sysctl net.ipv4.ip_forward=1\n[root@box]# iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 22 -j REDIRECT --to-port 2222\n[user@box]$ sshlowpot -v\n```\n \n## Usage\n```\nUsage: sshlowpot [options]\n\nOptions are:\n  -a address\n    \tListen address (default \"127.0.0.1:2222\")\n  -key file\n    \tSSH private key file, which will be created if it doesn't already exist (default \"slp_id_rsa\")\n  -to timeout\n    \tSSH handshake timeout (default 1m0s)\n  -v\tEnable verbose logging\n  -ver version\n    \tSSH server version string (default \"SSH-2.0-OpenSSH_7.0\")\n```\n\nFor the most part, no options are required as long as you can forward your\nexternal port of choice to 127.0.0.1:2222.  Please don't run it as root on 22.\n\n## Output\nOutput should look something like the following (with `-v`):\n```\n2016/01/19 19:43:41 Made SSH key and wrote it to slp_id_rsa\n2016/01/19 19:43:41 Listening on 127.0.0.1:2222\n2016/01/19 19:43:51 Address:168.235.89.22:52119 Connect\n2016/01/19 19:43:53 Address:168.235.89.22:52119 User:\"exuser\" Version:\"SSH-2.0-OpenSSH_7.0\" Key(ssh-rsa):BE9DA2A4D129652DB64AF6D71DEFD25F\n2016/01/19 19:43:56 Address:168.235.89.22:52119 User:\"exuser\" Version:\"SSH-2.0-OpenSSH_7.0\" Keyboard-Interactive:\"passtry1\"\n2016/01/19 19:43:57 Address:168.235.89.22:52119 User:\"exuser\" Version:\"SSH-2.0-OpenSSH_7.0\" Keyboard-Interactive:\"passtry2\"\n2016/01/19 19:43:58 Address:168.235.89.22:52119 User:\"exuser\" Version:\"SSH-2.0-OpenSSH_7.0\" Keyboard-Interactive:\"passtry3\"\n2016/01/19 19:43:59 Address:168.235.89.22:52119 User:\"exuser\" Version:\"SSH-2.0-OpenSSH_7.0\" Password:\"passtry4\"\n2016/01/19 19:44:01 Address:168.235.89.22:52119 User:\"exuser\" Version:\"SSH-2.0-OpenSSH_7.0\" Password:\"passtry5\"\n2016/01/19 19:44:02 Address:168.235.89.22:52119 User:\"exuser\" Version:\"SSH-2.0-OpenSSH_7.0\" Password:\"passtry6\"\n2016/01/19 19:44:02 Address:168.235.89.22:52119 Disconnect\n```\n\n## Windows\nIt should run on Windows just fine.  If it doesn't, feel free to send a pull\nrequest.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagisterquis%2Fsshlowpot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmagisterquis%2Fsshlowpot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagisterquis%2Fsshlowpot/lists"}