Easy .
and i test one of your rules and BOOM it worked .
Let me show you how ,
first of all , clamscan is a Linux anti Virus , Very FAST more than your plug in.
If you dont know about ” clamscan ” please google it.
Now , clamscan support Regex definitions , as yours
lamscan use
Yara-Rules
eg :
rule iframe_ru
{
strings:
<code>$re1 = /(document\.write\(|echo )['"]<iframe .+\.ru\/.+<\/iframe></code>['"][ \);]+/
condition:
$re1
`}
and we save the file in clamscan folder :
/var/lib/clamav
as sing.yar
and test , the report will be some thing like :
./test.html: YARA.iframe_ru.UNOFFICIAL FOUND
———– SCAN SUMMARY ———–
Known viruses: 4130714
Engine version: 0.99
Scanned directories: 0
Scanned files: 1
Infected files: 1
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 16.424 sec (0 m 16 s)
if you like i can work with you on this so you can offer your user an easy / FAST way to scan the server if thy have SSH .