fixed bugs

This commit is contained in:
Palma Solutions LTD
2017-05-13 06:39:58 +02:00
parent 92d504167e
commit acdffca2f0

482
sc.php
View File

@@ -121,9 +121,9 @@ $error = "Fatal error: Allowed memory size of 134217728 bytes exhausted (tried t
/* let's define the paths first */
$processUser = posix_getpwuid(posix_geteuid());
$this->user = $processUser['name'];
$this->top_dir = '/home/'.$this->user.'/';
$this->web_dir = '/home/'.$this->user.'/public_html/';
$GLOBALS["user"] = $processUser['name'];
$GLOBALS["docroot"] = '/home/'.$GLOBALS["user"].'/';
$GLOBALS["webroot"] = '/home/'.$GLOBALS["user"].'/public_html/';
$GLOBALS["red"] = "<span style='color: #FF0000';>";
$GLOBALS["br"] = "<br />";
@@ -154,7 +154,7 @@ system ("w | grep load");
function cleanupl(){
system("find ../*/wp-content/uploads/ -type f -name '*.php' -print -exec rm -rf {} \;"); /* clear PHP files from wp-content/uploads */
system('find ../ -type f -name "*.php.suspected" -print -exec rm -rf {} \;'); /* clear files renamed as *.suspected by the server AV */
system('find '.$this->web_dir.' -type f -size 0 -print -exec rm -rf {} \;'); /* clear files with 0 bytes size */
system('find '.$GLOBALS["webroot"].' -type f -size 0 -print -exec rm -rf {} \;'); /* clear files with 0 bytes size */
}
@@ -166,13 +166,13 @@ function vulntheme(){
}
function clear_cache(){
system("if [ $(find-name "cache" -maxdepth 0 -type d -empty 2>/dev/null) ]; then rm -rfv $i/*; echo "no cache dirs, or empty ones found"; fi");
//system("if [ $(find-name "cache" -maxdepth 0 -type d -empty 2>/dev/null) ]; then rm -rfv $i/*; echo "no cache dirs, or empty ones found"; fi");
}
/* cleaning the backdoor files of the Gravity Forms Exploit */
function cleangravity(){
system('find '.$this->web_dir.' -type f -name "*_input__test*" -print -exec rm -rf {} \;');
system('find '.$this->web_dir.' -type f -name "*_input_*.php*" -print -exec rm -rf {} \;');
system('find '.$this->web_dir.' -type f -name "*_input_*.txt*" -print -exec rm -rf {} \;');
system('find '.$GLOBALS["webroot"].' -type f -name "*_input__test*" -print -exec rm -rf {} \;');
system('find '.$GLOBALS["webroot"].' -type f -name "*_input_*.php*" -print -exec rm -rf {} \;');
system('find '.$GLOBALS["webroot"].' -type f -name "*_input_*.txt*" -print -exec rm -rf {} \;');
}
/* use a modified version of Spamhaus's findbot.pl to identify left over backdoors */
@@ -235,7 +235,7 @@ system("./malware.pl");
/* EXIF scanner */
function checkexif(){
define('IMAGEPATH', $this->web_dir);
define('IMAGEPATH', $GLOBALS["webroot"]);
$directory = new RecursiveDirectoryIterator(IMAGEPATH);
$iterator = new RecursiveIteratorIterator($directory);
@@ -277,7 +277,7 @@ function insecplug(){
foreach ($plugins_list as $plugin){
system('find '.$this->web_dir.' -type d -name '.$plugin.' -print');
system('find '.$GLOBALS["webroot"].' -type d -name '.$plugin.' -print');
}
@@ -338,7 +338,7 @@ function reshog(){
foreach ($plugin_list as $plugins){
system('find '.$this->web_dir.' -type d -name '.$plugins.' -print');
system('find '.$GLOBALS["webroot"].' -type d -name '.$plugins.' -print');
}
@@ -346,7 +346,7 @@ function reshog(){
/* EXIF cleaner */
function cleanexif(){
define('IMAGEPATH', $this->web_dir);
define('IMAGEPATH', $GLOBALS["webroot"]);
$directory = new RecursiveDirectoryIterator(IMAGEPATH);
$iterator = new RecursiveIteratorIterator($directory);
@@ -472,9 +472,9 @@ echo "Removing Files With Zero Size";
function findchmod(){
echo "Finding All Files With Chmod Set To 0000<br /><br />";
system('find '.$this->web_dir.' -type f -perm 0000 -exec ls -al');
system('find '.$GLOBALS["webroot"].' -type f -perm 0000 -exec ls -al');
echo "Finding All Directories With Chmod Set To 0000<br /><br />";
system('find '.$this->web_dir.' -type d -perm 0000 -exec ls -al');
system('find '.$GLOBALS["webroot"].' -type d -perm 0000 -exec ls -al');
}
function trimblanklines($str) {
@@ -487,12 +487,12 @@ function trimblanklines($str) {
function fixperms(){
echo("To save time (and money) we're going to locate the files and directories with improper permissions and fix just those:\n");
system('find '.$this->web_dir.' -perm +og+w -follow -type d -print -exec chmod 755 {} \;');
system('find '.$this->web_dir.' -perm 0000 -follow -type d -print -exec chmod 755 {} \;');
system('find '.$this->web_dir.' -perm +og+w -follow -type f -print -exec chmod 644 {} \;');
system('find '.$this->web_dir.' -perm 0000 -follow -type f -print -exec chmod 644 {} \;');
system('find '.$this->web_dir.' -perm +og+w -follow -type f -name "*.cgi" -print -exec chmod 755 {} \;');
system('find '.$this->web_dir.' -perm +og+w -follow -type f -name "*.pl" -print -exec chmod 755 {} \;');
system('find '.$GLOBALS["webroot"].' -perm +og+w -follow -type d -print -exec chmod 755 {} \;');
system('find '.$GLOBALS["webroot"].' -perm 0000 -follow -type d -print -exec chmod 755 {} \;');
system('find '.$GLOBALS["webroot"].' -perm +og+w -follow -type f -print -exec chmod 644 {} \;');
system('find '.$GLOBALS["webroot"].' -perm 0000 -follow -type f -print -exec chmod 644 {} \;');
system('find '.$GLOBALS["webroot"].' -perm +og+w -follow -type f -name "*.cgi" -print -exec chmod 755 {} \;');
system('find '.$GLOBALS["webroot"].' -perm +og+w -follow -type f -name "*.pl" -print -exec chmod 755 {} \;');
}
function getcleaner(){
@@ -507,7 +507,7 @@ fclose($fp);
function addsec(){
echo "securing .htaccess<br />";
$htafile = $this->web_dir.'/.htaccess';
$htafile = $GLOBALS["webroot"].'/.htaccess';
$htaData = "
# Protection agains XSS exploits added by Lunarpages MSH team
Options +FollowSymLinks
@@ -528,7 +528,7 @@ file_put_contents($htafile, $htaData, FILE_APPEND | LOCK_EX);
show_source($htafile);
echo "moving on to php.ini";
$phpfile = $this->web_dir.'/php.ini';
$phpfile = $GLOBALS["webroot"].'/php.ini';
$phpData = '
; Protection agains RFI exploits added by Lunarpages MSH team
allow_url_fopen = Off
@@ -553,7 +553,7 @@ file_put_contents($phpfile, $phpData, FILE_APPEND | LOCK_EX);
echo '<input name="send" type="send" value="Remove it">';
if(($_POST['send']) == "Remove it") {
$name= ($_POST["name"]);
system('find '.$this->web_dir.' -name "'.$name.'" -print -exec rm -fr {} \;');
system('find '.$GLOBALS["webroot"].' -name "'.$name.'" -print -exec rm -fr {} \;');
}
}
@@ -836,7 +836,7 @@ echo '<input name="submit" type="submit" value="Go"><br /><br />';
$ziparray = array("zip", "rar", "tgz", "tar.gz", "bz2", "tar");
foreach ($ziparray as $i => $valzip) {
echo 'checking for backup files with extension: '.$valzip.'<br />';
system('find '.$this->web_dir.'-name *.'.$valzip.' -exec du -sh {} \; | grep "backup"');
system('find '.$GLOBALS["webroot"].'-name *.'.$valzip.' -exec du -sh {} \; | grep "backup"');
}
}
@@ -1091,329 +1091,153 @@ echo '<br><pre>';
function version() {
$versions = array(
array("Wordpress", "*/wp-includes/version.php", "\$wp_version ="),
array("osCommerce", "*/includes/application_top.php", "define('PROJECT_VERSION', 'osCommerce Online Merchant"),
array("ZenCart", "*/includes/version.php", "define('PROJECT_VERSION_NAME', 'Zen Cart');"),
array("Drupal", "*/modules/system/system.info", "version = "),
array("Joomla 1.0", "*/includes/version.php", "\$RELEASE\|\$DEV_LEVEL"),
array("Joomla 1.5", "*/libraries/joomla/version.php", "\$RELEASE\ =\|\$DEV_LEVEL\ ="),
array("Wordpress", "/wp-includes/version.php", "\$wp_version ="),
array("osCommerce", "/includes/application_top.php", "define('PROJECT_VERSION', 'osCommerce Online Merchant"),
array("ZenCart", "/includes/version.php", "define('PROJECT_VERSION_NAME', 'Zen Cart');"),
array("Drupal", "/modules/system/system.info", "version = "),
array("Joomla 1.0", "/includes/version.php", "\$RELEASE\|\$DEV_LEVEL"),
array("Joomla 1.5", "/libraries/joomla/version.php", "\$RELEASE\ =\|\$DEV_LEVEL\ ="),
array("phpBB", "/includes/constants.php", "define('PHPBB_VERSION',"),
array("SMF", "/index.php", "\$forum_version = 'SMF"),
array("Gallery", "/modules/gallery/helpers/gallery.php", "const VERSION ="),
array("Coppermine", "/versioncheck.inc.php", "Coppermine version:"),
array("4images", "/includes/constants.php", "define('SCRIPT_VERSION',"),
array("MediaWiki", "/includes/DefaultSettings.php", "\$wgVersion ="),
array("PHPlist", "/admin/init.php", "define(\"VERSION\","),
array("RoundCube", "/program/include/iniset.php", "define('RCMAIL_VERSION',"),
array("Squirrel Mail", "/functions/strings.php", "\$version ="),
array("Dede CMS<", "/config_base.php", "\$cfg_soft_enname\|\$cfg_version"),
array("Sugar CRM", "/sugar_version.php", "\$sugar_version"),
array("XOOPS", "/version.php", "XOOPS_VERSION"),
array("Concrete5", "/config/concrete.php", "version_installed"),
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("Dotclear", "/inc/prepend.php", "define('DC_VERSION',"),
array("TextPattern", "/textpattern/index.php", "\$thisversion ="),
array("NibbleBlog", "/admin/boot/rules/98-constants.bit", "define('NIBBLEBLOG_VERSION',"),
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("Status.Net", "/lib/framework.php", "define('STATUSNET_BASE_VERSION',"),
array("Sharetronix", "/system/conf_main.php", "\$C->VERSION"),
array("PageCookery", "/global.php", "\$pcm_version ="),
array("StoryTLR", "/index.php", "define(\"STORYTLR_VERSION\","),
array("PHP-Fusion", "/administration/upgrade.php", "WHERE settings_name='version'"),
array("e107", "/e107_admin/ver.php", "\$e107info\['e107_version'\] ="),
array("Open Real Estate", "/index.php", "define('ORE_VERSION',"),
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("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',"),
array("Silverstripe", "/cms/silverstripe_version", "*"), //needs review
array("sNews", "/snews.php", "sNews Version:"),
array("jCore", "/config.inc.php", "@define('JCORE_VERSION',"),
array("ImpressPages", "/Ip/Application.php", "; //CHANGE_ON_VERSION_UPDATE"),
array("Quick.CMS", "/database/config.php", "\$config\['version'\] ="),
array("ImpressCMS", "/include/version.php", "define('ICMS_VERSION_NAME',"), /* triggers false positive for XOOPS as it's a fork of it */
array("Monstra", "/engine/Monstra.php", "const VERSION ="),
array("phpwcms", "/include/inc_lib/revision/revision.php", "define('PHPWCMS_VERSION'"),
array("Redaxscript", "/languages/en.json", "version"),
array("Silex", "/version.txt", "version=v"),
array("Mahara", "/lib/version.php", "\$config->release ="),
array("Saurus", "/classes/site.class.php", "\$this->script_version ="),
array("Jamroom", "/modules/jrCore/include.php", "'version' =>"),
array("Bolt", "/src/Application.php", "\$values\['bolt_version'\] ="),
array("Pluck", "/data/inc/security.php", "define('PLUCK_VERSION',"),
array("Croogo", "/Vendor/croogo/croogo/VERSION.txt", "*"), // needs further review
array("Kirby", "/kirby/kirby.php", "static public \$version ="),
array("Zenario", "/zenario/admin/db_updates/latest_revision_no.inc.php", "define('ZENARIO_CMS_VERSION',"),
array("Cotonti", "/system/functions.php", "\$cfg\['version'\] ="),
array("appRain", "/development/definition/system_configuration/config.xml", "<appRainversion>"),
array("ClipperCMS", "/manager/includes/version.inc.php", "define('CMS_RELEASE_VERSION',"), // forked from ModX
array("MyBB", "/inc/class_core.php", "public \$version ="),
array("AEF", "/globals.php", "// AEF : Advanced Electron Forum"),
array("Vanilla", "/conf/config.php", "\$Configuration\['Vanilla'\]\['Version'\] ="),
array("PunBB", "/include/constants.php", "define('FORUM_VERSION',"),
array("XMB", "/db/mysql.php", "* eXtreme Message Board"), // needs 2nd line too
array("FluxBB", "/include/common.php", "define('FORUM_VERSION',"),
array("Phorum", "/common.php", "define( \"PHORUM\","),
array("MiniBB", "/bb_functions.php", "\$version="),
array("Piwigo", "/include/constants.php", "define('PHPWG_VERSION"),
array("TinyWebGallery", "/config.php", "TWG version:"),
array("phpAlbum", "/main.php", "\$phpalbum_version="),
array("iGalerie", "/includes/classes/system.class.php", "public static \$galleryVersion ="),
array("Dolphin", "/modules/boonex/news/install/config.php", "'compatible_with' => array("), // needs 2nd line too
array("Oxwall", "/ow_version.xml", "<version>"),
array("Etano", "/includes/defines.inc.php", "define('_INTERNAL_VERSION_',"),
array("PeoplePods", "/peoplepods/lib/etc/options.php", "\$this->setLibOptions('last_database_update','"),
array("Family Connections", "/install.php", "\$_POST\['contact'\], 'Family Connections"),
array("OSClass", "/oc-load.php", "define('OSCLASS_VERSION',"),
array("Revive AdServer", "/constants.php", "define('VERSION',"),
array("WebCalendar", "/includes/config.php", "\$PROGRAM_VERSION ="),
array("Booked", "/lib/Config/Configuration.php", "const VERSION ="),
array("PHP iCalendar", "/default_config.php", "\$this->phpicalendar_version ="),
array("WebMail Lite", "/adminpanel/VERSION", "*"), // needs further review
array("Piwik", "/core/Version.php", "const VERSION ="),
array("Little Poll", "/lp_admin.php", "Little Poll Admin Center v"),
array("Sphider", "/settings/conf.php", "\$version_nr"),
array("BigTree CMS", "/core/version.php", "define(\"BIGTREE_VERSION\",\""),
array("Quick Cart", "/database/config/general.php", "\$config\['version'\] ="),
array("gpEasy", "/include/common.php", "define('gpversion','"),
array("Gallery", "/modules/gallery/helpers/gallery.php", "const VERSION ="),
array("Gallery", "/modules/gallery/helpers/gallery.php", "const VERSION ="),
array("Gallery", "/modules/gallery/helpers/gallery.php", "const VERSION ="),
array("Gallery", "/modules/gallery/helpers/gallery.php", "const VERSION ="),
array("Gallery", "/modules/gallery/helpers/gallery.php", "const VERSION ="),
array("Gallery", "/modules/gallery/helpers/gallery.php", "const VERSION ="),
array("Gallery", "/modules/gallery/helpers/gallery.php", "const VERSION ="),
array("Gallery", "/modules/gallery/helpers/gallery.php", "const VERSION ="),
array("Gallery", "/modules/gallery/helpers/gallery.php", "const VERSION ="),
array("Gallery", "/modules/gallery/helpers/gallery.php", "const VERSION ="),
array("Gallery", "/modules/gallery/helpers/gallery.php", "const VERSION ="),
array("Gallery", "/modules/gallery/helpers/gallery.php", "const VERSION ="),
array("Gallery", "/modules/gallery/helpers/gallery.php", "const VERSION ="),
array("Gallery", "/modules/gallery/helpers/gallery.php", "const VERSION ="),
array("Gallery", "/modules/gallery/helpers/gallery.php", "const VERSION ="),
array("Gallery", "/modules/gallery/helpers/gallery.php", "const VERSION ="),
array("Gallery", "/modules/gallery/helpers/gallery.php", "const VERSION ="),
array("Gallery", "/modules/gallery/helpers/gallery.php", "const VERSION ="),
array("Gallery", "/modules/gallery/helpers/gallery.php", "const VERSION ="),
array("Gallery", "/modules/gallery/helpers/gallery.php", "const VERSION ="),
array("Gallery", "/modules/gallery/helpers/gallery.php", "const VERSION ="),
array("Gallery", "/modules/gallery/helpers/gallery.php", "const VERSION ="),
array("Gallery", "/modules/gallery/helpers/gallery.php", "const VERSION ="),
array("Gallery", "/modules/gallery/helpers/gallery.php", "const VERSION ="),
array("Gallery", "/modules/gallery/helpers/gallery.php", "const VERSION ="),
);
foreach(glob("./{**/*,*}".$versions[0][1], GLOB_BRACE) as $versionfile){
foreach($versions as $row){
foreach(glob("./{**/*,*}".$row[1], GLOB_BRACE) as $versionfile){
$file = file_get_contents($versionfile);
$pattern = preg_quote($versions[0][2], '/');
$pattern = preg_quote($row[2], '/');
$pattern = "/^.*$pattern.*\$/m";
if(preg_match_all($pattern, $file, $matches)){
echo "<br />";
echo "Wordpress found:";
echo "<strong>".$row[0]." found:</strong><br />";
echo implode("<br />", $matches[0]);
print_r ("location: ".$versionfile);
echo "<br />";
print_r ("location:".$versionfile);
}
}
}
foreach(glob("./{**/*,*}".$versions[1][1], GLOB_BRACE) as $versionfile){
$file = file_get_contents($versionfile);
$pattern = preg_quote($versions[1][2], '/');
$pattern = "/^.*$pattern.*\$/m";
if(preg_match_all($pattern, $file, $matches)){
echo "<br />";
echo "osCommerce found:";
echo implode("<br />", $matches[0]);
print_r ("location: ".$versionfile);
}
}
echo $GLOBALS["red"] . $GLOBALS["br"] . "<h3><b>Scanning account for the installed scripts & their versions...</h3><br /></span>";
echo $GLOBALS["red"] . $GLOBALS["br"] . "Joomla<br /><br /></span>";
system ("find ../ -type f -path '*/includes/version.php' -exec grep -H '\$RELEASE\|\$DEV_LEVEL' {} \; ");
system ("find ../ -type f -path '*/libraries/joomla/version.php' -exec grep -H '\$RELEASE\ =\|\$DEV_LEVEL\ =' {} \; ");
system ("find ../ -type f -path '*/libraries/cms/version.php' -exec grep -H '\$RELEASE\ =\|\$DEV_LEVEL\ =' {} \; ");
system ("find ../ -type f -path '*/libraries/cms/version/version.php' -exec grep -H '\$RELEASE\ =\|\$DEV_LEVEL\ =' {} \; ");
system ("find ../ -type f -path '*/libraries/cms/version/version.php' -exec grep -H 'const\ RELEASE\ =\|const\ DEV_LEVEL\ =' {} \; ");
echo $GLOBALS["red"] . $GLOBALS["br"] . "ZenCart<br /><br /></span>";
system ("find ../ -type f -path '*/includes/version.php' -exec grep -HA2 \"define('PROJECT_VERSION_NAME', 'Zen Cart');\" {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "Drupal<br /><br /></span>";
system("find ../ type f -path '*/modules/system/system.info' -exec grep -H 'version = \"' {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "Timthumb<br /><br /></span>";
system("find ../ type f -name '*.php' ! -name 'sc.php' -exec grep -H \"TimThumb CONFIGURATION\|define ('VERSION',\" {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "phpBB<br /><br /></span>";
system("find ../ type f -path '*/includes/constants.php' -exec grep -H \"define('PHPBB_VERSION',\" {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "SMF<br /><br /></span>";
system("find ../ type f -path '*/index.php' -exec grep -H \"\$forum_version = 'SMF\" {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "Gallery<br /><br /></span>";
system("find ../ type f -path '*/modules/gallery/helpers/gallery.php' -exec grep -H 'const VERSION =' {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "Coppermine<br /><br /></span>";
system("find ../ type f -path '*/versioncheck.inc.php' -exec grep -H 'Coppermine version:' {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "4images<br /><br /></span>";
system("find ../ type f -path '*/includes/constants.php' -exec grep -H \"define('SCRIPT_VERSION',\" {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "MediaWiki<br /><br /></span>";
system("find ../ type f -path '*/includes/DefaultSettings.php' -exec grep -H '\$wgVersion =' {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "PHPlist<br /><br /></span>";
system("find ../ type f -path '*/admin/init.php' -exec grep -H 'define(\"VERSION\",' {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "RoundCube<br /><br /></span>";
system("find ../ type f -path '*/program/include/iniset.php' -exec grep -H \"define('RCMAIL_VERSION',\" {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "Squirrel Mail<br /><br /></span>";
system("find ../ type f -path '*/functions/strings.php' -exec grep -H '\$version =' {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "<h3><b>Scanning account for the installed scripts & their versions...</h3><br /></span>";
echo $GLOBALS["red"] . $GLOBALS["br"] . "Dede CMS<br /><br /></span>";
system("find ../ type f -path '*/config_base.php' -exec grep -H '\$cfg_soft_enname\|\$cfg_version' {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "Sugar CRM<br /><br /></span>";
system("find ../ type f -path '*/sugar_version.php' -exec grep -H '\$sugar_version' {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "XOOPS<br /><br /></span>";
system ("find ../ type f -path '*/version.php' -exec grep -H 'XOOPS_VERSION' {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "Concrete5<br /><br /></span>";
system ("find ../ type f -path '*/config/concrete.php' -exec grep -H 'version_installed' {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "Serendipity<br /><br /></span>";
system("find ../ type f -path '*/serendipity_config.inc.php' -exec grep -H \"\$serendipity\['version'\] =\" {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "OpenBlog<br /><br /></span>";
system("find ../ type f -path '*/application/config/open_blog.php' -exec grep -H \"\$config\['version'\] =\" {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "b2evolution<br /><br /></span>";
system("find ../ type f -path '*/conf/_application.php' -exec grep -H '\$app_version =' {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "Nucleus<br /><br /></span>";
system("find ../ type f -path '*/nucleus/libs/globalfunctions.php' -exec grep -H \"\$nucleus\['version'\] =\" {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "Dotclear<br /><br /></span>";
system("find ../ type f -path '*/inc/prepend.php' -exec grep -H \"define('DC_VERSION',\" {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "TextPattern<br /><br /></span>";
system("find ../ type f -path '*/textpattern/index.php' -exec grep -H '\$thisversion =' {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "NibbleBlog<br /><br /></span>";
system("find ../ type f -path '*/admin/boot/rules/98-constants.bit' -exec grep -H \"define('NIBBLEBLOG_VERSION',\" {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "Lifetype<br /><br /></span>";
system("find ../ type f -path '*/version.php' -exec grep -H '\$version = \"lifetype' {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "Chyrp<br /><br /></span>";
system("find ../ type f -path '*/includes/common.php' -exec grep -H \"define('CHYRP_VERSION',\" {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "PivotX<br /><br /></span>";
system("find ../ type f -path '*/pivotx/lib.php' -exec grep -H '\$version =' {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "FlatPress<br /><br /></span>";
system("find ../ type f -path '*/fp-includes/core/core.system.php' -exec grep -H \"define('SYSTEM_VER',\" {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "Status.Net<br /><br /></span>";
system("find ../ type f -path '*/lib/framework.php' -exec grep -H \"define('STATUSNET_BASE_VERSION',\" {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "Sharetronix<br /><br /></span>";
system("find ../ type f -path '*/system/conf_main.php' -exec grep -H '\$C->VERSION' {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "PageCookery<br /><br /></span>";
system("find ../ type f -path '*/global.php' -exec grep -H '\$pcm_version =' {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "StoryTLR<br /><br /></span>";
system("find ../ type f -path '*/index.php' -exec grep -H 'define(\"STORYTLR_VERSION\",' {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "PHP-Fusion<br /><br /></span>";
system("find ../ type f -path '*/administration/upgrade.php' -exec grep -H \"WHERE settings_name='version'\" {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "e107<br /><br /></span>";
system("find ../ type f -path '*/e107_admin/ver.php' -exec grep -H \"\$e107info\['e107_version'\] =\" {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "Open Real Estate<br /><br /></span>";
system("find ../ type f -path '*/index.php' -exec grep -H \"define('ORE_VERSION',\" {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "Zikula<br /><br /></span>";
system("find ../ type f -path '*/lib/Zikula/Core.php' -exec grep -H 'const VERSION_NUM =' {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "Website Baker<br /><br /></span>";
system("find ../ type f -path '*/pages/posts/index.php' -exec grep -H 'by WebsiteBaker Ver.' {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "Subrion<br /><br /></span>";
system("find ../ type f -path '*/index.php' -exec grep -H \"define('IA_VERSION', '\" {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "Pligg<br /><br /></span>";
system("find ../ type f -path '*/languages/lang_english.conf' -exec grep -H '//<VERSION>' {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "PyroCMS<br /><br /></span>";
system("find ../ type f -path '*/system/cms/config/constants.php' -exec grep -H \"define('CMS_VERSION',\" {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "Contao<br /><br /></span>";
system("find ../ type f -path '*/system/config/localconfig.php' -exec grep -H \"\$GLOBALS\['TL_CONFIG'\]\['latestVersion'\] =\" {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "Geeklog<br /><br /></span>";
system("find ../ type f -path '*/siteconfig.php' -exec grep -H \"define('VERSION',\" {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "Silverstripe<br /><br /></span>";
system("find ../ type f -path '*/cms/silverstripe_version' -print -exec cat {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "sNews<br /><br /></span>";
system("find ../ type f -path '*/snews.php' -exec grep -H 'sNews Version:' {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "jCore<br /><br /></span>";
system("find ../ type f -path '*/config.inc.php' -exec grep -H \"@define('JCORE_VERSION',\" {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "ImpressPages<br /><br /></span>";
system("find ../ type f -path '*/Ip/Application.php' -exec grep -H '; //CHANGE_ON_VERSION_UPDATE' {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "Quick.CMS<br /><br /></span>";
system("find ../ type f -path '*/database/config.php' -exec grep -H \"\$config\['version'\] =\" {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "ImpressCMS<br /><br /></span>"; /* triggers false positive for XOOPS as it's a fork of it */
system("find ../ type f -path '*/include/version.php' -exec grep -H \"define('ICMS_VERSION_NAME',\" {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "Monstra<br /><br /></span>";
system("find ../ type f -path '*/engine/Monstra.php' -exec grep -H 'const VERSION =' {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "phpwcms<br /><br /></span>";
system("find ../ type f -path '*/include/inc_lib/revision/revision.php' -exec grep -H \"define('PHPWCMS_VERSION'\" {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "Redaxscript<br /><br /></span>";
system("find ../ type f -path '*/languages/en.json' -exec grep -H '\"version\":' {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "Silex<br /><br /></span>";
system("find ../ type f -path '*/version.txt' -exec grep -H 'version=v' {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "Mahara<br /><br /></span>";
system("find ../ type f -path '*/lib/version.php' -exec grep -H '\$config->release =' {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "Saurus<br /><br /></span>";
system("find ../ type f -path '*/classes/site.class.php' -exec grep -H '\$this->script_version =' {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "Jamroom<br /><br /></span>";
system("find ../ type f -path '*/modules/jrCore/include.php' -exec grep -H \"'version' =>\" {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "Bolt<br /><br /></span>";
system("find ../ type f -path '*/src/Application.php' -exec grep -H \"\$values\['bolt_version'\] =\" {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "Pluck<br /><br /></span>";
system("find ../ type f -path '*/data/inc/security.php' -exec grep -H \"define('PLUCK_VERSION',\" {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "Croogo<br /><br /></span>";
system("find ../ type f -path '*/Vendor/croogo/croogo/VERSION.txt' -print -exec cat {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "Kirby<br /><br /></span>";
system("find ../ type f -path '*/kirby/kirby.php' -exec grep -H 'static public \$version =' {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "Zenario<br /><br /></span>";
system("find ../ type f -path '*/zenario/admin/db_updates/latest_revision_no.inc.php' -exec grep -H \"define('ZENARIO_CMS_VERSION',\" {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "Cotonti<br /><br /></span>";
system("find ../ type f -path '*/system/functions.php' -exec grep -H \"\$cfg\['version'\] =\" {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "appRain<br /><br /></span>";
system("find ../ type f -path '*/development/definition/system_configuration/config.xml' -exec grep -H '<appRainversion>' {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "ClipperCMS<br /><br /></span>"; /* forked from ModX */
system("find ../ type f -path '*/manager/includes/version.inc.php' -exec grep -H \"define('CMS_RELEASE_VERSION',\" {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "MyBB<br /><br /></span>";
system("find ../ type f -path '*/inc/class_core.php' -exec grep -H 'public \$version =' {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "AEF<br /><br /></span>";
system("find ../ type f -path '*/globals.php' -exec grep -HA1 '// AEF : Advanced Electron Forum' {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "Vanilla<br /><br /></span>";
system("find ../ type f -path '*/conf/config.php' -exec grep -H \"\$Configuration\['Vanilla'\]\['Version'\] =\" {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "PunBB<br /><br /></span>";
system("find ../ type f -path '*/include/constants.php' -exec grep -H \"define('FORUM_VERSION',\" {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "XMB<br /><br /></span>";
system("find ../ type f -path '*/db/mysql.php' -exec grep -HA1 '* eXtreme Message Board' {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "FluxBB<br /><br /></span>";
system("find ../ type f -path '*/include/common.php' -exec grep -H \"define('FORUM_VERSION',\" {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "Phorum<br /><br /></span>";
system("find ../ type f -path '*/common.php' -exec grep -H 'define( \"PHORUM\",' {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "MiniBB<br /><br /></span>";
system("find ../ type f -path '*/bb_functions.php' -exec grep -H '\$version=' {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "Piwigo<br /><br /></span>";
system("find ../ type f -path '*/include/constants.php' -exec grep -H \"define('PHPWG_VERSION',\" {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "TinyWebGallery<br /><br /></span>";
system("find ../ type f -path '*/config.php' -exec grep -H 'TWG version:' {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "phpAlbum<br /><br /></span>";
system("find ../ type f -path '*/main.php' -exec grep -H '\$phpalbum_version=\"' {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "iGalerie<br /><br /></span>";
system("find ../ type f -path '*/includes/classes/system.class.php' -exec grep -H 'public static \$galleryVersion =' {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "Dolphin<br /><br /></span>";
system("find ../ type f -path '*/modules/boonex/news/install/config.php' -exec grep -HA1 \"'compatible_with' => array(\" {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "Oxwall<br /><br /></span>";
system("find ../ type f -path '*/ow_version.xml' -exec grep -H '<version>' {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "Etano<br /><br /></span>";
system("find ../ type f -path '*/includes/defines.inc.php' -exec grep -H \"define('_INTERNAL_VERSION_',\" {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "PeoplePods<br /><br /></span>";
system("find ../ type f -path '*/peoplepods/lib/etc/options.php' -exec grep -H \"\$this->setLibOptions('last_database_update','\" {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "Family Connections<br /><br /></span>";
system("find ../ type f -path '*/install.php' -exec grep -H \"\$_POST\['contact'\], 'Family Connections\" {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "OSClass<br /><br /></span>";
system("find ../ type f -path '*/oc-load.php' -exec grep -H \"define('OSCLASS_VERSION',\" {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "Revive AdServer<br /><br /></span>";
system("find ../ type f -path '*/constants.php' -exec grep -H \"define('VERSION',\" {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "WebCalendar<br /><br /></span>";
system("find ../ type f -path '*/includes/config.php' -exec grep -H '\$PROGRAM_VERSION =' {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "Booked<br /><br /></span>";
system("find ../ type f -path '*/lib/Config/Configuration.php' -exec grep -H 'const VERSION =' {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "PHP iCalendar<br /><br /></span>";
system("find ../ type f -path '*/default_config.php' -exec grep -H '\$this->phpicalendar_version =' {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "WebMail Lite<br /><br /></span>";
system("find ../ type f -path '*/adminpanel/VERSION' -print -exec cat {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "Piwik<br /><br /></span>";
system("find ../ type f -path '*/core/Version.php' -exec grep -H 'const VERSION =' {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "Little Poll<br /><br /></span>";
system("find ../ type f -path '*/lp_admin.php' -exec grep -H 'Little Poll Admin Center v' {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "Sphider<br /><br /></span>";
system("find ../ type f -path '*/settings/conf.php' -exec grep -H '\$version_nr' {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "BigTree CMS<br /><br /></span>";
system("find ../ type f -path '*/core/version.php' -exec grep -H 'define(\"BIGTREE_VERSION\",\"' {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "Quick Cart<br /><br /></span>";
system("find ../ type f -path '*/database/config/general.php' -exec grep -H \"\$config\['version'\] = \" {} \;");
echo $GLOBALS["red"] . $GLOBALS["br"] . "gpEasy<br /><br /></span>";
system("find ../ type f -path '*/include/common.php' -exec grep -H \"define('gpversion','\" {} \;");
//echo $GLOBALS["red"] . $GLOBALS["br"] . "Timthumb<br /><br /></span>";
//system("find ../ type f -name '*.php'
echo $GLOBALS["red"] . $GLOBALS["br"] . "Elxis<br /><br /></span>";
system("find ../ type f -path '*/includes/version.php' -exec grep -HA4 '\$elxis_version = array(' {} \;");
@@ -2022,7 +1846,7 @@ default :
}
$settings = array (
'BASE_DIR' => $this->web_dir,
'BASE_DIR' => $GLOBALS["webroot"],
'USE_DEFINITIONS' => true,
'SIZE_LIMIT' => ( 1024 * 1024 ) //size limit set to 1mb
);