Update sublist3r.py

Adding the silent argument which was missed
This commit is contained in:
Kaustubh BM 2023-01-06 18:15:15 +05:30 committed by GitHub
parent 729d649ec5
commit 0f7e794cd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 2 deletions

View File

@ -99,6 +99,7 @@ def parse_args():
parser.add_argument('-b', '--bruteforce', help='Enable the subbrute bruteforce module', nargs='?', default=False)
parser.add_argument('-p', '--ports', help='Scan the found subdomains against specified tcp ports')
parser.add_argument('-v', '--verbose', help='Enable Verbosity and display results in realtime', nargs='?', default=False)
parser.add_argument('-s', '--silent', help='Disables verbosity and runs the script silently', nargs='?', default=False)
parser.add_argument('-t', '--threads', help='Number of threads to use for subbrute bruteforce', type=int, default=30)
parser.add_argument('-e', '--engines', help='Specify a comma-separated list of search engines')
parser.add_argument('-o', '--output', help='Save the results to text file')
@ -994,13 +995,18 @@ def interactive():
ports = args.ports
enable_bruteforce = args.bruteforce
verbose = args.verbose
silent = args.silent
engines = args.engines
if verbose or verbose is None:
verbose = True
if silent:
verbose = False
silent = True
if args.no_color:
no_color()
banner()
res = main(domain, threads, savefile, ports, silent=False, verbose=verbose, enable_bruteforce=enable_bruteforce, engines=engines)
if not silent or silent is None:
banner()
res = main(domain, threads, savefile, ports, silent=silent, verbose=verbose, enable_bruteforce=enable_bruteforce, engines=engines)
if __name__ == "__main__":
interactive()