mirror of
http://aero2k.de/t/repos/urlbot-native.git
synced 2017-09-06 15:25:38 +02:00
add Debian Security Announce parser
This commit is contained in:
11
plugins.py
11
plugins.py
@@ -98,6 +98,17 @@ def parse_cve(**args):
|
|||||||
'msg': 'https://security-tracker.debian.org/tracker/%s' % cves[0]
|
'msg': 'https://security-tracker.debian.org/tracker/%s' % cves[0]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@pluginfunction('dsa', 'parse a DSA handle', ptypes_PARSE, ratelimit_class = RATE_NO_SILENCE | RATE_GLOBAL)
|
||||||
|
def parse_dsa(**args):
|
||||||
|
dsas = re.findall(r'(DSA-\d\d\d\d-\d+)', args['data'].upper())
|
||||||
|
if not dsas:
|
||||||
|
return None
|
||||||
|
|
||||||
|
logger('plugin', 'detected DSA handle')
|
||||||
|
return {
|
||||||
|
'msg': 'https://security-tracker.debian.org/tracker/%s' % dsas[0]
|
||||||
|
}
|
||||||
|
|
||||||
@pluginfunction('skynet', 'parse skynet', ptypes_PARSE)
|
@pluginfunction('skynet', 'parse skynet', ptypes_PARSE)
|
||||||
def parse_skynet(**args):
|
def parse_skynet(**args):
|
||||||
if 'skynet' in args['data'].lower():
|
if 'skynet' in args['data'].lower():
|
||||||
|
|||||||
Reference in New Issue
Block a user