'; 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 '.$GLOBALS["webroot"].'-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() {

$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("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", "//"),
    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("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("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", ""),
    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("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("Oxwall", "/ow_version.xml", ""),
    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("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("Elxis", "/includes/version.php", "\$elxis_version = array("),
    array("CMSimple", "/cmsimple/cms.php", "define('CMSIMPLE_VERSION', '"),
    array("CRE Loaded", "/includes/version.php", "define('PROJECT_VERSION', '\[CRE Loaded v"),
    array("Expression Engine", "/config/config.php", "\$config\['app_version'\] ="),
    array("Pydio", "/conf/VERSION.php", "define(\"AJXP_VERSION\", \""),
    array("Aardvark Topsites", "/index.php", "\$TMPL\['version'\] ="),
    array("Open Web Analytics", "/owa_env.php", "define('OWA_VERSION', '"),
    array("CJ Dynamic Poll", "/poll_config.php", "\$version = \""),
    array("Logaholic", "/includes/version.php", "define(\"LOGAHOLIC_VERSION_NUMBER\", \""),
    array("Little Software Stats", "/inc/version.php", "define( 'VERSION'"),
    array("qdPM", "/core/apps/qdPM/templates/_footer.php", "target=\"_blank\">qdPM"),
    array("eyeOS", "/settings.php", "define('EYE_VERSION', '"),
    array("Collabtive", "/init.php", "\$template->assign(\"myversion\""),
    array("ProjectPier", "/version.php", "return '"),
    array("PHProjekt", "/VERSION", "PHProjekt"),
    array("TaskFreak", "/include/config.php", "define('FRK_VERSION','"),
    array("todoyu", "/core/inc/version.php", "define('TODOYU_VERSION', '"),
    array("FlySpray", "/includes/class.flyspray.php", "public \$version ="),
    array("Traq", "/vendor/traq/version.php", "define(\"TRAQ_VER\","),
    array("Eventum", "/init.php", "define('APP_VERSION',"),
    array("Burden", "/config.php", "define('VERSION',"), /* could produce too many false positives but there's no other way */
    array("Livezilla", "/_definitions/definitions.inc.php", "define(\"VERSION\","),
    array("Perch", "/admin/core/lib/Perch.class.php", "public \$version ="),
    array("Elefant CMS", "/conf/version.php", "ELEFANT_VERSION"),
    array("Wolf CMS", "/index.php", "define('CMS_VERSION\', '"),
    array("Anchor CMS", "/index.php", "define('VERSION', '"),
    array("CodeIgniter", "/CodeIgniter.php", "define('CI_VERSION', '"),
    array("GotCMS", "/library/Gc/Version.php", "const VERSION ="),
    array("Frog CMS", "/admin/index.php", "define('FROG_VERSION', '"),
    array("Pulse CMS", "/admin/index.php", "class=\"ver\">Pulse CMS"),
    array("Couch CMS", "/header.php", "define( 'K_COUCH_VERSION', '"),
    array("Kanboard", "/app/constants.php", "define('APP_VERSION', '"),
    array("XpressEngine", "/config/config.inc.php", "define('__XE_VERSION__',"),
    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("tDah Webmail", "/config.system.php", "\/SW_VERSION\/"),
    array("Agora Cart", "/agora.cgi", "\/versions\/"),

// still need to work on these
    array("CubeCart", "/index.php", "CubeCart v"), // may need one more line
    array("Soholaunch", "/index.php", "\#\# Soholaunch\(R\) Site Management Tool"), // needs two more lines
    array("Silverstripe", "/cms/silverstripe_version", "*"), //needs review
    array("Croogo", "/Vendor/croogo/croogo/VERSION.txt", "*"), // needs further review
    array("XMB", "/db/mysql.php", "* eXtreme Message Board"), // needs 2nd line too
    array("Dolphin", "/modules/boonex/news/install/config.php", "'compatible_with' => array("), // needs 2nd line too
    array("WebMail Lite", "/adminpanel/VERSION", "*"), // needs further review
    array("DotProj", "/includes/version.php", "\$dp_version_major"), // needs two more lines
    array("PHPCollab", "/includes/settings.php", "# PhpCollab version"), // needs second line as well
    array("Admidio", "/adm_program/system/constants.php", "define('ADMIDIO_VERSION_MAIN',"), // needs two more lines
    array("Get Simple CMS", "/admin/inc/configuration.php", "\$site_full_name"), // needs one more line
    array("SquirrelCart", "/squirrelcart/functions/base/sc_version.func.php", "function sc_version() {"), //needs one more line
    array("ELGG", "/version.php", "release ="), // false positives with Moodle -< needs one more line
    array("CMS Made Simple", "/version.php", "CMS_VERSION ="), // needs 3 lines more
    array("DataLife Engine", "/index.php", "dle_version ="), //needs one more line
    array("phpCoin", "/version.php", "ThisVersion"), //needs one more line
    array("Avactis", "/version.php", "PRODUCT_VERSION_NUMBER"), // needs one more line
    array("AccountLab Plus", "/version.php", "ALPversion="), // needs one more line
    array("Flynax Classifieds", "/control.inc.php", "VERSION:"), // may need one more line
    array("vBulletin", "/version.php", "fr_version ="), // may need one more line
    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($versions as $row){
foreach(glob("./{**/*,*}".$row[1], GLOB_BRACE) as $versionfile){

	$file = file_get_contents($versionfile);
	$pattern = preg_quote($row[2], '/');
	$pattern = "/^.*$pattern.*\$/m";
	if(preg_match_all($pattern, $file, $matches)){
	echo "
"; echo "".$row[0]." found:
"; echo implode("
", $matches[0]); echo "
"; print_r ("location:".$versionfile); } } } 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"] . "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"] . "Timthumb

"; //system("find ../ type f -name '*.php' /* 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 '\