- config/systemd/ssh-honeypot.service: Systemd service for port 22 honeypot - config/honeypot/response.sh: Response script that logs connections and sends fake SSH banner - Both files include deployment instructions and setup commands
23 lines
558 B
Desktop File
23 lines
558 B
Desktop File
# SSH Honeypot Service
|
|
# Deploy to: /etc/systemd/system/ssh-honeypot.service
|
|
#
|
|
# Setup commands:
|
|
# sudo cp config/systemd/ssh-honeypot.service /etc/systemd/system/
|
|
# sudo systemctl daemon-reload
|
|
# sudo systemctl enable ssh-honeypot.service
|
|
# sudo systemctl start ssh-honeypot.service
|
|
|
|
[Unit]
|
|
Description=SSH Honeypot (Port 22)
|
|
After=network.target
|
|
|
|
[Service]
|
|
ExecStart=/usr/bin/ncat -l -k -p 22 -c /opt/honeypot/response.sh
|
|
Restart=always
|
|
RestartSec=5
|
|
Group=honeypot
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target |