Merge branch 'QingChongNotAnAsian/no_not_found'

pull/180/head
Yahya SayadArbabi 6 years ago
commit 86269c0307

@ -66,6 +66,9 @@ optional arguments:
--json JSON_FILE, -j JSON_FILE --json JSON_FILE, -j JSON_FILE
Load data from a JSON file or an online, valid, JSON Load data from a JSON file or an online, valid, JSON
file. file.
--print-found
Prints only found messages. Errors, and invalid
username errors will not appear.
``` ```
For example, run ```python3 sherlock.py user123```, and all of the accounts For example, run ```python3 sherlock.py user123```, and all of the accounts

@ -1162,4 +1162,4 @@
"username_claimed": "blue", "username_claimed": "blue",
"username_unclaimed": "noonewouldeverusethis7" "username_unclaimed": "noonewouldeverusethis7"
} }
} }

@ -26,7 +26,7 @@ from torrequest import TorRequest
from load_proxies import load_proxies_from_csv, check_proxy_list from load_proxies import load_proxies_from_csv, check_proxy_list
module_name = "Sherlock: Find Usernames Across Social Networks" module_name = "Sherlock: Find Usernames Across Social Networks"
__version__ = "0.5.3" __version__ = "0.5.4"
amount = 0 amount = 0
BANNER = r''' BANNER = r'''
@ -132,7 +132,7 @@ def get_response(request_future, error_type, social_network, verbose=False, retr
return None, "", -1 return None, "", -1
def sherlock(username, site_data, verbose=False, tor=False, unique_tor=False, proxy=None): def sherlock(username, site_data, verbose=False, tor=False, unique_tor=False, proxy=None, print_found_only=False):
"""Run Sherlock Analysis. """Run Sherlock Analysis.
Checks for existence of username on various social media sites. Checks for existence of username on various social media sites.
@ -299,7 +299,8 @@ def sherlock(username, site_data, verbose=False, tor=False, unique_tor=False, pr
exists = "yes" exists = "yes"
amount = amount+1 amount = amount+1
else: else:
print_not_found(social_network, response_time, verbose) if not print_found_only:
print_not_found(social_network, response_time, verbose)
exists = "no" exists = "no"
elif error_type == "status_code": elif error_type == "status_code":
@ -309,7 +310,8 @@ def sherlock(username, site_data, verbose=False, tor=False, unique_tor=False, pr
exists = "yes" exists = "yes"
amount = amount+1 amount = amount+1
else: else:
print_not_found(social_network, response_time, verbose) if not print_found_only:
print_not_found(social_network, response_time, verbose)
exists = "no" exists = "no"
elif error_type == "response_url": elif error_type == "response_url":
@ -324,7 +326,8 @@ def sherlock(username, site_data, verbose=False, tor=False, unique_tor=False, pr
exists = "yes" exists = "yes"
amount = amount+1 amount = amount+1
else: else:
print_not_found(social_network, response_time, verbose) if not print_found_only:
print_not_found(social_network, response_time, verbose)
exists = "no" exists = "no"
elif error_type == "": elif error_type == "":
@ -408,6 +411,10 @@ def main():
"The script will check if the proxies supplied in the .csv file are working and anonymous." "The script will check if the proxies supplied in the .csv file are working and anonymous."
"Put 0 for no limit on successfully checked proxies, or another number to institute a limit." "Put 0 for no limit on successfully checked proxies, or another number to institute a limit."
) )
parser.add_argument("--print-found",
action="store_true", dest="print_found_only", default=False,
help="Do not output sites where the username was not found."
)
parser.add_argument("username", parser.add_argument("username",
nargs='+', metavar='USERNAMES', nargs='+', metavar='USERNAMES',
action="store", action="store",
@ -563,7 +570,7 @@ def main():
results = {} results = {}
results = sherlock(username, site_data, verbose=args.verbose, results = sherlock(username, site_data, verbose=args.verbose,
tor=args.tor, unique_tor=args.unique_tor, proxy=args.proxy) tor=args.tor, unique_tor=args.unique_tor, proxy=args.proxy, print_found_only=args.print_found_only)
exists_counter = 0 exists_counter = 0
for website_name in results: for website_name in results:

Loading…
Cancel
Save