Skip to content

Connection script to integrate Maltiverse feeds into a Redis database instance

License

Notifications You must be signed in to change notification settings

maltiverse/maltiverse-feed-redis-connector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Maltiverse Feed Redis Connector

Connection script to integrate Maltiverse feeds into a Redis database instance

usage: maltiverse-redis.py [-h] --maltiverse_email MALTIVERSE_EMAIL
                           --maltiverse_password MALTIVERSE_PASSWORD --feed
                           MALTIVERSE_FEED [--range MALTIVERSE_RANGE]
                           [--range_field MALTIVERSE_RANGE_FIELD]
                           [--feed-expiration-days MALTIVERSE_FEED_EXPIRATION_DAYS]
                           [--redis_host REDIS_HOST] [--redis_port REDIS_PORT]
                           [--redis_password REDIS_PASSWORD]
                           [--redis_database_ipv4 REDIS_DATABASE_IPV4]
                           [--redis_database_hostname REDIS_DATABASE_HOSTNAME]
                           [--redis_database_url REDIS_DATABASE_URL]
                           [--redis_database_sample REDIS_DATABASE_SAMPLE]
                           [--verbose]

optional arguments:
  -h, --help            show this help message and exit
  --maltiverse_email MALTIVERSE_EMAIL
                        Specifies Maltiverse email for login. Required
  --maltiverse_password MALTIVERSE_PASSWORD
                        Specifies Maltiverse password for login. Required
  --feed MALTIVERSE_FEED
                        Specifies Maltiverse Feed ID to retrieve. Required
  --range MALTIVERSE_RANGE
                        Specifies Feed time range. Examples now-1h, now-1w,
                        now-1M
  --range_field MALTIVERSE_RANGE_FIELD
                        Specifies the datetime field to apply filtering range
                        ('creation_time'|'modification_time'). Default
                        'modification_time'
  --feed-expiration-days MALTIVERSE_FEED_EXPIRATION_DAYS
                        Specifies the default expiration time in days for the
                        indicators of the selected collection. Default '30'
  --redis_host REDIS_HOST
                        Specifies Redis database destination hostname. Default
                        'localhost'
  --redis_port REDIS_PORT
                        Specifies Redis database destination hostname port.
                        Default '6379'
  --redis_password REDIS_PASSWORD
                        Specifies Redis database destination password.
  --redis_database_ipv4 REDIS_DATABASE_IPV4
                        Specifies Redis database index for IPv4.
  --redis_database_hostname REDIS_DATABASE_HOSTNAME
                        Specifies Redis database index for Hostnames.
  --redis_database_url REDIS_DATABASE_URL
                        Specifies Redis database index for URL.
  --redis_database_sample REDIS_DATABASE_SAMPLE
                        Specifies Redis database index for Samples.
  --verbose             Shows extra information during ingestion

Example 1 - Retrieve "Malicious IP" feed, full download

maltiverse-redis.py --maltiverse_email EMAIL --maltiverse_password PASSWORD --feed uYxZknEB8jmkCY9eQoUJ

Example 2 - Retrieve "Malicious IP" feed, last hour download

maltiverse-redis.py --maltiverse_email EMAIL --maltiverse_password PASSWORD --feed uYxZknEB8jmkCY9eQoUJ --range now-1h

About

Connection script to integrate Maltiverse feeds into a Redis database instance

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages