intelmq.bots.experts.ripe package

Submodules

intelmq.bots.experts.ripe.expert module

Reference: https://stat.ripe.net/docs/data_api https://github.com/RIPE-NCC/whois/wiki/WHOIS-REST-API-abuse-contact

intelmq.bots.experts.ripe.expert.BOT

alias of intelmq.bots.experts.ripe.expert.RIPEExpertBot

class intelmq.bots.experts.ripe.expert.RIPEExpertBot(bot_id: str, start: bool = False, sighup_event=None, disable_multithreading: Optional[bool] = None)

Bases: intelmq.lib.bot.Bot

GEOLOCATION_REPLY_TO_INTERNAL = {('cc', 'country'), ('city', 'city'), ('latitude', 'latitude'), ('longitude', 'longitude')}
QUERY = {'db_asn': 'https://rest.db.ripe.net/abuse-contact/as{}.json', 'db_ip': 'https://rest.db.ripe.net/abuse-contact/{}.json', 'stat': 'https://stat.ripe.net/data/abuse-contact-finder/data.json?resource={}', 'stat_geolocation': 'https://stat.ripe.net/data/maxmind-geo-lite/data.json?resource={}'}
REPLY_TO_DATA = {'db_asn': <function RIPEExpertBot.<lambda>>, 'db_ip': <function RIPEExpertBot.<lambda>>, 'stat': <function RIPEExpertBot.<lambda>>, 'stat_geolocation': <function RIPEExpertBot.<lambda>>}
init()
process()
intelmq.bots.experts.ripe.expert.clean_geo(geo_data)

Clean RIPE reply specifics for geolocation query

intelmq.bots.experts.ripe.expert.clean_string(s)

Clean RIPE reply specifics for splittable string replies

Module contents