Browse code

enable command line and config options for phishing module

git-svn: trunk@2263

aCaB authored on 2006/09/15 02:40:20
Showing 5 changed files
... ...
@@ -1,3 +1,7 @@
1
+Thu Sep 14 19:36:25 CEST 2006 (acab)
2
+------------------------------------
3
+  * clamscan: added phishing module command line options
4
+
1 5
 Thu Sep 14 19:07:21 CEST 2006 (acab)
2 6
 ------------------------------------
3 7
   * libclamav/mbox.c: Fixing a fragment of code left behind during the merge
... ...
@@ -252,6 +252,10 @@ void help(void)
252 252
     mprintf("\n");
253 253
     mprintf("    --no-mail                            Disable mail file support\n");
254 254
     mprintf("    --no-phishing                        Disable phishing detection\n");
255
+#ifdef CL_EXPERIMENTAL
256
+    mprintf("    --no-phishing-scan-urls              Disable url-based phishing detection\n");
257
+    mprintf("    --phish-scan-alldomains              Enable phishing detection for all domains (might lead to false positives!)\n");
258
+#endif
255 259
     mprintf("    --no-algorithmic                     Disable algorithmic detection\n");
256 260
     mprintf("    --no-pe                              Disable PE analysis\n");
257 261
     mprintf("    --no-ole2                            Disable OLE2 support\n");
... ...
@@ -76,6 +76,10 @@ static struct option clamscan_longopt[] = {
76 76
     {"no-mail", 0, 0, 0},
77 77
     {"mail-follow-urls", 0, 0, 0},
78 78
     {"no-phishing", 0, 0, 0},
79
+#ifdef CL_EXPERIMENTAL
80
+    {"no-phishing-scan-urls",0,0,0},
81
+    {"phish-scan-alldomains",0,0,0},
82
+#endif
79 83
     {"no-algorithmic", 0, 0, 0},
80 84
     {"unzip", 2, 0, 0},
81 85
     {"unrar", 2, 0, 0},
... ...
@@ -92,6 +92,13 @@ int scanmanager(const struct optstruct *opt)
92 92
     if(opt_check(opt, "no-phishing"))
93 93
 	dboptions |= CL_DB_NOPHISHING;
94 94
 
95
+#ifdef CL_EXPERIMENTAL
96
+    if(opt_check(opt,"no-phishing-scan-urls"))
97
+	options |= CL_SCAN_NOPHISHING;
98
+    if(opt_check(opt,"phish-scan-alldomains"))
99
+	options |= CL_PHISH_NO_DOMAINLIST;
100
+#endif
101
+
95 102
     if(opt_check(opt, "dev-ac-only")) {
96 103
 	dboptions |= CL_DB_ACONLY;
97 104
 
... ...
@@ -48,6 +48,10 @@ struct cfgoption cfg_options[] = {
48 48
     {"ScanMail", OPT_BOOL, 1, NULL, 0, OPT_CLAMD},
49 49
     {"MailFollowURLs", OPT_BOOL, 0, NULL, 0, OPT_CLAMD},
50 50
     {"DetectPhishing", OPT_BOOL, 1, NULL, 0, OPT_CLAMD},
51
+#ifdef CL_EXPERIMENTAL
52
+    {"PhishingScanURLs",OPT_BOOL, 1, NULL, 0, OPT_CLAMD},
53
+    {"PhishingScanAllDomains", OPT_BOOL, 0, NULL, 0, OPT_CLAMD},
54
+#endif
51 55
     {"AlgorithmicDetection", OPT_BOOL, 1, NULL, 0, OPT_CLAMD},
52 56
     {"ScanHTML", OPT_BOOL, 1, NULL, 0, OPT_CLAMD},
53 57
     {"ScanOLE2", OPT_BOOL, 1, NULL, 0, OPT_CLAMD},