'; unset($data); // @endof html table //@abstract populating the table head // @varname $data_a //@abstract taking the highest sized array and printing the key name. $data_a = $array[$max_i]; $table_head = ''; foreach($data_a as $key => $value) { $table_head .= ''. $key.''; } $table_head .= ''."\n"; //@endof populating the table head // @abstract printing the table data echo '
'.$table_head.$table_data; }//@endof function table_arrange /* Calculate sizes of all your databases in MB: SELECT table_schema "DB Name", SUM( data_length + index_length) / 1024 / 1024 "DB Size" FROM information_schema.TABLES GROUP BY table_schema ; Calculate table sizes for a specific database: SELECT TABLE_NAME, table_rows, data_length, index_length, round(((data_length + index_length) / 1024 / 1024),2) "Size in MB" FROM information_schema.TABLES WHERE table_schema = "PUT_YOUR_DATABASE_NAME_HERE"; */ function repl(){ echo "String Replacement"; echo '

'; echo 'Old String:

'; echo 'New String:

'; echo '

'; if(($_POST['submit']) == "Go") { $oldstr = ($_POST["oldstr"]); $newstr = ($_POST["newstr"]); system("grep -ilr '".$oldstr."' * | xargs -i@ sed -i 's/".$oldstr."/".$newstr."/g' @"); /* xargs /usr/bin/perl -w -i -p -e "s/your_old_string/your_new_string/g" */ echo 'all done'; } } /* getting the total size of a specific directory */ function getsize(){ $username = system('whoami'); echo "insert the location you wish to get the size for:
"; echo ''; echo $this->top_dir.''; echo ''; if(($_POST['send']) == "Get it") { $path = ($_POST["path"]); echo "
Getting size of: ".$path."
"; system('du -sh '.$this->top_dir.$path); } } /* looking for any backup files that would cause issues */ function findbackups(){ $ziparray = array("zip", "rar", "tgz", "tar.gz", "bz2", "tar"); foreach ($ziparray as $i => $valzip) { echo 'checking for backup files with extension: '.$valzip.'
'; system('find '.$this->web_dir.'./-name *.'.$valzip.' -exec du -sh {} \; | grep "backup"'); } } /* looking for SQL dumps that may expose sensitive info */ function findsql(){ echo 'checking for SQL dumps
'; system('find '.$GLOBALS[doc_root].' -name "*.sql" -exec du -sh {} \;'); } /* looking for large files that may crash the scans*/ function findlarge(){ echo 'checking for large files (over 10MB)
'; system('find '.$GLOBALS[doc_root].' -size +10000k -exec du -sh {} \;'); } /* looking for symlinks that may expose sensitive data and will crash the scans */ function findsymlinks(){ echo 'checking for symlinks
'; system("find ../ -type l -exec ls -al {} \;"); } /* generate a concantenated password for ZenCart */ function zencart(){ echo 'generating ZenCart concantenated password:
'; echo '
'; echo 'New Password:

'; echo '

'; if(($_POST['submit']) == "Go") { $password = ($_POST["newzen"]); $salt = substr(md5($password), 0, 2); $password = md5($salt . $password) . ':' . $salt; echo 'New Password Hash is:
'; echo $password; } } function mysqlpwd(){ echo '

'; echo 'MySQL Username:

'; echo 'Current Password:

'; echo 'New MySQL Password:

'; echo '

'; if(($_POST['submit']) == "Go") { $host = "localhost"; $pass = ($_POST["pwd"]); $actusr = ($_POST["actusr"]); $actpass = ($_POST["actpwd"]); $link = mysql_connect($host, $actusr, $actpass) or die(mysql_error()); mysql_query("SET PASSWORD FOR '".$actusr."'@'".$host."' = PASSWORD('".$pass."');") or die(mysql_error()); } mysql_close($link); } function pwds(){ system('find ../ -name "*.php" -type f -exec grep -HA4 "`whoami`_" {} \;'); } function clean(){ $dir = "../"; echo '

'; echo 'Malware String:
'; echo '

'; if(($_POST['submit']) == "Go") { $malware = ($_POST["malware"]); system(`find $dir -name "*.php" -type f |xargs sed -i 's###g' 2>&1`); echo "Malware removed.
\n"; } system(`find $dir -name "*.php" -type f | xargs sed -i '/./,$!d' 2>&1`); echo "Empty lines removed.
\n"; } function optim(){ echo '

'; echo 'MySQL Hostname/IP:
'; echo 'MySQL Username:'; echo 'MySQL Password:'; echo '

'; if(($_POST['submit']) == "Go") { $host = ($_POST["host"]); $user = ($_POST["usr"]); $pass = ($_POST["pwd"]); echo "".date('H:i:s').": Connecting to MySQL Server ....
"; $link = mysql_connect($host, $user, $pass) or die(mysql_error()); $result = mysql_list_dbs($link); while($raw = mysql_fetch_object($result)){ foreach($raw as $name){ $tables = mysql_list_tables($name); echo 'optimizing database '.$name.'
'; if($name == 'information_schema') { echo 'skipping information_schema
'; } else { echo "".date('H:i:s').": Get tables from database $name ....
"; while ($row = mysql_fetch_row($tables)) { echo "".date('H:i:s').": Optimize table $row[0] ....
"; mysql_query('optimize table '.$row[0].' ') or die(mysql_error()); } } echo "".date('H:i:s').": Table of Database ".$name." Optimized
"; } } mysql_free_result($result); mysql_close($link); } } function prefix(){ // Check for POST data $action = isset($_REQUEST['action'])?$_REQUEST['action']:false; if (!$action) { ?>
Enter database name:
Enter database user
Enter database password:
Enter New Prefix:
   

'; // Select database and grab table list mysql_select_db($mysql_db, $link) or die ("Database not found."); $tables = mysql_list_tables($mysql_db); // Pull table names into an array and replace prefixes $i = 0; while ($i < mysql_num_rows($tables)) { $table_name = mysql_tablename($tables, $i); $table_array[$i] = $table_name; $i++; } // Pull table names into another array after replacing prefixes foreach ($table_array as $key => $value) { $table_names[$key] = replace_prefix($value, $table_prefix); } // Write new table names back foreach ($table_array as $key => $value) { $query = sprintf('RENAME TABLE %s TO %s', $table_array[$key], $table_names[$key]); $result = mysql_query($query, $link); if (!$result) { $error = mysql_error(); echo "Could not $query : $error
"; } else { $message = sprintf('Successfully renamed %s to %s in %s', $table_array[$key], $table_names[$key], $mysql_db); echo "$message
"; } } // Free the resources mysql_close($link); } function replace_prefix($s, $prefix) { $pos = strpos($s, "_"); $s = substr($s, $pos + 1); $s = sprintf("%s_%s", $prefix, $s); return $s; } } function loop(){ system('find ../ -type l -exec ls -l {} \;'); } function lastfiles(){ system("find ../ -type f -printf '%T@ %p\t\t %t\n' | sort -k 1 -nr | sed 's/^[^ ]* //' | head -n 500"); } function execmd(){ } /* Let's Remove All Files So The Don't Fall In Wrong Hands */ function remove(){ unlink(__FILE__); unlink("../sc"); unlink("./sc.zip"); } function norun(){ if(''==$df) { echo "[X]=> No functions are disabled, this script should run without issues
"; } else { echo "WARNING!: The following functions are disabled, please check your php.ini ".$df."
"; } echo "[X]=> Use any of the functions above in order to suit your needs
"; echo "[X]=> Please be patient as this script uses recursive queries in order to determine the files
"; echo "[X]=> If you run this script on accounts higher than 50GB in size please monitor server load
"; echo "[X]=> There might be some false positives so please always double check results
"; echo $GLOBALS["red"] . "account size is: "; system ("du -sh /home/`whoami`/public_html"); echo $GLOBALS["red"] . "total files in public_html: "; system ("find ../ -type f | wc -l"); echo '
php.ini files with register_globals enabled:
'; system("find ../ -name php.ini -exec grep -Hli '^register_globals.*=.*On' {} \;"); echo '
Running processes:'; echo '
';
system("ps -eo pid,user,cmd | grep `whoami`");
}
echo '
';
//starting script functions


function version() {

/* batch #1 */

echo $GLOBALS["red"] . $GLOBALS["br"] . "

Scanning account for the installed scripts & their versions...


"; echo "

Batch #1 - Most used scripts:


"; echo $GLOBALS["red"] . $GLOBALS["br"] . "Wordpress

"; system ("find ../ -type f -path '*/wp-includes/version.php' -exec grep -H '\$wp_version =' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Joomla

"; 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"] . "osCommerce

"; system ("find ../ -type f -path '*/includes/application_top.php' -exec grep -H \"define('PROJECT_VERSION', 'osCommerce Online Merchant\" {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "ZenCart

"; system ("find ../ -type f -path '*/includes/version.php' -exec grep -HA2 \"define('PROJECT_VERSION_NAME', 'Zen Cart');\" {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Drupal

"; system("find ../ type f -path '*/modules/system/system.info' -exec grep -H 'version = \"' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Timthumb

"; system("find ../ type f -name '*.php' ! -name 'sc.php' -exec grep -H \"TimThumb CONFIGURATION\|define ('VERSION',\" {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "phpBB

"; system("find ../ type f -path '*/includes/constants.php' -exec grep -H \"define('PHPBB_VERSION',\" {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "SMF

"; system("find ../ type f -path '*/index.php' -exec grep -H \"\$forum_version = 'SMF\" {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Gallery

"; system("find ../ type f -path '*/modules/gallery/helpers/gallery.php' -exec grep -H 'const VERSION =' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Coppermine

"; system("find ../ type f -path '*/versioncheck.inc.php' -exec grep -H 'Coppermine version:' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "4images

"; system("find ../ type f -path '*/includes/constants.php' -exec grep -H \"define('SCRIPT_VERSION',\" {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "MediaWiki

"; system("find ../ type f -path '*/includes/DefaultSettings.php' -exec grep -H '\$wgVersion =' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "PHPlist

"; system("find ../ type f -path '*/admin/init.php' -exec grep -H 'define(\"VERSION\",' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "RoundCube

"; system("find ../ type f -path '*/program/include/iniset.php' -exec grep -H \"define('RCMAIL_VERSION',\" {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Squirrel Mail

"; system("find ../ type f -path '*/functions/strings.php' -exec grep -H '\$version =' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "

Scanning account for the installed scripts & their versions...


"; echo $GLOBALS["red"] . $GLOBALS["br"] . "Dede CMS

"; system("find ../ type f -path '*/config_base.php' -exec grep -H '\$cfg_soft_enname\|\$cfg_version' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Sugar CRM

"; system("find ../ type f -path '*/sugar_version.php' -exec grep -H '\$sugar_version' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "XOOPS

"; system ("find ../ type f -path '*/version.php' -exec grep -H 'XOOPS_VERSION' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Concrete5

"; system ("find ../ type f -path '*/config/concrete.php' -exec grep -H 'version_installed' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Serendipity

"; system("find ../ type f -path '*/serendipity_config.inc.php' -exec grep -H \"\$serendipity\['version'\] =\" {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "OpenBlog

"; system("find ../ type f -path '*/application/config/open_blog.php' -exec grep -H \"\$config\['version'\] =\" {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "b2evolution

"; system("find ../ type f -path '*/conf/_application.php' -exec grep -H '\$app_version =' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Nucleus

"; system("find ../ type f -path '*/nucleus/libs/globalfunctions.php' -exec grep -H \"\$nucleus\['version'\] =\" {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Dotclear

"; system("find ../ type f -path '*/inc/prepend.php' -exec grep -H \"define('DC_VERSION',\" {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "TextPattern

"; system("find ../ type f -path '*/textpattern/index.php' -exec grep -H '\$thisversion =' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "NibbleBlog

"; system("find ../ type f -path '*/admin/boot/rules/98-constants.bit' -exec grep -H \"define('NIBBLEBLOG_VERSION',\" {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Lifetype

"; system("find ../ type f -path '*/version.php' -exec grep -H '\$version = \"lifetype' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Chyrp

"; system("find ../ type f -path '*/includes/common.php' -exec grep -H \"define('CHYRP_VERSION',\" {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "PivotX

"; system("find ../ type f -path '*/pivotx/lib.php' -exec grep -H '\$version =' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "FlatPress

"; system("find ../ type f -path '*/fp-includes/core/core.system.php' -exec grep -H \"define('SYSTEM_VER',\" {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Status.Net

"; system("find ../ type f -path '*/lib/framework.php' -exec grep -H \"define('STATUSNET_BASE_VERSION',\" {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Sharetronix

"; system("find ../ type f -path '*/system/conf_main.php' -exec grep -H '\$C->VERSION' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "PageCookery

"; system("find ../ type f -path '*/global.php' -exec grep -H '\$pcm_version =' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "StoryTLR

"; system("find ../ type f -path '*/index.php' -exec grep -H 'define(\"STORYTLR_VERSION\",' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "PHP-Fusion

"; system("find ../ type f -path '*/administration/upgrade.php' -exec grep -H \"WHERE settings_name='version'\" {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "e107

"; system("find ../ type f -path '*/e107_admin/ver.php' -exec grep -H \"\$e107info\['e107_version'\] =\" {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Open Real Estate

"; system("find ../ type f -path '*/index.php' -exec grep -H \"define('ORE_VERSION',\" {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Zikula

"; system("find ../ type f -path '*/lib/Zikula/Core.php' -exec grep -H 'const VERSION_NUM =' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Website Baker

"; system("find ../ type f -path '*/pages/posts/index.php' -exec grep -H 'by WebsiteBaker Ver.' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Subrion

"; system("find ../ type f -path '*/index.php' -exec grep -H \"define('IA_VERSION', '\" {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Pligg

"; system("find ../ type f -path '*/languages/lang_english.conf' -exec grep -H '//' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "PyroCMS

"; system("find ../ type f -path '*/system/cms/config/constants.php' -exec grep -H \"define('CMS_VERSION',\" {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Contao

"; system("find ../ type f -path '*/system/config/localconfig.php' -exec grep -H \"\$GLOBALS\['TL_CONFIG'\]\['latestVersion'\] =\" {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Geeklog

"; system("find ../ type f -path '*/siteconfig.php' -exec grep -H \"define('VERSION',\" {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Silverstripe

"; system("find ../ type f -path '*/cms/silverstripe_version' -print -exec cat {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "sNews

"; system("find ../ type f -path '*/snews.php' -exec grep -H 'sNews Version:' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "jCore

"; system("find ../ type f -path '*/config.inc.php' -exec grep -H \"@define('JCORE_VERSION',\" {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "ImpressPages

"; system("find ../ type f -path '*/Ip/Application.php' -exec grep -H '; //CHANGE_ON_VERSION_UPDATE' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Quick.CMS

"; system("find ../ type f -path '*/database/config.php' -exec grep -H \"\$config\['version'\] =\" {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "ImpressCMS

"; /* 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

"; system("find ../ type f -path '*/engine/Monstra.php' -exec grep -H 'const VERSION =' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "phpwcms

"; system("find ../ type f -path '*/include/inc_lib/revision/revision.php' -exec grep -H \"define('PHPWCMS_VERSION'\" {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Redaxscript

"; system("find ../ type f -path '*/languages/en.json' -exec grep -H '\"version\":' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Silex

"; system("find ../ type f -path '*/version.txt' -exec grep -H 'version=v' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Mahara

"; system("find ../ type f -path '*/lib/version.php' -exec grep -H '\$config->release =' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Saurus

"; system("find ../ type f -path '*/classes/site.class.php' -exec grep -H '\$this->script_version =' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Jamroom

"; system("find ../ type f -path '*/modules/jrCore/include.php' -exec grep -H \"'version' =>\" {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Bolt

"; system("find ../ type f -path '*/src/Application.php' -exec grep -H \"\$values\['bolt_version'\] =\" {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Pluck

"; system("find ../ type f -path '*/data/inc/security.php' -exec grep -H \"define('PLUCK_VERSION',\" {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Croogo

"; system("find ../ type f -path '*/Vendor/croogo/croogo/VERSION.txt' -print -exec cat {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Kirby

"; system("find ../ type f -path '*/kirby/kirby.php' -exec grep -H 'static public \$version =' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Zenario

"; 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

"; system("find ../ type f -path '*/system/functions.php' -exec grep -H \"\$cfg\['version'\] =\" {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "appRain

"; system("find ../ type f -path '*/development/definition/system_configuration/config.xml' -exec grep -H '' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "ClipperCMS

"; /* 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

"; system("find ../ type f -path '*/inc/class_core.php' -exec grep -H 'public \$version =' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "AEF

"; system("find ../ type f -path '*/globals.php' -exec grep -HA1 '// AEF : Advanced Electron Forum' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Vanilla

"; system("find ../ type f -path '*/conf/config.php' -exec grep -H \"\$Configuration\['Vanilla'\]\['Version'\] =\" {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "PunBB

"; system("find ../ type f -path '*/include/constants.php' -exec grep -H \"define('FORUM_VERSION',\" {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "XMB

"; system("find ../ type f -path '*/db/mysql.php' -exec grep -HA1 '* eXtreme Message Board' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "FluxBB

"; system("find ../ type f -path '*/include/common.php' -exec grep -H \"define('FORUM_VERSION',\" {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Phorum

"; system("find ../ type f -path '*/common.php' -exec grep -H 'define( \"PHORUM\",' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "MiniBB

"; system("find ../ type f -path '*/bb_functions.php' -exec grep -H '\$version=' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Piwigo

"; system("find ../ type f -path '*/include/constants.php' -exec grep -H \"define('PHPWG_VERSION',\" {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "TinyWebGallery

"; system("find ../ type f -path '*/config.php' -exec grep -H 'TWG version:' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "phpAlbum

"; system("find ../ type f -path '*/main.php' -exec grep -H '\$phpalbum_version=\"' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "iGalerie

"; system("find ../ type f -path '*/includes/classes/system.class.php' -exec grep -H 'public static \$galleryVersion =' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Dolphin

"; system("find ../ type f -path '*/modules/boonex/news/install/config.php' -exec grep -HA1 \"'compatible_with' => array(\" {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Oxwall

"; system("find ../ type f -path '*/ow_version.xml' -exec grep -H '' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Etano

"; system("find ../ type f -path '*/includes/defines.inc.php' -exec grep -H \"define('_INTERNAL_VERSION_',\" {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "PeoplePods

"; 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

"; system("find ../ type f -path '*/install.php' -exec grep -H \"\$_POST\['contact'\], 'Family Connections\" {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "OSClass

"; system("find ../ type f -path '*/oc-load.php' -exec grep -H \"define('OSCLASS_VERSION',\" {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Revive AdServer

"; system("find ../ type f -path '*/constants.php' -exec grep -H \"define('VERSION',\" {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "WebCalendar

"; system("find ../ type f -path '*/includes/config.php' -exec grep -H '\$PROGRAM_VERSION =' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Booked

"; system("find ../ type f -path '*/lib/Config/Configuration.php' -exec grep -H 'const VERSION =' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "PHP iCalendar

"; system("find ../ type f -path '*/default_config.php' -exec grep -H '\$this->phpicalendar_version =' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "WebMail Lite

"; system("find ../ type f -path '*/adminpanel/VERSION' -print -exec cat {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Piwik

"; system("find ../ type f -path '*/core/Version.php' -exec grep -H 'const VERSION =' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Little Poll

"; system("find ../ type f -path '*/lp_admin.php' -exec grep -H 'Little Poll Admin Center v' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Sphider

"; system("find ../ type f -path '*/settings/conf.php' -exec grep -H '\$version_nr' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "BigTree CMS

"; system("find ../ type f -path '*/core/version.php' -exec grep -H 'define(\"BIGTREE_VERSION\",\"' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Quick Cart

"; system("find ../ type f -path '*/database/config/general.php' -exec grep -H \"\$config\['version'\] = \" {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "gpEasy

"; system("find ../ type f -path '*/include/common.php' -exec grep -H \"define('gpversion','\" {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Elxis

"; system("find ../ type f -path '*/includes/version.php' -exec grep -HA4 '\$elxis_version = array(' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "CMSimple

"; system("find ../ type f -path '*/cmsimple/cms.php' -exec grep -H \"define('CMSIMPLE_VERSION', '\" {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "CRE Loaded

"; system("find ../ type f -path '*/includes/version.php' -exec grep -H \"define('PROJECT_VERSION', '\[CRE Loaded v\" {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Expression Engine

"; system("find ../ type f -path '*/config/config.php' -exec grep -H \"\$config\['app_version'\] = \" {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Pydio

"; system("find ../ type f -path '*/conf/VERSION.php' -exec grep -H 'define(\"AJXP_VERSION\", \"' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Aardvark Topsites

"; system("find ../ type f -path '*/index.php' -exec grep -H \"\$TMPL\['version'\] =\" {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Open Web Analytics

"; system("find ../ type f -path '*/owa_env.php' -exec grep -H \"define('OWA_VERSION', '\" {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "CJ Dynamic Poll

"; system("find ../ type f -path '*/poll_config.php' -exec grep -H '\$version = \"' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Logaholic

"; system("find ../ type f -path '*/includes/version.php' -exec grep -H 'define(\"LOGAHOLIC_VERSION_NUMBER\", \"' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Little Software Stats

"; system("find ../ type f -path '*/inc/version.php' -exec grep -H \"define( 'VERSION'\" {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "qdPM

"; system("find ../ type f -path '*/core/apps/qdPM/templates/_footer.php' -exec grep -H 'target=\"_blank\">qdPM' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "eyeOS

"; system("find ../ type f -path '*/settings.php' -exec grep -H \"define('EYE_VERSION', '\" {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Collabtive

"; system("find ../ type f -path '*/init.php' -exec grep -H '\$template->assign(\"myversion\"' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "DotProj

"; system("find ../ type f -path '*/includes/version.php' -exec grep -HA2 '\$dp_version_major' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "ProjectPier

"; system("find ../ type f -path '*/version.php' -exec grep -H \"return '\" {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "PHProjekt

"; system("find ../ type f -path '*/VERSION' -exec grep -H 'PHProjekt ' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "TaskFreak

"; system("find ../ type f -path '*/include/config.php' -exec grep -H \"define('FRK_VERSION','\" {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "todoyu

"; system("find ../ type f -path '*/core/inc/version.php' -exec grep -H \"define('TODOYU_VERSION', '\" {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "FlySpray

"; system("find ../ type f -path '*/includes/class.flyspray.php' -exec grep -H 'public \$version =' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "PHPCollab

"; system("find ../ type f -path '*/includes/settings.php' -exec grep -HA1 '# PhpCollab version' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Traq

"; system("find ../ type f -path '*/vendor/traq/version.php' -exec grep -H 'define(\"TRAQ_VER\",' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Admidio

"; system("find ../ type f -path '*/adm_program/system/constants.php' -exec grep -HA2 \"define('ADMIDIO_VERSION_MAIN',\" {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Eventum

"; system("find ../ type f -path '*/init.php' -exec grep -H \"define('APP_VERSION',\" {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Burden

"; system("find ../ type f -path '*/config.php' -exec grep -H \"define('VERSION',\" {} \;"); /* could produce too many false positives but there's no other way */ echo $GLOBALS["red"] . $GLOBALS["br"] . "Livezilla

"; system("find ../ type f -path '*/_definitions/definitions.inc.php' -exec grep -H 'define(\"VERSION\",' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Perch

"; system("find ../ type f -path '*/admin/core/lib/Perch.class.php' -exec grep -H 'public \$version =' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Elefant CMS

"; system("find ../ type f -path '*/conf/version.php' -exec grep -H 'ELEFANT_VERSION' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Wolf CMS

"; system("find ../ type f -path '*/index.php' -exec grep -H \"define('CMS_VERSION\', '\" {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Get Simple CMS

"; system("find ../ type f -path '*/admin/inc/configuration.php' -exec grep -HA1 '\$site_full_name' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Anchor CMS

"; system("find ../ type f -path '*/index.php' -exec grep -H \"define('VERSION', '\" {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "CodeIgniter

"; system("find ../ type f -path '*/CodeIgniter.php' -exec grep -H \"define('CI_VERSION', '\" {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "GotCMS

"; system("find ../ type f -path '*/library/Gc/Version.php' -exec grep -H 'const VERSION =' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Frog CMS

"; system("find ../ type f -path '*/admin/index.php' -exec grep -H \"define('FROG_VERSION', '\" {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Pulse CMS

"; system("find ../ type f -path '*/admin/index.php' -exec grep -H 'class=\"ver\">Pulse CMS' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Couch CMS

"; system("find ../ type f -path '*/header.php' -exec grep -H \"define( 'K_COUCH_VERSION', '\" {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Kanboard

"; system("find ../ type f -path '*/app/constants.php' -exec grep -H \"define('APP_VERSION', '\" {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "XpressEngine

"; system("find ../ type f -path '*/config/config.inc.php' -exec grep -H \"define('__XE_VERSION__',\" {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Hesk

"; system("find ../ type f -path '*/hesk_settings.inc.php' -exec grep -H \"\$hesk_settings['hesk_version']=\" {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "PHPWiki

"; system("find ../ type f -path '*/lib/config.php' -exec grep -H \"define('PHPWIKI_VERSION',\" {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "PixelPost

"; system("find ../ type f -path '*/includes/pixelpost.php' -exec grep -H 'Pixelpost version ' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "SquirrelCart

"; system("find ../ type f -path '*/squirrelcart/functions/base/sc_version.func.php' -exec grep -HA1 'function sc_version() {' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "PrestaShop

"; system("find ../ type f -path '*/config/settings.inc.php' -exec grep -H \"define('_PS_VERSION_',\" {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "ELGG

"; system ("find ../ -name version.php -exec grep -HA1 'release = ' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "CMS Made Simple

"; system ("find ../ -name version.php -exec grep -HA3 'CMS_VERSION =' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "DataLife Engine

"; system("find ../ -name index.php -exec grep -HA1 'dle_version = ' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "phpCoin

"; system ("find ../ -name version.php -exec grep -HA1 'ThisVersion' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Avactis

"; system ("find ../ -name version.php -exec grep -HA1 'PRODUCT_VERSION_NUMBER' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "AccountLab Plus

"; system ("find ../ -name version.php -exec grep -HA1 'ALPversion=' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "tDah Webmail

"; system("find ../ -name config.system.php -print -exec awk '/define/ && /SW_VERSION/' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Agora Cart

"; system("find ../ -name agora.cgi -print -exec awk '/versions/ && /agora.cgi/' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Flynax Classifieds

"; system("find ../ -name control.inc.php -exec grep -HA1 'VERSION:' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "vBulletin

"; system("find ../ -name version.php -exec grep -HA1 'fr_version = ' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "CubeCart

"; system("find ../ -name index.php -exec grep -HA1 'CubeCart v' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Soholaunch

"; system("find ../ -name index.php -exec grep -HA2 '\#\# Soholaunch\(R\) Site Management Tool' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "PHP Pro Bid

"; system("find ../ -name index.php -exec grep -HA1 'PHP Pro Bid v' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "ITLPoll

"; system("find ../ -name index.php -exec grep -HA1 'ITLPoll Version ' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Openads

"; system("find ../ -name index.php -exec grep -HA1 '\/\* Openads ' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "phpFormGenerator

"; system("find ../ -name index.php -exec grep -HA1 '\phpFormGenerator v' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "LightMon Engine

"; system("find ../ -name index.php -exec grep -HA1 ' * LightMon v' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Kasseler CMS

"; system("find ../ -name index.php -exec grep -HA4 'by Kasseler CMS' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Silurus Classifieds Builder
"; system("find ../ -name index.php -exec grep -HA7 '* Silurus Classifieds Builder' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Bitweaver
"; system("find ../ -name config_defaults_inc.php -exec grep -HA3 'BIT_MAJOR_VERSION' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "phpFoX
"; system("find ../ -name version.php -exec grep -HA1 '\$_CONF\[\'info.version\'\] =' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Open Conference System
"; system("find ../ -name version.xml -exec grep -HA1 '\' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "SPIP
"; system("find ../ -name svn.revision -exec grep -HA1 'Origine: svn:' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Exponent
"; system("find ../ -name exponent_version.php -exec grep -HA7 'EXPONENT_VERSION_MAJOR' {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Oxy Classifieds
"; system("find ../ -name version -exec head -n 2 {} \;"); echo $GLOBALS["red"] . $GLOBALS["br"] . "Anova Pro
"; system("find ../ -name version.txt -exec grep -HA1 'Anova Pro :' {} \;"); /* echo $GLOBALS["red"] . $GLOBALS["br"] . "Question2Answer
"; system("find ../ -name VERSION.txt -exec head -n 1 {} \;"); - this causes too many false positives */ } //custom pattern scanner function custom(){ echo '


'; echo 'Enter desired string:
'; echo ''; if(($_POST['submit']) == "Go") { $string = ($_POST["customz"]); echo "
Scanning for: ".$string."
"; system('grep -RHl '.$string.' /home/`whoami`/public_html'); } } /* function spam(){
} */ function less(){ $rray = array("php", "js", "css", "pl"); foreach ($rray as $i => $vals) { /* echo '\