Merge de3bac3879
into 729d649ec5
This commit is contained in:
commit
f5c74c0899
|
@ -103,6 +103,7 @@ def parse_args():
|
||||||
parser.add_argument('-e', '--engines', help='Specify a comma-separated list of search engines')
|
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('-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('-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()
|
return parser.parse_args()
|
||||||
|
|
||||||
|
|
||||||
|
@ -980,7 +981,7 @@ def main(domain, threads, savefile, ports, silent, verbose, enable_bruteforce, e
|
||||||
pscan = portscan(subdomains, ports)
|
pscan = portscan(subdomains, ports)
|
||||||
pscan.run()
|
pscan.run()
|
||||||
|
|
||||||
elif not silent:
|
else:
|
||||||
for subdomain in subdomains:
|
for subdomain in subdomains:
|
||||||
print(G + subdomain + W)
|
print(G + subdomain + W)
|
||||||
return subdomains
|
return subdomains
|
||||||
|
@ -995,12 +996,14 @@ def interactive():
|
||||||
enable_bruteforce = args.bruteforce
|
enable_bruteforce = args.bruteforce
|
||||||
verbose = args.verbose
|
verbose = args.verbose
|
||||||
engines = args.engines
|
engines = args.engines
|
||||||
|
silent = args.silent
|
||||||
|
if silent:
|
||||||
|
silent = True
|
||||||
if verbose or verbose is None:
|
if verbose or verbose is None:
|
||||||
verbose = True
|
verbose = True
|
||||||
if args.no_color:
|
if args.no_color:
|
||||||
no_color()
|
no_color()
|
||||||
banner()
|
res = main(domain, threads, savefile, ports, silent=silent, verbose=verbose, enable_bruteforce=enable_bruteforce, engines=engines)
|
||||||
res = main(domain, threads, savefile, ports, silent=False, verbose=verbose, enable_bruteforce=enable_bruteforce, engines=engines)
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
interactive()
|
interactive()
|
||||||
|
|
Loading…
Reference in New Issue