diff --git a/cms-ver.php b/cms-ver.php index 31361e0..10739c2 100644 --- a/cms-ver.php +++ b/cms-ver.php @@ -127,7 +127,7 @@ $versions = array( 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\/"), + array("Agora Cart", "/agora.cgi", "\$versions{'agora.cgi'}"), array("CKeditor", "/ckeditor/CHANGES.html", "CKEditor Changelog"), array("Dokeos", "main/inc/installedVersion.inc.php", "\$dokeos_version"), array("CakePHP","cake/config/config.php","\$config['Cake.version'] ="), diff --git a/malware5.pl b/malware5.pl index 18dbb63..0aedce6 100644 --- a/malware5.pl +++ b/malware5.pl @@ -231,8 +231,11 @@ my @regexen = ( qr/<\?php\s+\$OO00O0\=\d\;eval\(gzinflate\(base64\_decode\(str\_rot13\(.+?\)\)\)\)\;\?>/is, qr/<\?php\s+\$OO00O0\=\d\;eval\s+\(gzinflate\s+\(base64\_decode\s+\(str\_rot13\s+\(.+?\)\)\)\)\;\?>/is, qr/RewriteRule\s+\^g\(\\d\+\)\[\-\/\]\.\*.+?RewriteRule\s+\^v\(\\d\+\)\[\-\/\]\.\*.+?RewriteRule\s+\^\.\*\[\-\/\]g\(\\d\+\)\[\-\/\]v\(\\d\+\)\[\-\/\]\.\*\$\s+index\\\.php\?id\=\$1\-\$2\&\%\{QUERY\_STRING\}\s+\[L\]/is, + qr/<\?php.+?\@system\(\"killall\s+\-9\s+\"\.basename\(\"\/usr\/bin\/host\"\)\)\;.+?\@unlink\(\"1\.sh\"\)\;\s+\?>/is, + qr/<\?php.+?function\s+getDirContents\(\$dir\)\s+\{.+?if\(unlink\(\$path\.\'\/wp\-admin\/update\-core\.php\'\)\)\s+\{.+?\}\s+\}\s+\?>/is, + ); my @base64_decodes = ( diff --git a/malwaresh.pl b/malwaresh.pl new file mode 100644 index 0000000..b51a456 --- /dev/null +++ b/malwaresh.pl @@ -0,0 +1,834 @@ +#!/usr/bin/perl + +use strict; +use warnings; +use CGI; + +BEGIN { + $SIG{__DIE__} = sub { + my $msg = shift; + print "status: 500\n"; + print "content-type: text/html\n\n"; + $msg =~ s/\n/\0/g; + print "error: $msg\n"; + CORE::die $msg; + } +} + +$| = 1; +our $q = CGI->new; +print "Content-type: text/html\n\n"; + +my @regexen = ( + qr/<\?php\s+\/\*\s+Plugin\s+Name\:\s+antisp.+?add\_filter\(\'all\_plugins\'\,\s+\'ANTISP\_hide\'\)\;/is, + qr/<\?php.+?\;\$\{\"G.+?\;global\$mysqli\;global\$dbHost\;global\$dbUser\;\$.+?\;else\s+return\;break\;\}\}\s+\?>/is, + qr/