If someone wants to detect all links that points to an executable file, 
the following regex will do it:

<<<(?:(?i:[\=\%][46]8|\&\#(?:0?72|104)\;?|h)(?:\=(?:\015?\012|\015))?(?i:[\=\%][57]4|\&\#(?:0?84|116)\;?|t)(?:\=(?:\015?\012|\015))?|(?i:[\=\%][46]6|\&\#(?:0?70|102)\;?|f)(?:\=(?:\015?\012|\015))?)(?i:[\=\%][57]4|\&\#(?:0?84|116)\;?|t)(?:\=(?:\015?\012|\015))?(?i:[\=\%][57]0|\&\#(?:0?80|112)\;?|p)(?:\=(?:\015?\012|\015))?(?i:[\=\%][57]3|\&\#(?:0?83|115)\;?|s)?(?:\=(?:\015?\012|\015))?(?:[\=\%]3[aA]|\&\#0?58\;?|\:)(?:\=(?:\015?\012|\015))?(?:(?:[\=\%]2[fF]|\&\#0?47\;?|\/)(?:\=(?:\015?\012|\015))?){2}(?:[\x20-\x7E](?:\=(?:\015?\012|\015))?){10,}?(?:[\=\%]2[eE]|\&\#0?46\;?|\.)(?:\=(?:\015?\012|\015))?(?:(?:(?i:[\=\%][57]3|\&\#(?:0?83|115)\;?|s)(?:\=(?:\015?\012|\015))?(?i:[\=\%][46]3|\&\#0?(?:67|99)\;?|c)(?:\=(?:\015?\012|\015))?(?i:[\=\%][57]2|\&\#(?:0?82|114)\;?|r)|(?:(?i:[\=\%](?i:41|61)|\&\#(?:0?65|0?97)\;?|a)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:44|64)|\&\#(?:0?68|100)\;?|d)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:45|65)|\&\#(?:0?69|101)\;?|e)(?:\=(?:\015?\012|\015))?)|(?:(?i:[\=\%](?i:41|61)|\&\#(?:0?65|0?97)\;?|a)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:44|64)|\&\#(?:0?68|100)\;?|d)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:50|70)|\&\#(?:0?80|112)\;?|p)(?:\=(?:\015?\012|\015))?)|(?:(?i:[\=\%](?i:41|61)|\&\#(?:0?65|0?97)\;?|a)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:53|73)|\&\#(?:0?83|115)\;?|s)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:58|78)|\&\#(?:0?88|120)\;?|x)(?:\=(?:\015?\012|\015))?)|(?:(?i:[\=\%](?i:42|62)|\&\#(?:0?66|0?98)\;?|b)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:41|61)|\&\#(?:0?65|0?97)\;?|a)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:53|73)|\&\#(?:0?83|115)\;?|s)(?:\=(?:\015?\012|\015))?)|(?:(?i:[\=\%](?i:42|62)|\&\#(?:0?66|0?98)\;?|b)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:41|61)|\&\#(?:0?65|0?97)\;?|a)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:54|74)|\&\#(?:0?84|116)\;?|t)(?:\=(?:\015?\012|\015))?)|(?:(?i:[\=\%](?i:43|63)|\&\#(?:0?67|99)\;?|c)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:48|68)|\&\#(?:0?72|104)\;?|h)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:4d|6d)|\&\#(?:0?77|109)\;?|m)(?:\=(?:\015?\012|\015))?)|(?:(?i:[\=\%](?i:43|63)|\&\#(?:0?67|99)\;?|c)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:4d|6d)|\&\#(?:0?77|109)\;?|m)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:44|64)|\&\#(?:0?68|100)\;?|d)(?:\=(?:\015?\012|\015))?)|(?:(?i:[\=\%](?i:43|63)|\&\#(?:0?67|99)\;?|c)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:4f|6f)|\&\#(?:0?79|111)\;?|o)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:4d|6d)|\&\#(?:0?77|109)\;?|m)(?:\=(?:\015?\012|\015))?)|(?:(?i:[\=\%](?i:43|63)|\&\#(?:0?67|99)\;?|c)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:50|70)|\&\#(?:0?80|112)\;?|p)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:4c|6c)|\&\#(?:0?76|108)\;?|l)(?:\=(?:\015?\012|\015))?)|(?:(?i:[\=\%](?i:43|63)|\&\#(?:0?67|99)\;?|c)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:52|72)|\&\#(?:0?82|114)\;?|r)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:54|74)|\&\#(?:0?84|116)\;?|t)(?:\=(?:\015?\012|\015))?)|(?:(?i:[\=\%](?i:44|64)|\&\#(?:0?68|100)\;?|d)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:42|62)|\&\#(?:0?66|0?98)\;?|b)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:58|78)|\&\#(?:0?88|120)\;?|x)(?:\=(?:\015?\012|\015))?)|(?:(?i:[\=\%](?i:45|65)|\&\#(?:0?69|101)\;?|e)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:58|78)|\&\#(?:0?88|120)\;?|x)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:45|65)|\&\#(?:0?69|101)\;?|e)(?:\=(?:\015?\012|\015))?)|(?:(?i:[\=\%](?i:48|68)|\&\#(?:0?72|104)\;?|h)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:4c|6c)|\&\#(?:0?76|108)\;?|l)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:50|70)|\&\#(?:0?80|112)\;?|p)(?:\=(?:\015?\012|\015))?)|(?:(?i:[\=\%](?i:48|68)|\&\#(?:0?72|104)\;?|h)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:54|74)|\&\#(?:0?84|116)\;?|t)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:41|61)|\&\#(?:0?65|0?97)\;?|a)(?:\=(?:\015?\012|\015))?)|(?:(?i:[\=\%](?i:48|68)|\&\#(?:0?72|104)\;?|h)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:54|74)|\&\#(?:0?84|116)\;?|t)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:42|62)|\&\#(?:0?66|0?98)\;?|b)(?:\=(?:\015?\012|\015))?)|(?:(?i:[\=\%](?i:49|69)|\&\#(?:0?73|105)\;?|i)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:4e|6e)|\&\#(?:0?78|110)\;?|n)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:46|66)|\&\#(?:0?70|102)\;?|f
)(?:\=(?:\015?\012|\015))?)|(?:(?i:[\=\%](?i:49|69)|\&\#(?:0?73|105)\;?|i)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:4e|6e)|\&\#(?:0?78|110)\;?|n)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:53|73)|\&\#(?:0?83|115)\;?|s)(?:\=(?:\015?\012|\015))?)|(?:(?i:[\=\%](?i:49|69)|\&\#(?:0?73|105)\;?|i)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:53|73)|\&\#(?:0?83|115)\;?|s)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:50|70)|\&\#(?:0?80|112)\;?|p)(?:\=(?:\015?\012|\015))?)|(?:(?i:[\=\%](?i:4a|6a)|\&\#(?:0?74|106)\;?|j)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:53|73)|\&\#(?:0?83|115)\;?|s)(?:\=(?:\015?\012|\015))?)|(?:(?i:[\=\%](?i:4a|6a)|\&\#(?:0?74|106)\;?|j)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:53|73)|\&\#(?:0?83|115)\;?|s)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:45|65)|\&\#(?:0?69|101)\;?|e)(?:\=(?:\015?\012|\015))?)|(?:(?i:[\=\%](?i:4c|6c)|\&\#(?:0?76|108)\;?|l)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:4e|6e)|\&\#(?:0?78|110)\;?|n)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:4b|6b)|\&\#(?:0?75|107)\;?|k)(?:\=(?:\015?\012|\015))?)|(?:(?i:[\=\%](?i:4d|6d)|\&\#(?:0?77|109)\;?|m)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:48|68)|\&\#(?:0?72|104)\;?|h)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:54|74)|\&\#(?:0?84|116)\;?|t)(?:\=(?:\015?\012|\015))?)|(?:(?i:[\=\%](?i:4d|6d)|\&\#(?:0?77|109)\;?|m)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:53|73)|\&\#(?:0?83|115)\;?|s)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:43|63)|\&\#(?:0?67|99)\;?|c)(?:\=(?:\015?\012|\015))?)|(?:(?i:[\=\%](?i:4d|6d)|\&\#(?:0?77|109)\;?|m)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:53|73)|\&\#(?:0?83|115)\;?|s)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:49|69)|\&\#(?:0?73|105)\;?|i)(?:\=(?:\015?\012|\015))?)|(?:(?i:[\=\%](?i:4d|6d)|\&\#(?:0?77|109)\;?|m)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:53|73)|\&\#(?:0?83|115)\;?|s)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:50|70)|\&\#(?:0?80|112)\;?|p)(?:\=(?:\015?\012|\015))?)|(?:(?i:[\=\%](?i:4d|6d)|\&\#(?:0?77|109)\;?|m)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:53|73)|\&\#(?:0?83|115)\;?|s)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:54|74)|\&\#(?:0?84|116)\;?|t)(?:\=(?:\015?\012|\015))?)|(?:(?i:[\=\%](?i:4e|6e)|\&\#(?:0?78|110)\;?|n)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:43|63)|\&\#(?:0?67|99)\;?|c)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:48|68)|\&\#(?:0?72|104)\;?|h)(?:\=(?:\015?\012|\015))?)|(?:(?i:[\=\%](?i:50|70)|\&\#(?:0?80|112)\;?|p)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:43|63)|\&\#(?:0?67|99)\;?|c)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:44|64)|\&\#(?:0?68|100)\;?|d)(?:\=(?:\015?\012|\015))?)|(?:(?i:[\=\%](?i:50|70)|\&\#(?:0?80|112)\;?|p)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:49|69)|\&\#(?:0?73|105)\;?|i)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:46|66)|\&\#(?:0?70|102)\;?|f)(?:\=(?:\015?\012|\015))?)|(?:(?i:[\=\%](?i:50|70)|\&\#(?:0?80|112)\;?|p)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:52|72)|\&\#(?:0?82|114)\;?|r)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:46|66)|\&\#(?:0?70|102)\;?|f)(?:\=(?:\015?\012|\015))?)|(?:(?i:[\=\%](?i:52|72)|\&\#(?:0?82|114)\;?|r)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:45|65)|\&\#(?:0?69|101)\;?|e)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:47|67)|\&\#(?:0?71|103)\;?|g)(?:\=(?:\015?\012|\015))?)|(?:(?i:[\=\%](?i:53|73)|\&\#(?:0?83|115)\;?|s)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:43|63)|\&\#(?:0?67|99)\;?|c)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:46|66)|\&\#(?:0?70|102)\;?|f)(?:\=(?:\015?\012|\015))?)|(?:(?i:[\=\%](?i:53|73)|\&\#(?:0?83|115)\;?|s)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:43|63)|\&\#(?:0?67|99)\;?|c)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:54|74)|\&\#(?:0?84|116)\;?|t)(?:\=(?:\015?\012|\015))?)|(?:(?i:[\=\%](?i:53|73)|\&\#(?:0?83|115)\;?|s)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:48|68)|\&\#(?:0?72|104)\;?|h)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:42|62)|\&\#(?:0?66|0?98)\;?|b)(?:\=(?:\015?\012|\015))?)|(?:(?i:[\=\%](?i:53|73)|\&\#(?:0?83|115)\;?|s)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:48|68)|\&\#(?:0?72|104)\;?|h)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:53|73)|\&\#(?:0?83|115)\;?|s)(?:\=(?:\015?\012|\015))?)|(?:(?i:[\=\%](?i:56|76)|\&\#(?:0?86|118)\;?|v)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:42|62)|\&\#(?:0?66|0?98)\;?|b)(?:\=(?:\015?\012|\015))?)|(?:(?i:[\=\%](?i:56|76)|\&\
#(?:0?86|118)\;?|v)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:42|62)|\&\#(?:0?66|0?98)\;?|b)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:45|65)|\&\#(?:0?69|101)\;?|e)(?:\=(?:\015?\012|\015))?)|(?:(?i:[\=\%](?i:56|76)|\&\#(?:0?86|118)\;?|v)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:42|62)|\&\#(?:0?66|0?98)\;?|b)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:53|73)|\&\#(?:0?83|115)\;?|s)(?:\=(?:\015?\012|\015))?)|(?:(?i:[\=\%](?i:57|77)|\&\#(?:0?87|119)\;?|w)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:4d|6d)|\&\#(?:0?77|109)\;?|m)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:53|73)|\&\#(?:0?83|115)\;?|s)(?:\=(?:\015?\012|\015))?)|(?:(?i:[\=\%](?i:57|77)|\&\#(?:0?87|119)\;?|w)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:53|73)|\&\#(?:0?83|115)\;?|s)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:43|63)|\&\#(?:0?67|99)\;?|c)(?:\=(?:\015?\012|\015))?)|(?:(?i:[\=\%](?i:57|77)|\&\#(?:0?87|119)\;?|w)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:53|73)|\&\#(?:0?83|115)\;?|s)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:46|66)|\&\#(?:0?70|102)\;?|f)(?:\=(?:\015?\012|\015))?)|(?:(?i:[\=\%](?i:57|77)|\&\#(?:0?87|119)\;?|w)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:53|73)|\&\#(?:0?83|115)\;?|s)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:48|68)|\&\#(?:0?72|104)\;?|h)(?:\=(?:\015?\012|\015))?)|(?:(?i:[\=\%](?i:5a|7a)|\&\#(?:0?90|122)\;?|z)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:41|61)|\&\#(?:0?65|0?97)\;?|a)(?:\=(?:\015?\012|\015))?(?i:[\=\%](?i:50|70)|\&\#(?:0?80|112)\;?|p)(?:\=(?:\015?\012|\015))?)))>>>

The following file extensions are included: 
scr|ade|adp|asx|bas|bat|chm|cmd|com|cpl|crt|dbx|exe|hlp|hta|htb|inf|ins|isp|js|jse|lnk|mht|msc|msi|msp|mst|nch|pcd|pif|prf|reg|scf|sct|shb|shs|vb|vbe|vbs|wms|wsc|wsf|wsh|zap

Thomas


Von:    Thomas Eckardt <[email protected]>
An:     Dale <[email protected]>, ASSP development mailing 
list <[email protected]>
Datum:  10.09.2010 17:01
Betreff:        [Assp-test] Antwort: Re:  Blocking the new email virus



This variant is more exact (and tested !),

(?:(?i:[\=\%][46]8|\&\#(?:0?72|104)\;?|h)(?:\=(?:\015?\012|\015))?(?i:[\=\%][57]4|\&\#(?:0?84|116)\;?|t)(?:\=(?:\015?\012|\015))?|(?i:[\=\%][46]6|\&\#(?:0?70|102)\;?|f)(?:\=(?:\015?\012|\015))?)(?i:[\=\%][57]4|\&\#(?:0?84|116)\;?|t)(?:\=(?:\015?\012|\015))?(?i:[\=\%][57]0|\&\#(?:0?80|112)\;?|p)(?:\=(?:\015?\012|\015))?(?i:[\=\%][57]3|\&\#(?:0?83|115)\;?|s)?(?:\=(?:\015?\012|\015))?(?:[\=\%]3[aA]|\&\#0?58\;?|\:)(?:\=(?:\015?\012|\015))?(?:(?:[\=\%]2[fF]|\&\#0?47\;?|\/)(?:\=(?:\015?\012|\015))?){2}(?:[\x20-\x7E](?:\=(?:\015?\012|\015))?){10,}?(?:[\=\%]2[eE]|\&\#0?46\;?|\.)(?:\=(?:\015?\012|\015))?(?:(?i:[\=\%][57]3|\&\#(?:0?83|115)\;?|s)(?:\=(?:\015?\012|\015))?(?i:[\=\%][46]3|\&\#0?(?:67|99)\;?|c)(?:\=(?:\015?\012|\015))?(?i:[\=\%][57]2|\&\#(?:0?82|114)\;?|r))

because the links could be very long - the html lines will be terminated 
(?:\=(?:\015?\012|\015)) at any possition of the text - like here:

<html><head><style type=3D"text/css"><!-- DIV {margin:0px;} 
--></style></he=
ad><body><div style=3D"font-family:times new roman, new york, times, 
serif;=
font-size:12pt"><DIV><A href=3D"
http://www.t-online.de/test/haouse/woister.=
scr">http://www.t-online.de/test/haouse/woister.scr
</A></DIV>=0A<DIV>&nbsp;=
</DIV>=0A<DIV></DIV></div><br></body></html>

Please switch off the regex optimizer by writing  'a-d-n-o-r' (without the 

quotes) as first line in file. This regex is too complex to get optimized.

Thomas



Von:    "Dale" <[email protected]>
An:     "ASSP development mailing list" <[email protected]>
Datum:  10.09.2010 15:19
Betreff:        Re: [Assp-test] Blocking the new email virus




Hi Thomas

Just to confirm, in file:files/bombdatare.txt I add in one line,

(?:(?i:[\=\%][46]8|\&\#(?:0?72|104)\;?|h)(?i:[\=\%][57]4|\&\#(?:0?84|116)\;?|t)|(?i:[\=\%][46]6|\&\#(?:0?70|102)\;?|f))(?i:[\=\%][57]4|\&\#(?:0?84|116)\;?|t)(?i:[\=\%][57]0|\&\#(?:0?80|112)\;?|p)(?i:[\=\%][57]3|\&\#(?:0?83|115)\;?|s)?(?:[\=\%]3[aA]|\&\#0?58\;?|\:)(?:[\=\%]2[fF]|\&\#0?47\;?|\/){2}[^\x00-\x1F\x7F-\xFF]{10,}?(?:[\=\%]2[eE]|\&\#0?46\;?|\.)(?:(?i:[\=\%][57]3|\&\#(?:0?83|115)\;?|s)(?i:[\=\%][46]3|\&\#0?(?:67|99)\;?|c)(?i:[\=\%][57]2|\&\#(?:0?82|114)\;?|r))


Thanks

Dale




----- Original Message ----- 
From: "Thomas Eckardt" <[email protected]>
To: "ASSP development mailing list" <[email protected]>
Sent: Friday, September 10, 2010 1:13 AM
Subject: Re: [Assp-test] Blocking the new email virus


> To detect very bad URL's, I recommend to use 'a bit more' extended
> regexes.
>
> 
(?:(?i:[\=\%][46]8|\&\#(?:0?72|104)\;?|h)(?i:[\=\%][57]4|\&\#(?:0?84|116)\;?|t)|(?i:[\=\%][46]6|\&\#(?:0?70|102)\;?|f))(?i:[\=\%][57]4|\&\#(?:0?84|116)\;?|t)(?i:[\=\%][57]0|\&\#(?:0?80|112)\;?|p)(?i:[\=\%][57]3|\&\#(?:0?83|115)\;?|s)?(?:[\=\%]3[aA]|\&\#0?58\;?|\:)(?:[\=\%]2[fF]|\&\#0?47\;?|\/){2}
> [^\x00-\x1F\x7F-\xFF]{10,}?(?:[\=\%]2[eE]|\&\#0?46\;?|\.)(?i:scr)
>
>
> The last part (?i:scr) could be expanded to your needs, to detect also
> other extensions like (?i:scr|com|bat|exe) - or you may use the default
> 'bad attachment level 1 re'
> 
(?i:ad[ep]|asx|ba[st]|chm|cmd|com|cpl|crt|dbx|exe|hlp|ht[ab]|in[fs]|isp|js|jse|lnk|md[abez]|mht|ms[cipt]|nch|pcd|pif|prf|reg|sc[frt]|sh[bs]|vb|vb[es]|wms|ws[cfh]|zap)
> for this part of the regex
>
> If you only want to detect the '.scr' - change this part to :
> 
(?:(?i:[\=\%][57]3|\&\#(?:0?83|115)\;?|s)(?i:[\=\%][46]3|\&\#0?(?:67|99)\;?|c)(?i:[\=\%][57]2|\&\#(?:0?82|114)\;?|r))
>
>
> The complete regex for the '.scr' case would be (all in one line!!!):
>
> 
(?:(?i:[\=\%][46]8|\&\#(?:0?72|104)\;?|h)(?i:[\=\%][57]4|\&\#(?:0?84|116)\;?|t)|(?i:[\=\%][46]6|\&\#(?:0?70|102)\;?|f))(?i:[\=\%][57]4|\&\#(?:0?84|116)\;?|t)(?i:[\=\%][57]0|\&\#(?:0?80|112)\;?|p)(?i:[\=\%][57]3|\&\#(?:0?83|115)\;?|s)?(?:[\=\%]3[aA]|\&\#0?58\;?|\:)(?:[\=\%]2[fF]|\&\#0?47\;?|\/){2}[^\x00-\x1F\x7F-\xFF]{10,}?(?:[\=\%]2[eE]|\&\#0?46\;?|\.)(?:(?i:[\=\%][57]3|\&\#(?:0?83|115)\;?|s)(?i:[\=\%][46]3|\&\#0?(?:67|99)\;?|c)(?i:[\=\%][57]2|\&\#(?:0?82|114)\;?|r))
>
> This regex also detects the URL's if they are obfuscated using dec or 
hex
> html tags.
>
> Use the regex in 'bombDataRe'.
>
> to show the regex in a more simple way:
> (?:ht|f)tps?\:\/\/[^\x00-\x1F\x7F-\xFF]{10,}?\.scr
> in words: (ht) or (f) followed by (tp) followed by (s or nothing) 
followed
> by (://) followed by (at least 10 ASCII non CTL characters) followed by
> (.) followed by (scr)
> any single character is repesented by a term like:
> (?i:[\=\%][46]8|\&\#(?:0?72|104)\;?|h) <--- this is the 'h'
> which could be html-encoded hex 48 or 68  or  decimal 72 or 104 or 
simply
> the h or H
>
>>especially in ASSP
>
> there is nothing special in ASSP regexes - simply Perl .
>
> Thomas
>
>
>
>
> Von:    K Post <[email protected]>
> An:     ASSP development mailing list <[email protected]>
> Datum:  10.09.2010 03:28
> Betreff:        [Assp-test] Blocking the new email virus
>
>
>
>
> Looks like there's a new email worm going around that's becoming a
> problem.
>
> *http://www.us-cert.gov/current/index.html#here_you_have_email_malware*<
> http://www.us-cert.gov/current/index.html#here_you_have_email_malware>
> 
http://www.avertlabs.com/research/blog/index.php/2010/09/09/widespread-reporting-of-here-you-have-virus/


>
> 
http://threatpost.com/en_us/blogs/new-email-worm-turns-back-clock-virus-attacks-090910


>
>
>
> Anyone have a regex to block these emails?  It looks like they're links
> that
> appear to be a PDF but it's really a .scr file.
>
> Would:
> http:\/\/[\w\.\/\-]{10,500}\.scr
> work?
>
> I'm thinking this would block http:// followed by 10-500 letters, 
numbers,
> underscore (\w), a dot (\.), a slash (\/) or a dash (\-) followed by 
.scr,
> but I'm terrible with regex, especially in ASSP.  Suggestions?
> 
------------------------------------------------------------------------------
> Automate Storage Tiering Simply
> Optimize IT performance and efficiency through flexible, powerful,
> automated storage tiering capabilities. View this brief to learn how
> you can reduce costs and improve performance.
> http://p.sf.net/sfu/dell-sfdev2dev
> _______________________________________________
> Assp-test mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/assp-test
>
>
>
>
> DISCLAIMER:
> *******************************************************
> This email and any files transmitted with it may be confidential, 
legally
> privileged and protected in law and are intended solely for the use of 
the
>
> individual to whom it is addressed.
> This email was multiple times scanned for viruses. There should be no
> known virus in this email!
> *******************************************************
>
>
>


--------------------------------------------------------------------------------


> 
------------------------------------------------------------------------------
> Automate Storage Tiering Simply
> Optimize IT performance and efficiency through flexible, powerful,
> automated storage tiering capabilities. View this brief to learn how
> you can reduce costs and improve performance.
> http://p.sf.net/sfu/dell-sfdev2dev


--------------------------------------------------------------------------------


> _______________________________________________
> Assp-test mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/assp-test
> 


------------------------------------------------------------------------------
Automate Storage Tiering Simply
Optimize IT performance and efficiency through flexible, powerful, 
automated storage tiering capabilities. View this brief to learn how
you can reduce costs and improve performance. 
http://p.sf.net/sfu/dell-sfdev2dev
_______________________________________________
Assp-test mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/assp-test




DISCLAIMER:
*******************************************************
This email and any files transmitted with it may be confidential, legally 
privileged and protected in law and are intended solely for the use of the 


individual to whom it is addressed.
This email was multiple times scanned for viruses. There should be no 
known virus in this email!
*******************************************************


------------------------------------------------------------------------------
Automate Storage Tiering Simply
Optimize IT performance and efficiency through flexible, powerful, 
automated storage tiering capabilities. View this brief to learn how
you can reduce costs and improve performance. 
http://p.sf.net/sfu/dell-sfdev2dev
_______________________________________________
Assp-test mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/assp-test



DISCLAIMER:
*******************************************************
This email and any files transmitted with it may be confidential, legally 
privileged and protected in law and are intended solely for the use of the 

individual to whom it is addressed.
This email was multiple times scanned for viruses. There should be no 
known virus in this email!
*******************************************************


------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Assp-test mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/assp-test

Reply via email to