Skip to content

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

Strip chars from phone numbers.

smicallef4f748db0b470
diff --git a/modules/sfp_jsonwhoiscom.py b/modules/sfp_jsonwhoiscom.py
index 12e0e872..7c92dc50 100644
--- a/modules/sfp_jsonwhoiscom.py
+++ b/modules/sfp_jsonwhoiscom.py
@@ -190,6 +190,7 @@ class sfp_jsonwhoiscom(SpiderFootPlugin):
phone = contact.get('phone')
if phone:
+ phone = phone.replace(" ", "").replace("-", "").replace("(", "").replace(")", "").replace(".", "")
phones.append(phone)
location = ', '.join([_f for _f in [contact.get('address'), contact.get('city'), contact.get('state'), contact.get('zip'), contact.get('country_code')] if _f])