Skip to content

Commit 6053503

Browse files
author
xrust
committed
Add no-color option
1 parent 69fdd12 commit 6053503

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

sublist3r.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@
6666
R = '\033[91m' # red
6767
W = '\033[0m' # white
6868

69+
def no_color():
70+
global G, Y, B, R, W
71+
G = Y = B = R = W = ''
72+
6973

7074
def banner():
7175
print("""%s
@@ -98,6 +102,7 @@ def parse_args():
98102
parser.add_argument('-t', '--threads', help='Number of threads to use for subbrute bruteforce', type=int, default=30)
99103
parser.add_argument('-e', '--engines', help='Specify a comma-separated list of search engines')
100104
parser.add_argument('-o', '--output', help='Save the results to text file')
105+
parser.add_argument('-n', '--no-color', help='Output without color', default=False, action='store_true')
101106
return parser.parse_args()
102107

103108

@@ -978,6 +983,8 @@ def interactive():
978983
engines = args.engines
979984
if verbose or verbose is None:
980985
verbose = True
986+
if args.no_color:
987+
no_color()
981988
banner()
982989
res = main(domain, threads, savefile, ports, silent=False, verbose=verbose, enable_bruteforce=enable_bruteforce, engines=engines)
983990

0 commit comments

Comments
 (0)