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

Janissaries Joomla Fingerprint Tool

Janissaries Joomla Fingerprint Tool
Posted Apr 23, 2013
Authored by miyachung

This php script fingerprints a given Joomla system and then uses Packet Storm's archive to check for bugs related to the installed components.

tags | tool, scanner, php
systems | unix
SHA-256 | 88262f0098e3ae940b541af13f63757e65e56df737aad47c872d4403ce361308

Janissaries Joomla Fingerprint Tool

Change Mirror Download
<?php
/**********************************************************************************
* Janissaries Joomla Fingerprint Tool Using PacketStormSecurity with Multithread
* Coded by Miyachung
* miyachung@hotmail.com
* Janissaries.Org
* Usage -> php jomplug.php FILENAME
* Example -> php jomplug.php sites.txt
* Site list must be www.site.com
* Demonstration -> http://www.youtube.com/watch?v=WbRX099akjA
***********************************************************************************/
set_time_limit(0);
if($argv[1] && file_exists($argv[1]))
{
$finder = new finder;
$finder->main($argv[1],5);
}
else
{
exit("
\n************************************************************
* Janissaries Joomla Fingerprint Tool Using PacketStormSecurity with Multithread
* Coded by Miyachung
* Usage -> php jomplug.php FILENAME
* Example -> php jomplug.php sites.txt
************************************************************\n
[-]File not found.\n
");
}

class finder
{

private $regex = "#option=(.*?)\"#si";
private $packetlink = "http://packetstormsecurity.com/search/?q=";
private $expregex = '#<a class="ico text-plain" href="(.*?)" title="(.*?)">(.*?)</a>#si';

public function main($url,$thnum)
{
$url = file($url);
$url = str_replace("\n","",$url);
$url = str_replace("\r","",$url);
$this->threading($url,$thnum);
}

private function threading($url,$thread)
{

$mcurl = curl_multi_init();
$urlx = array_chunk($url,$thread);
$inc = 0;

foreach($urlx as $thlinks)
{
for($i=0;$i<=count($thlinks)-1;$i++)
{
if(!preg_match('/http/',$thlinks[$i])) $links = "http://".$thlinks[$i];
$ch[$i]=curl_init();
curl_setopt($ch[$i],CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch[$i],CURLOPT_URL,$links);
curl_setopt($ch[$i],CURLOPT_FOLLOWLOCATION,1);
curl_setopt($ch[$i],CURLOPT_TIMEOUT,25);
curl_multi_add_handle($mcurl,$ch[$i]);
}

do
{
curl_multi_exec($mcurl,$active);
}while( $active > 0 );

foreach($ch as $cid => $cend)
{
$datas[$cid] = curl_multi_getcontent($cend);
curl_multi_remove_handle($mcurl,$cend);
$inc++;
echo "#########################################################\n";
echo "[*]Scanning site: ".$thlinks[$cid]." $inc / ".count($url)."\n";
if(!preg_match('/option=com_/',$datas[$cid]))
{
echo "[-]It isn't joomla\n";
echo "#########################################################\n\n";
continue;
}
preg_match_all($this->regex,$datas[$cid],$plugin);
foreach(array_values(array_filter(array_unique(($plugin[1])))) as $plugins)
{
$plugins = explode("&",$plugins);
$pl[] = $plugins[0];

}
echo "[*]Total plugins: ".count(array_unique($pl))."\n";
foreach(array_unique($pl) as $pluginx)
{
$found = false;
$returned = $this->curl(urlencode($pluginx));
echo "[*]Looking bugs for ".$pluginx." from packetstormsecurity\n";
usleep(1000);

if(preg_match_all($this->expregex,$returned,$exploit))
{
echo "-----------------------------------------------------------------------------\n\n";
$this->savefile("logz.txt","#########################################################\n[*]Site -> $thlinks[$cid]\n-----------------------------------------------------------------------------\n");
foreach($exploit[1] as $id => $exploits)
{
$found = true;
$exp_link = "http://packetstormsecurity.com".$exploits;
$exp_link = trim($exp_link);
$exp_title = $exploit[3][$id];
$exp_title = trim($exp_title);
$exp_title = urldecode($exp_title);

echo "[+]Found -> ".$exp_title."\n";
echo "[!]Link -> ".$exp_link."\n";

$this->savefile("logz.txt","[+]Found -> $exp_title\n[!]Link -> $exp_link\n######################\n");
}
echo "\n-----------------------------------------------------------------------------\n";
}
unset($pl);
if(!$found){ echo "[-]$pluginx -> No Results Found From PacketStormSecurity\n";}
else
{
$this->savefile("logz.txt","-----------------------------------------------------------------------------\n#########################################################\n");
}
}
echo "#########################################################\n\n";
}

}


}

private function curl($plugin)
{
$curl=curl_init();
curl_setopt($curl,CURLOPT_RETURNTRANSFER,1);
curl_setopt($curl,CURLOPT_URL,$this->packetlink.$plugin);
$exec=curl_exec($curl);
return $exec;
}

private function savefile($filename,$content)
{
$fopen=fopen($filename,'ab');
fwrite($fopen,$content."\r\n");
fclose($fopen);
}


}


?>
Login or Register to add favorites

File Archive:

November 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close