Skip to content

Commit

Permalink
#99 add dataType ip
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromeleonard committed Feb 24, 2018
1 parent 5da5c55 commit 4d8ea69
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion analyzers/CIRCLPassiveDNS/CIRCLPassiveDNS.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
"baseConfig": "CIRCLPassiveDNS",
"config": {},
"description": "Check CIRCL's Passive DNS for a given domain or URL.",
"dataTypeList": ["domain", "url"],
"dataTypeList": ["domain", "url", "ip"],
"command": "CIRCLPassiveDNS/circl_passivedns.py"
}
2 changes: 2 additions & 0 deletions analyzers/CIRCLPassiveDNS/circl_passivedns.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ def run(self):
query = self.getData()
if '/' in query:
self.error('\'/\' found in the supplied domain. use the URL datatype instead')
elif self.data_type == 'ip':
query = self.getData()
else:
self.error('invalid datatype')
self.report({'results': self.query(query)})
Expand Down

0 comments on commit 4d8ea69

Please sign in to comment.