added silence option
This commit is contained in:
parent
729d649ec5
commit
de3bac3879
|
@ -103,6 +103,7 @@ def parse_args():
|
|||
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')
|
||||
parser.add_argument('-n', '--no-color', help='Output without color', default=False, action='store_true')
|
||||
parser.add_argument("-s","--silent", default=False, help="No banner and additional infos", action="store_true")
|
||||
return parser.parse_args()
|
||||
|
||||
|
||||
|
@ -980,7 +981,7 @@ def main(domain, threads, savefile, ports, silent, verbose, enable_bruteforce, e
|
|||
pscan = portscan(subdomains, ports)
|
||||
pscan.run()
|
||||
|
||||
elif not silent:
|
||||
else:
|
||||
for subdomain in subdomains:
|
||||
print(G + subdomain + W)
|
||||
return subdomains
|
||||
|
@ -995,12 +996,14 @@ def interactive():
|
|||
enable_bruteforce = args.bruteforce
|
||||
verbose = args.verbose
|
||||
engines = args.engines
|
||||
silent = args.silent
|
||||
if silent:
|
||||
silent = True
|
||||
if verbose or verbose is None:
|
||||
verbose = True
|
||||
if args.no_color:
|
||||
no_color()
|
||||
banner()
|
||||
res = main(domain, threads, savefile, ports, silent=False, verbose=verbose, enable_bruteforce=enable_bruteforce, engines=engines)
|
||||
res = main(domain, threads, savefile, ports, silent=silent, verbose=verbose, enable_bruteforce=enable_bruteforce, engines=engines)
|
||||
|
||||
if __name__ == "__main__":
|
||||
interactive()
|
||||
|
|
Loading…
Reference in New Issue