Posted on 2 Comments

Hack Linux PC with phpFileManager RCE exploit

Hello aspiring hackers. In this article, we will see how to hack Linux PC with  phpFileManager 0.9.8 rce exploit. RCE stands for remote code execution. Phpfilemanager is a complete filesystem management tool on a single file.

 Among the features of phpFileManager:
. server info
. directory tree
. copy/move/delete/create/rename/edit/view/chmod files and folders
. tar/zip/bzip/gzip
. multiple uploads
. shell/exec
. works on linux/windows
. php4/php5/apache2 compatible
. english/portuguese/spanish/dutch/french/german/italian/korean/russian/catalan translations.

It is used to manage files of webserver and it boasts of around 382 downloads per week. Its browser interface can be seen below.

We will try to hack into  a Ubuntu 12.10 PC from Kali Linux using this phpFilemanager 0.9.8 rce  exploit. Given below is the Video version of this howto. If you are interested in the textual version scroll down below the video version.

Start Metasploit. Search for the phpfilemanager exploit by typing command “search phpfilemanager” as shown below.

Load the exploit as shown below. Set the required options as shown below. Most of the options are all set except the remote host address, i.e your target’s IP address.

Type command “show payloads” to see the available payloads and set the payload you want. I have selected the payload highlighted below.

Set the payload and check if all required options are set by typing command “show options”.

Type command “exploit” to execute the exploit. If everything went well, you should get the remote pc’s shell as shown below.

It should look like shown below. Type command “ls” to see the contents of the present directory. as shown below. You can see the two files which we saw in our first picture. Now let us navigate to the etc directory as shown below.

And type command “vi passwd” to open the passwd file of the remote PC. Vi is the default text editor in Linux.

See how to hack Windows 10 with Hercules.