added shell mode for the CMS Version Scanner

This commit is contained in:
Palma Solutions LTD
2018-05-06 06:05:17 +02:00
parent 638ef8b10b
commit b1a7df0271
2 changed files with 296 additions and 13 deletions

View File

@@ -1,7 +1,7 @@
<?php
/*
* CMS Finder Script
* CMS Version Scanner Script
* Version 1.0
* by Malin Cenusa
* Send bugz, ideas, beers, flowers, nudes or whatever to malin@cenusa.me
@@ -16,7 +16,7 @@
$versions = array(
array("Wordpress", "/wp-includes/version.php", "\$wp_version =", "Maintained"),
array("osCommerce", "/includes/application_top.php", "define('PROJECT_VERSION', 'osCommerce Online Merchant", ""),
array("osCommerce", "/includes/application_top.php", "define('PROJECT_VERSION', 'osCommerce Online Merchant", "Maintained"),
array("Drupal", "/modules/system/system.info", "version = ", "Maintained"),
array("phpBB", "/includes/constants.php", "define('PHPBB_VERSION',", "Maintained"),
array("SMF", "/index.php", "\$forum_version = 'SMF", "Maintained"),
@@ -36,14 +36,14 @@
array("Serendipity", "/serendipity_config.inc.php", "\$serendipity\['version'\] =", ""),
array("OpenBlog", "/application/config/open_blog.php", "\$config\['version'\] =", ""),
array("b2evolution", "/conf/_application.php", "\$app_version =", ""),
array("Nucleus", "/nucleus/libs/globalfunctions.php", "\$nucleus\['version'\] =", ""),
array("Nucleus", "/nucleus/libs/globalfunctions.php", "\$nucleus\['version'\] =", "EOL"),
array("Dotclear", "/inc/prepend.php", "define('DC_VERSION',", ""),
array("TextPattern", "/textpattern/index.php", "\$thisversion =", ""),
array("NibbleBlog", "/admin/boot/rules/98-constants.bit", "define('NIBBLEBLOG_VERSION',", "EOL"),
array("Lifetype", "/version.php", "\$version = \"lifetype", ""),
array("Chyrp", "/includes/common.php", "define('CHYRP_VERSION',", ""),
array("PivotX", "/pivotx/lib.php", "\$version ="),
array("FlatPress", "/fp-includes/core/core.system.php", "define('SYSTEM_VER',", ""),
array("Lifetype", "/version.php", "\$version = \"lifetype", "EOL"),
array("Chyrp", "/includes/common.php", "define('CHYRP_VERSION',", "EOL"),
array("PivotX", "/pivotx/lib.php", "\$version =", "EOL"),
array("FlatPress", "/fp-includes/core/core.system.php", "define('SYSTEM_VER',", "EOL"),
array("Status.Net", "/lib/framework.php", "define('STATUSNET_BASE_VERSION',", ""),
array("Sharetronix", "/system/conf_main.php", "\$C->VERSION", ""),
array("PageCookery", "/global.php", "\$pcm_version =", ""),
@@ -54,7 +54,7 @@
array("Zikula", "/lib/Zikula/Core.php", "const VERSION_NUM =", ""),
array("Website Baker", "/pages/posts/index.php", "by WebsiteBaker Ver.", ""),
array("Subrion", "/index.php", "define('IA_VERSION', '", ""),
array("Pligg", "/languages/lang_english.conf", "//<VERSION>", ""),
array("Pligg", "/languages/lang_english.conf", "//<VERSION>", "EOL"),
array("PyroCMS", "/system/cms/config/constants.php", "define('CMS_VERSION',=", ""),
array("Contao", "/system/config/localconfig.php", "\$GLOBALS\['TL_CONFIG'\]\['latestVersion'\] =", ""),
array("Geeklog", "/siteconfig.php", "define('VERSION',", ""),
@@ -139,7 +139,7 @@
array("Hesk", "/hesk_settings.inc.php", "\$hesk_settings['hesk_version']=", ""),
array("PHPWiki", "/lib/config.php", "define('PHPWIKI_VERSION',", ""),
array("PixelPost", "/includes/pixelpost.php", "Pixelpost version ", ""),
array("PrestaShop", "/config/settings.inc.php", "define('_PS_VERSION_',", ""),
array("PrestaShop", "/config/settings.inc.php", "define('_PS_VERSION_',", "Maintained"),
array("tDah Webmail", "/config.system.php", "\/SW_VERSION\/", ""),
array("Agora Cart", "/agora.cgi", "\$versions{'agora.cgi'}", ""),
array("CKeditor", "/ckeditor/CHANGES.html", "CKEditor Changelog", ""),
@@ -255,7 +255,7 @@ foreach(glob("../{**/*,*}".$raw[1], GLOB_BRACE) as $versionfiles){
$pattern = "/^.*$pattern1.*\$|^.*$pattern2.*\$/m";
if(preg_match_all($pattern, $file, $matches)){
echo "\n";
echo "\n".$raw[0]." found:\n";
echo "\n".$raw[0]." found - (".$raw[4]."):\n";
echo implode("\n", $matches[0]);
echo "\n";
$location = $versionfiles;
@@ -274,7 +274,7 @@ foreach(glob("../".$raw[1], GLOB_BRACE) as $versionfiles) {
$pattern = "/^.*$pattern1.*\$|^.*$pattern2.*\$/m";
if(preg_match_all($pattern, $file, $matches)){
echo "\n";
echo "\n".$raw[0]." found:\n";
echo "\n".$raw[0]." found - (".$raw[4]."):\n";
echo implode("\n", $matches[0]);
echo "\n";
$location = $versionfiles;
@@ -306,7 +306,7 @@ foreach(glob("../{**/*,*}".$rxw[1], GLOB_BRACE) as $versionfilex){
$pattern = "/^.*$pattern1.*\$|^.*$pattern2.*\$|^.*$pattern3.*\$/m";
if(preg_match_all($pattern, $file, $matches)){
echo "\n";
echo "\n".$rxw[0]." found:\n";
echo "\n".$rxw[0]." found - (".$rxw[5]."):\n";
echo implode("\n", $matches[0]);
echo "\n";
$location = $versionfilex;
@@ -326,7 +326,7 @@ foreach(glob("../".$rxw[1], GLOB_BRACE) as $versionfilex) {
$pattern = "/^.*$pattern1.*\$|^.*$pattern2.*\$|^.*$pattern3.*\$/m";
if(preg_match_all($pattern, $file, $matches)){
echo "\n";
echo "\n".$rxw[0]." found:\n";
echo "\n".$rxw[0]." found - (".$row[5]."):\`";
echo implode("\n", $matches[0]);
echo "\n";
$location = $versionfilex;