Skip to content

Commit

Permalink
#77 #82 add support for fqdn datatype
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromeleonard committed Jul 25, 2017
1 parent d1cd661 commit 79c4055
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion analyzers/WOT/WOT_lookup.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"url": "https://github.com/garanews/Cortex-Analyzers",
"license": "AGPL-V3",
"description": "Check a Domain against Web of Trust (WOT) a website reputation service",
"dataTypeList": ["domain"],
"dataTypeList": ["domain", "fqdn"],
"baseConfig": "WOT",
"config": {
"check_tlp": true,
Expand Down
9 changes: 2 additions & 7 deletions analyzers/WOT/WOT_lookup.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
#!/usr/bin/env python
# encoding: utf-8
import sys
import os

import json
import codecs
import time
import re
import requests
import datetime
import ast
from cortexutils.analyzer import Analyzer

class WOTAnalyzer(Analyzer):
Expand Down Expand Up @@ -91,7 +86,7 @@ def summary(self, raw):

def run(self):
if self.service == 'query':
if self.data_type == 'url':
if self.data_type in ['domain', 'fqdn']:
data = self.getParam('data', None, 'Data is missing')
r = self.WOT_checkurl(data)
if data in r.keys():
Expand Down

0 comments on commit 79c4055

Please sign in to comment.