Example #1
0
    def __init__(self):
        # lists of values that can be returned
        self.ip_list = []
        self.domain_list = []
        self.hash_list = []
        self.url_list = []
        self.score_list = []
        self.imphash_list = []

        # get helping functions
        self.api = helpers.Common()

        # static station settings
        self.station_name = 'Virustotal'
        self.endpoint = 'https://www.virustotal.com/vtapi/v2'
        self.path = ''
        self.parameters = {}
        self.headers = {}
        self.user_agent = {}
        self.response_format = 'json'

        if config.virustotal_api_key:
            self.parameters = {'apikey': config.virustotal_api_key}
        else:
            msg = 'API key is missing'
            helpers.IO().error_log(msg, self.station_name)
            return
Example #2
0
    def __init__(self):
        # get helping functions
        self.api = helpers.Common()

        # static station settings
        self.station_name = 'Malc0de'
        self.endpoint = 'http://malc0de.com/bl/IP_Blacklist.txt'
Example #3
0
    def __init__(self):
        # get helping functions
        self.api = helpers.Common()

        # static station settings
        self.station_name = 'Feodo'
        self.endpoint = 'https://feodotracker.abuse.ch/blocklist/?download=ipblocklist'
Example #4
0
    def __init__(self):
        # lists of values that can be returned
        self.ip_list = []
        self.domain_list = []
        self.hash_list = []
        self.url_list = []
        self.score_list = []
        self.imphash_list = []

        # get helping functions
        self.api = helpers.Common()
        self.error_log = helpers.IO()

        # static station settings
        self.station_name = 'Cymon'
        self.endpoint = 'https://cymon.io/api/nexus/v1/'
        self.url_path = ''
        self.parameters = {'limit': '1000'}
        self.headers = {
            'content-type': 'application/json',
            'accept': 'application/json',
        }
        self.user_agent = {}
        self.return_format = 'json'

        # Check for api key
        if config.cymon_api_key:
            self.headers.update(
                {'Authorization': 'Token %s' % config.cymon_api_key})
        else:
            error_msg = 'API Key NOT provided'
            self.error_log.error_log(error_msg, self.station_name)
Example #5
0
    def __init__(self):
        # lists of values that can be returned
        self.ipv4_list = []
        self.ipv6_list = []
        self.domain_list = []
        self.hash_list = []
        self.url_list = []
        self.score_list = []
        self.imphash_list = []

        # get helping functions
        self.api = helpers.Common()

        # static station settings
        self.station_name = 'IBM X-Force'
        self.endpoint = 'https://xforce-api.mybluemix.net:443'
        self.url_path = ''
        self.parameters = {}
        self.headers = {'Accept': 'application/json'}
        self.user_agent = {}
        self.response_format = 'json'

        if config.ibmxforce_token:
            self.headers.update(
                {'Authorization': 'Bearer ' + config.ibmxforce_token})
        else:
            self.token = self.get_token()
Example #6
0
    def __init__(self):
        # lists of values that can be returned
        self.ip_list = []
        self.domain_list = []
        self.hash_list = []
        self.url_list = []
        self.score_list = []
        self.imphash_list = []

        # get helping functions
        self.api = helpers.Common()

        # static station settings
        self.station_name = 'Metascan'
        self.endpoint = 'https://metascan-online.com'  # different subdomains for search
        # hashlookup and ipscan
        self.url_path = ''
        self.parameters = {}
        self.headers = {
            'content-type': 'application/json',
            'accept': 'application/json',
            'file_metadata': 1
        }
        self.user_agent = {}
        self.response_format = 'json'

        if config.metascan_api_key:
            self.headers.update({'apikey': config.metascan_api_key})
        else:
            msg = 'API Key NOT provided'
            helpers.IO().error_log(msg, self.station_name)
            return
Example #7
0
    def __init__(self):
        # get helping functions
        self.api = helpers.Common()

        # static station settings
        self.station_name = 'Asprox'
        self.endpoint = 'http://atrack.h3x.eu/c2'
        self.response_format = 'bs'
Example #8
0
    def __init__(self):
        # get helping functions
        self.api = helpers.Common()

        # static station settings
        self.station_name = 'McAfee'
        self.endpoint = 'http://www.siteadvisor.com/sites/'
        self.response_format = 'bs'
Example #9
0
    def __init__(self):
        # lists of values that can be returned
        self.ip_list = []
        self.domain_list = []
        self.hash_list = []
        self.url_list = []
        self.score_list = []
        self.imphash_list = []

        # get helping functions
        self.api = helpers.Common()

        # static station settings
        self.station_name = 'Foriguard'
        self.endpoint = 'http://www.fortiguard.com/iprep/index.php'
        self.url_path = ''
        self.parameters = {}
        self.headers = {}
        self.user_agent = {}
        self.response_format = 'bs'
Example #10
0
    def __init__(self):
        # lists of values that can be returned
        self.ip_list = []
        self.domain_list = []
        self.hash_list = []
        self.url_list = []
        self.score_list = []
        self.imphash_list = []

        # get helping functions
        self.api = helpers.Common()

        # static station settings
        self.station_name = 'HostsFile'
        self.endpoint = 'http://hosts-file.net/'
        self.url_path = ''
        self.parameters = {}
        self.headers = {}
        self.user_agent = {}
        self.response_format = 'bs'
Example #11
0
    def __init__(self):
        # lists of values that can be returned
        self.ip_list = []
        self.domain_list = []
        self.hash_list = []
        self.url_list = []
        self.score_list = []
        self.imphash_list = []

        # get helping functions
        self.api = helpers.Common()

        # static station settings
        self.station_name = 'Threatexpert'
        self.endpoint = 'http://www.threatexpert.com/reports.aspx'
        self.path = ''
        self.parameters = {}
        self.headers = {}
        self.user_agent = {}
        self.response_format = 'bs'
Example #12
0
    def __init__(self):
        # lists of values that can be returned
        self.ip_list = []
        self.domain_list = []
        self.hash_list = []
        self.url_list = []
        self.score_list = []
        self.imphash_list = []

        # get helping functions
        self.api = helpers.Common()
        self.error_log = helpers.IO()

        # static station settings
        self.station_name = 'Station_name'
        self.endpoint = 'www.station_endpoint.com/api/index.php'
        self.path = ''
        self.parameters = {}
        self.headers = {}
        self.user_agent = {}
        self.response_format = ''
Example #13
0
    def __init__(self):
        # lists of values that can be returned
        self.ip_list = []
        self.domain_list = []
        self.hash_list = []
        self.url_list = []
        self.score_list = []
        self.imphash_list = []

        # get helping functions
        self.api = helpers.Common()
        self.error_log = helpers.IO()

        # static station settings
        self.station_name = 'Totalhash'
        self.endpoint = 'https://api.totalhash.com/search/'
        self.path = ''
        self.parameters = {}
        self.headers = {}
        self.user_agent = {}
        self.response_format = ''
Example #14
0
    def __init__(self):
        # lists of values that can be returned
        self.ip_list = []
        self.domain_list = []
        self.hash_list = []
        self.url_list = []
        self.score_list = []
        self.imphash_list = []

        # get helping functions
        self.api = helpers.Common()

        # static station settings
        self.station_name = 'Threatcrowd'
        self.endpoint = 'http://www.threatcrowd.org/searchApi/v2'
        self.path = ''
        self.parameters = {}
        self.headers = {
            'content-type': 'application/json',
            'accept': 'application/json'
        }
        self.user_agent = {}
        self.response_format = 'json'