xdzhax

cPanel creator

Nov 28th, 2015
1,673
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.81 KB | None | 0 0
  1. <link rel="stylesheet" type="text/css" href="http://screenshootsite.xtgem.com/green.css" media="all,handheld"/><div class="body">
  2. <title>Cpanel Account Creator By xdzhax</title>
  3. <html>
  4. <style>
  5. </style>
  6. </body></html>
  7. <head>
  8. <div class="title">Cpanel Account Creator By xdzhax</div>
  9. <div class="str">
  10. <?php
  11. set_time_limit(0);
  12. $whm_interface_path = '/usr/local/cpanel/Cpanel/Accounting.php.inc';
  13. function getVar($name, $def = '') {
  14. if (isset($_REQUEST[$name]))
  15. return $_REQUEST[$name];
  16. else
  17. return $def;
  18. }
  19. ?>
  20. <?php
  21. $host = "host or ip whm";
  22. $user = "user whm";
  23. $accesshash = 'insert you accesshash here';
  24. require_once $whm_interface_path;
  25. $accts = listpkgs($host,$user,$accesshash,1);
  26. ?>
  27. <a href="?xdzhax">>>List of domain</a>
  28. <?php
  29. if(isset($_GET['xdzhax'])) {
  30. ?>
  31. <?php
  32. $tes = listaccts($host,$user,$accesshash,1);
  33. foreach ($tes as $kpy => $lue){
  34. echo "<br/>Domain: $lue[0]";
  35. }
  36. ?>
  37. <?php } ?>
  38. <?php
  39. $tes = listaccts($host,$user,$accesshash,1);
  40. foreach ($tes as $kpy => $lue){
  41. }
  42. $giniandoank = str_replace("http://cpanel.net/","<font color=green>Aktif</font>",$kpy);
  43. $ko = str_replace("Unauthorized copying is prohibited -->","",$giniandoank);
  44. $root = str_replace("Access denied","<font color=red>Failed</font>",$ko);
  45. echo "<br/>STATUS WHM: $root";
  46. ?>
  47.  
  48. </div>
  49.  
  50. <form method="post">
  51. <table border="0">
  52. <tr><td>Domain:</td><td><input name="domain" value=""></td></tr>
  53. <tr><td>Username:</td><td><input name="username" value=""></td></tr>
  54. <tr><td>Package:</td><td><select name="package">
  55. <?php
  56. foreach ($accts as $key => $value){
  57. echo '<option> '.$key.' </option>';
  58. }
  59. ?>
  60. </select>
  61. </td></tr>
  62. </table>
  63. <br/>
  64. <input type="submit" value="Create Account"></form></html>
  65.  
  66. <?php
  67. set_time_limit(0);
  68. if (!isset($user_domain)) {
  69. $user_domain = getVar('domain');
  70. }
  71.  
  72. // Username of the new hosting account
  73. if (!isset($user_name)) {
  74. $user_name = getVar('username');
  75. }
  76.  
  77. // Password for the new hosting account
  78. if (!isset($user_pass)) {
  79. $user_pass = getVar('password');
  80. }
  81.  
  82. // Package for the new hosting account
  83. if (!isset($user_plan)) {
  84. $user_plan = getVar('package');
  85. }
  86.  
  87. if (!file_exists($whm_interface_path)) {
  88. die($whm_interface_path . " does not exist. Please update program with correct path to your WHM interface file.");
  89. }
  90.  
  91. // if parameters passed then create account
  92. if (!empty($user_name)) {
  93. // load cPanel WHM interface functions
  94. require_once $whm_interface_path;
  95.  
  96. // create account on the cPanel server
  97. $my = createacct ($host,$user,$accesshash,1,$user_domain,$user_name,$user_pass,$user_plan);
  98. $oke = explode('|', $my);
  99. $gembok = implode('<br/>|', $oke);
  100.  
  101.  
  102. // output result
  103. echo "$gembok";
  104. }
  105. ?>
  106.  
  107.  
  108. <center>
  109. <BR/>
  110. <BR/>
  111. Powered by <a href="http://asiansexdiary.com/">xdzhax</a>
  112. <BR/>Copyright&copy; 2016 cPanel, Inc.
  113. </center>
Advertisement
Add Comment
Please, Sign In to add comment