Fix logging, fix URL regex

pull/52/head
Raphaël Vinot 2016-02-11 12:19:03 +01:00
parent d160e4a2c8
commit f6e4ea2270
1 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ if __name__ == "__main__":
critical = 8
regex_web = "/^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$/"
regex_web = "((?:https?:\/\/)[-_0-9a-zA-Z]+\.[0-9a-zA-Z]+)"
regex_cred = "[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6}:[a-zA-Z0-9\_\-]+"
while True:
message = p.get_from_set()
@ -39,7 +39,7 @@ if __name__ == "__main__":
sites = set(re.findall(regex_web, content))
message = '{} credentials found.'.format(len(creds))
message = 'Checked {} credentials found.'.format(len(creds))
if sites:
message += ' Related websites: {}'.format(', '.join(sites))