Skip to content

Commit

Permalink
Merge pull request #358 from phpsystems/master
Browse files Browse the repository at this point in the history
Fix for Fortiguard to handle FQDNs as well as domains and urls
  • Loading branch information
3c7 authored Nov 9, 2018
2 parents 4b4f3af + 4300449 commit 60359b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions analyzers/Fortiguard/Fortiguard_URLCategory.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"author": "Eric Capuano",
"url": "https://github.com/TheHive-Project/Cortex-Analyzers",
"license": "AGPL-V3",
"dataTypeList": ["domain", "url"],
"description": "Check the Fortiguard category of a URL or a domain. Check the full available list at https://fortiguard.com/webfilter/categories",
"dataTypeList": ["domain", "url", "fqdn"],
"description": "Check the Fortiguard category of a URL, FQDN or a domain. Check the full available list at https://fortiguard.com/webfilter/categories",
"baseConfig": "Fortiguard",
"command": "Fortiguard/urlcategory.py",
"configurationItems": [
Expand Down
2 changes: 1 addition & 1 deletion analyzers/Fortiguard/urlcategory.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def summary(self, raw):
def run(self):
Analyzer.run(self)

if self.data_type == 'domain' or self.data_type == 'url':
if self.data_type == 'domain' or self.data_type == 'url' or self.data_type == 'fqdn':
try:
pattern = re.compile("(?:Category: )([\w\s]+)")
baseurl = 'https://www.fortiguard.com/webfilter?q='
Expand Down

0 comments on commit 60359b2

Please sign in to comment.