mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-10 08:38:28 +00:00
chg: [Keys module] detect public key
This commit is contained in:
parent
e759b560db
commit
da581878c3
1 changed files with 7 additions and 0 deletions
|
@ -121,6 +121,13 @@ def search_key(paste):
|
||||||
p.populate_set_out(msg, 'Tags')
|
p.populate_set_out(msg, 'Tags')
|
||||||
find = True
|
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
|
# pgp content
|
||||||
if get_pgp_content:
|
if get_pgp_content:
|
||||||
p.populate_set_out(message, 'PgpDump')
|
p.populate_set_out(message, 'PgpDump')
|
||||||
|
|
Loading…
Reference in a new issue