mirror of
https://github.com/sherlock-project/sherlock
synced 2024-11-23 04:13:03 +00:00
Rename option to --print-found
This commit is contained in:
parent
d83e602db5
commit
74eefe02ca
1 changed files with 7 additions and 7 deletions
14
sherlock.py
14
sherlock.py
|
@ -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, nonotfound=False):
|
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,7 @@ 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:
|
||||||
if not nonotfound:
|
if not print_found_only:
|
||||||
print_not_found(social_network, response_time, verbose)
|
print_not_found(social_network, response_time, verbose)
|
||||||
exists = "no"
|
exists = "no"
|
||||||
|
|
||||||
|
@ -310,7 +310,7 @@ 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:
|
||||||
if not nonotfound:
|
if not print_found_only:
|
||||||
print_not_found(social_network, response_time, verbose)
|
print_not_found(social_network, response_time, verbose)
|
||||||
exists = "no"
|
exists = "no"
|
||||||
|
|
||||||
|
@ -326,7 +326,7 @@ 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:
|
||||||
if not nonotfound:
|
if not print_found_only:
|
||||||
print_not_found(social_network, response_time, verbose)
|
print_not_found(social_network, response_time, verbose)
|
||||||
exists = "no"
|
exists = "no"
|
||||||
|
|
||||||
|
@ -411,8 +411,8 @@ 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("--nonotfound",
|
parser.add_argument("--print-found",
|
||||||
action="store_true", dest="nonotfound", default=False,
|
action="store_true", dest="print_found_only", default=False,
|
||||||
help="Do not output sites where the username was not found."
|
help="Do not output sites where the username was not found."
|
||||||
)
|
)
|
||||||
parser.add_argument("username",
|
parser.add_argument("username",
|
||||||
|
@ -570,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, nonotfound=args.nonotfound)
|
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…
Reference in a new issue