Skip to content

Commit

Permalink
#214 Manage fqdn and clean code for DT reputation and risk_evidence
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromeleonard committed Jun 26, 2018
1 parent fa0d867 commit 947bea8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion analyzers/DomainTools/DomainTools_RiskEvidence.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"command": "DomainTools/domaintools_analyzer.py",
"baseConfig": "DomainTools",
"config": {
"service": "risk_evidence_score"
"service": "risk_evidence"
},
"configurationItems": [
{
Expand Down
4 changes: 2 additions & 2 deletions analyzers/DomainTools/domaintools_analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ def domaintools(self, data):
elif self.service == 'whois/parsed' and self.data_type == 'domain':
response = api.parsed_whois(data).response()

elif self.service == 'risk_evidence_score' and self.data_type == 'domain':
elif self.service == 'risk_evidence' and self.data_type in ['domain', 'fqdn']:
response = api.risk_evidence(data).response()

elif self.service == 'reputation' and self.data_type == 'domain':
elif self.service == 'reputation' and self.data_type in ['domain', 'fqdn']:
response = api.reputation(data).response()

elif self.service == 'reverse-whois':
Expand Down

0 comments on commit 947bea8

Please sign in to comment.