Skip to content

SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.

Update PGP Key Regex

Krishnasis Mandal1db5a699c49a
diff --git a/modules/sfp_keybase.py b/modules/sfp_keybase.py
index bc1e1609..e7587b20 100644
--- a/modules/sfp_keybase.py
+++ b/modules/sfp_keybase.py
@@ -224,7 +224,7 @@ class sfp_keybase(SpiderFootPlugin):
self.notifyListeners(evt)
# Extract PGP Keys
- pgpRegex = "-----BEGIN PGP PUBLIC KEY BLOCK-----(.*?)-----END PGP PUBLIC KEY BLOCK-----"
+ pgpRegex = "-----BEGIN\s*PGP\s*(?:PUBLIC?)\s*KEY\s*BLOCK-----(.*?)-----END\s*PGP\s*(?:PUBLIC?)\s*KEY\s*BLOCK-----"
pgpKeys = re.findall(pgpRegex, str(content))