mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-30 01:37:17 +00:00
Fix logging, fix URL regex
This commit is contained in:
parent
d160e4a2c8
commit
f6e4ea2270
1 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@ if __name__ == "__main__":
|
||||||
|
|
||||||
critical = 8
|
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\_\-]+"
|
regex_cred = "[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6}:[a-zA-Z0-9\_\-]+"
|
||||||
while True:
|
while True:
|
||||||
message = p.get_from_set()
|
message = p.get_from_set()
|
||||||
|
@ -39,7 +39,7 @@ if __name__ == "__main__":
|
||||||
|
|
||||||
sites = set(re.findall(regex_web, content))
|
sites = set(re.findall(regex_web, content))
|
||||||
|
|
||||||
message = '{} credentials found.'.format(len(creds))
|
message = 'Checked {} credentials found.'.format(len(creds))
|
||||||
if sites:
|
if sites:
|
||||||
message += ' Related websites: {}'.format(', '.join(sites))
|
message += ' Related websites: {}'.format(', '.join(sites))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue