Skip to content

Commit

Permalink
SECCON-11988 added metrics and timestamps query params for ip requests (
Browse files Browse the repository at this point in the history
TheHive-Project#27)

* added metrics and timestamps query params for ip requests

* edited if statement

* edited url

* fixed query params
  • Loading branch information
Michelle Chung authored and Vivian-Dsilva committed Sep 2, 2021
1 parent af781bc commit 6d92ebb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion analyzers/RecordedFuture/recordedfuture.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def summary(self, raw):
def run(self):
if self.data_type in ['domain', 'ip', 'hash']:
data = self.get_param('data', None, 'Data is missing')
url = 'https://api.recordedfuture.com/v2/{}/{}?fields=risk%2CintelCard'.format(self.data_type, data)
url = 'https://api.recordedfuture.com/v2/{}/{}?fields=metrics%2Ctimestamps%2Crisk%2CintelCard'.format(self.data_type, data)
req = urllib.request.Request(url, None, {'X-RFToken': self.recordedfuture_key})
try:
with urllib.request.urlopen(req) as res:
Expand Down

0 comments on commit 6d92ebb

Please sign in to comment.