From da581878c3899c7ca3effea52ee11da83ddd1199 Mon Sep 17 00:00:00 2001 From: Terrtia Date: Mon, 28 Oct 2019 14:37:50 +0100 Subject: [PATCH] chg: [Keys module] detect public key --- bin/Keys.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bin/Keys.py b/bin/Keys.py index eb06601a..237f807c 100755 --- a/bin/Keys.py +++ b/bin/Keys.py @@ -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')