chg: [Keys module] detect public key

This commit is contained in:
Terrtia 2019-10-28 14:37:50 +01:00
parent e759b560db
commit da581878c3
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0

View file

@ -121,6 +121,13 @@ def search_key(paste):
p.populate_set_out(msg, 'Tags')
find = True
if '-----BEGIN PUBLIC KEY-----' in content:
publisher.warning('{} has a public key message'.format(paste.p_name))
msg = 'infoleak:automatic-detection="public-key";{}'.format(message)
p.populate_set_out(msg, 'Tags')
find = True
# pgp content
if get_pgp_content:
p.populate_set_out(message, 'PgpDump')