Browse code

add dconf support for autoit

git-svn: trunk@3341

Tomasz Kojm authored on 2007/10/31 04:22:00
Showing 5 changed files
... ...
@@ -1,3 +1,7 @@
1
+Tue Oct 30 19:30:54 CET 2007 (tk)
2
+---------------------------------
3
+  * libclamav: add dconf support for autoit
4
+
1 5
 Tue Oct 30 19:01:41 CET 2007 (acab)
2 6
 -----------------------------------
3 7
   * libclamav: Add preliminary autoit unpacking support
... ...
@@ -80,6 +80,7 @@ static struct dconf_module modules[] = {
80 80
     { "ARCHIVE",    "BINHEX",	    ARCH_CONF_BINHEX,	    1 },
81 81
     { "ARCHIVE",    "SIS",	    ARCH_CONF_SIS,	    1 },
82 82
     { "ARCHIVE",    "NSIS",	    ARCH_CONF_NSIS,	    1 },
83
+    { "ARCHIVE",    "AUTOIT",	    ARCH_CONF_AUTOIT,	    1 },
83 84
 
84 85
     { "DOCUMENT",   "HTML",	    DOC_CONF_HTML,	    1 },
85 86
     { "DOCUMENT",   "RTF",	    DOC_CONF_RTF,	    1 },
... ...
@@ -66,6 +66,7 @@ struct cli_dconf {
66 66
 #define ARCH_CONF_SIS	    0x400
67 67
 #define ARCH_CONF_NSIS	    0x800
68 68
 #define ARCH_CONF_ARJ       0x1000
69
+#define ARCH_CONF_AUTOIT    0x2000
69 70
 
70 71
 /* Document flags */
71 72
 #define DOC_CONF_HTML	    0x1
... ...
@@ -65,7 +65,7 @@ typedef enum {
65 65
     CL_TYPE_CABSFX,
66 66
     CL_TYPE_ARJSFX,
67 67
     CL_TYPE_NULSFT, /* on the fly */
68
-    CL_TYPE_AUTOIT /* FIXME_AUTOIT: Tomasz, good nuff? */
68
+    CL_TYPE_AUTOIT
69 69
 } cli_file_t;
70 70
 
71 71
 struct cli_matched_type {
... ...
@@ -1929,7 +1929,7 @@ static int cli_scanraw(int desc, cli_ctx *ctx, cli_file_t type, uint8_t typercg)
1929 1929
 			break;
1930 1930
 
1931 1931
 		    case CL_TYPE_AUTOIT:
1932
-		        if(1 && type == CL_TYPE_MSEXE /* FIXME_AUTOIT: Tomasz, pls DCONF THIS */) {
1932
+		        if(SCAN_ARCHIVE && type == CL_TYPE_MSEXE && (DCONF_ARCH & ARCH_CONF_AUTOIT)) {
1933 1933
 			    cli_dbgmsg("AUTOIT signature found at %u\n", (unsigned int) fpt->offset);
1934 1934
 			    nret = cli_scanautoit(desc, ctx, fpt->offset + 23);
1935 1935
 			}