Privilege escalation using MySQL & SQLi
We learned that SQLi is working and we got the initial shell using SQLi.
let's check the version of MySQL first.
mysql --version
Trying UDF library exploit.
Compile the exploit in Kali Linux.

We transfer the raptor_udf2.so to our victim machine into the tmp folder using wget.
then we do the following query to insert raptor_udf2.so and create a function allowing us to run commands.

Make a .sh file in /tmp directory using initial shell.
Start listener at port 80.
Now I will run the shell.sh file though SQLi.


Last updated