From 81c8c6f0c45b222faa4b8e6a2181a41bacbcf489 Mon Sep 17 00:00:00 2001 From: guipleite Date: Fri, 29 Nov 2019 11:01:05 -0300 Subject: [PATCH] check print invalid --- sherlock.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sherlock.py b/sherlock.py index 02e41bf..1c63fbd 100755 --- a/sherlock.py +++ b/sherlock.py @@ -202,9 +202,11 @@ def sherlock(username, site_data, verbose=False, tor=False, unique_tor=False, pr # Don't make request if username is invalid for the site regex_check = net_info.get("regexCheck") - if regex_check and re.search(regex_check, username) is None and not print_found_only: + if regex_check and re.search(regex_check, username) is None: # No need to do the check at the site: this user name is not allowed. - print_invalid(social_network, "Illegal Username Format For This Site!") + if not print_found_only: + print_invalid(social_network, "Illegal Username Format For This Site!") + results_site["exists"] = "illegal" results_site["url_user"] = "" results_site['http_status'] = ""