perl <<'EOF'
$hostname=`hostname`;
chomp($hostname);
if ( ($hostname =~ /^.*websitewelcome.com$/) || ($hostname =~ /^.*hostgator.com$/) || ($hostname =~ /^.*minidedicated.com$/) ) {
        print "[*] This is not a dedicated server.\n";
        exit;
}
@chars = (A..Z,0..9,a..z);
$num = scalar(@chars);
for ($i = 32; $i >= 1; $i--) {
        $string .= @chars[rand($num)];
}
print "[*] Changing password.\n";
if ( -e "/scripts/chpass" ) {
        system("unset HISTFILE");
	system("ALLOW_PASSWORD_CHANGE=1 /scripts/chpass root $string 1>/dev/null 2>/dev/null 3>/dev/null");
} elsif ( -e "/usr/local/psa/bin/init_conf" ) { 
	system("/usr/local/psa/bin/init_conf --update --passwd $string");
} else {
	system("echo $string | passwd --stdin root");
}
print "[*] New root password: $string\n";

EOF
