From 2d50409428259d0b291ef33a279021645b0c690a Mon Sep 17 00:00:00 2001 From: Andrew Yatzkan Date: Thu, 3 Jan 2019 18:04:52 -0600 Subject: [PATCH] Changed error code from 404 to not 2XX --- sherlock.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sherlock.py b/sherlock.py index 2f5ea07d..513c737e 100644 --- a/sherlock.py +++ b/sherlock.py @@ -206,8 +206,8 @@ def sherlock(username, verbose=False, tor=False, unique_tor=False): exists = "no" elif error_type == "status_code": - # Checks if the status code of the response is 404 - if not r.status_code == 404: + # Checks if the status code of the response is 2XX + if not r.status_code >= 300 or r.status_code < 200: print("\033[37;1m[\033[92;1m+\033[37;1m]\033[92;1m {}:\033[0m".format(social_network), url) write_to_file(url, fname)