SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Update comments
Krishnasis Mandal06b4f923430c
diff --git a/sflib.py b/sflib.pyindex 8a2702fc..29afbc97 100644--- a/sflib.py+++ b/sflib.py@@ -1190,7 +1190,7 @@ class SpiderFoot:}# Remove whitespace from data.- # Credit cards might contain spaces between them+ # IBAN Numbers might contain spaces between them# which will cause regex mismatchdata = data.replace(" ", "")@@ -1204,19 +1204,20 @@ class SpiderFoot:countryCode = ibanNumber[0:2]- # Country code not in dictionaryif countryCode not in ibanCountryLengths.keys():+ # Invalid IBAN Number due to country code not existing in dictionaryself.debug("Skipped invalid IBAN number: " + ibanNumber)continue+ # Using Mod 97 algorithm to verify if IBAN Number is validif len(ibanNumber) == ibanCountryLengths[countryCode]:# Move the first 4 characters to the end of the stringmatch = match[4:] + match[0:4]for character in match:- # Check if character is an alphabet+ # Check if character is a letterif character.isalpha():- # Replace alphabet to number+ # Replace letters to number# where A = 10, B = 11, ...., Z = 35match = match.replace(character, str((ord(character) - 65) + 10))