Skip to content

Commit

Permalink
Include feed type in table
Browse files Browse the repository at this point in the history
  • Loading branch information
pabloperezj committed Jul 8, 2024
1 parent ec7c64f commit 18e75cb
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@
urllib3.disable_warnings()


FEED_STR = {
'apt': 'APT',
'cve': 'CVE',
'iot': 'IoT',
'mobile': 'Mobile',
'ransomware': 'Ransomware',
}


def _get_current_hour():
"""Gets current hour for Threat feeds."""
time_obj = datetime.utcnow() - timedelta(hours=2)
Expand Down Expand Up @@ -148,7 +157,7 @@ def get_indicators_command(client: Client,
indicators = fetch_indicators_command(client, feed_type, tlp_color, feed_tags, limit)

human_readable = tableToMarkdown(
'Indicators from Google Threat Intelligence Categorized Feeds:',
f'Indicators from Google Threat Intelligence {FEED_STR.get(feed_type, feed_type)} Feeds:',
indicators,
headers=[
'sha256',
Expand Down

0 comments on commit 18e75cb

Please sign in to comment.