debian cowrie 開機自動啟動

首先 在cowrie的目錄底下建一個auto_honey.sh
然後 輸入

bash /home/cowrie/cowrie/bin/cowrie start
之後再

sudo nano /lib/systemd/system/cowrie.service
輸入

[Unit]
Description=cowrie Daemon
After=syslog.target network.target

[Service]
Type=simple
ExecStart=su cowrie -c "/home/cowrie/auto_honey.sh"

[Install]
WantedBy=multi-user.target


systemctl daemon-reload
systemctl start cowrie

留言

這個網誌中的熱門文章

IP 計算心法

node-red 寫成服務時遇到 typeerror the path argument must be of type string. received type undefined

在debain安裝DVWA