Systemctl
This Priv Esc is possible if systemctl is misconfigured by having SUID enabled
Create a systemd unit file
Created root.service
If required, transfer file to /tmp using wget and python to transfer file
Configure systemctl with custom sevice and start the service
Configure a netcat listener before starting service: nc -nlvp 1234
References
Last updated