Skip to content

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

Update regex

Krishnasis Mandal95da069abf37
diff --git a/modules/sfp_keybase.py b/modules/sfp_keybase.py
index d4490e7a..e2a80e96 100644
--- a/modules/sfp_keybase.py
+++ b/modules/sfp_keybase.py
@@ -110,14 +110,14 @@ class sfp_keybase(SpiderFootPlugin):
# Extract username if a Keybase link is received
if eventName == "LINKED_URL_EXTERNAL":
- linkRegex = "keybase.io\/[A-Za-z0-9\-_\.]+"
+ linkRegex = "^https?://keybase.io\/[A-Za-z0-9\-_\.]+"
links = re.findall(linkRegex, eventData)
if len(links) == 0:
self.sf.debug("Not a keybase link")
return None
- userName = links[0].split("/")[1]
+ userName = links[0].split("/")[3]
if userName in self.results:
self.sf.debug("Skipping " + userName + " as already mapped.")