From ad2a9359504b809e85def64a394dfd5f38c8bf45 Mon Sep 17 00:00:00 2001 From: guipleite Date: Fri, 29 Nov 2019 09:56:56 -0300 Subject: [PATCH 1/3] fixes issue #362 --- sherlock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sherlock.py b/sherlock.py index 1e6252d3..02e41bf2 100755 --- a/sherlock.py +++ b/sherlock.py @@ -202,7 +202,7 @@ 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: + if regex_check and re.search(regex_check, username) is None and not print_found_only: # 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!") results_site["exists"] = "illegal" From 81c8c6f0c45b222faa4b8e6a2181a41bacbcf489 Mon Sep 17 00:00:00 2001 From: guipleite Date: Fri, 29 Nov 2019 11:01:05 -0300 Subject: [PATCH 2/3] check print invalid --- sherlock.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sherlock.py b/sherlock.py index 02e41bf2..1c63fbd8 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'] = "" From 64eb20e03c1bea0bb178e3eb3dcf3fe2e1637a85 Mon Sep 17 00:00:00 2001 From: "Christopher K. Hoadley" Date: Fri, 29 Nov 2019 08:08:27 -0600 Subject: [PATCH 3/3] Update version. --- README.md | 2 +- sherlock.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 06395e63..1ff9f24a 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ usage: sherlock.py [-h] [--version] [--verbose] [--rank] [--print-found] USERNAMES [USERNAMES ...] -Sherlock: Find Usernames Across Social Networks (Version 0.9.6) +Sherlock: Find Usernames Across Social Networks (Version 0.9.7) positional arguments: USERNAMES One or more usernames to check with social networks. diff --git a/sherlock.py b/sherlock.py index 1c63fbd8..05eea647 100755 --- a/sherlock.py +++ b/sherlock.py @@ -26,7 +26,7 @@ from torrequest import TorRequest from load_proxies import load_proxies_from_csv, check_proxy_list module_name = "Sherlock: Find Usernames Across Social Networks" -__version__ = "0.9.6" +__version__ = "0.9.7" amount = 0