Path Hijacking
Some examples to execute SUID files and replace in $PATH
Find some SUID files
chmod 4755
To give SUID privileges to any file, binary, in this case /bin/bash
Add the new path in the actual path
Now just in terminal type
Reverse Shell
In the attack machine we are going to listen to any port
Now create a file with a connection to the attacker lhost and port 443
Add the new path in the actual path
Last updated