Skip to content

Commit

Permalink
Merge pull request #10 from vitezslav-lindovsky/add-quiet-turbolister
Browse files Browse the repository at this point in the history
Add -q --quiet switch to show only result
  • Loading branch information
fleetcaptain authored Dec 11, 2019
2 parents ee03275 + 81bb5e5 commit e4fc38c
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions turbolist3r.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ def parse_args():
parser.add_argument('--inputfile', help='Read domains from specified file (perhaps from other tool) and use instead of searching engines. Use with -a to analyze domains')
parser.add_argument('--debug', default=False, help='Enable technical debug output', action="store_true")
parser.add_argument('-r', '--resolvers', help='File with DNS servers to populate as resolvers, one per line')
parser.add_argument('-q', '--quiet', help='Show only result', default=False, action='store_true')
return parser.parse_args()


Expand Down Expand Up @@ -962,7 +963,7 @@ def run(self):
t.start()


def main(domain, threads, savefile, ports, silent, verbose, enable_bruteforce, engines):
def main(domain, threads, savefile, ports, silent, verbose, enable_bruteforce, engines, quiet):
bruteforce_list = set()
search_list = set()

Expand Down Expand Up @@ -1062,7 +1063,7 @@ def main(domain, threads, savefile, ports, silent, verbose, enable_bruteforce, e
pscan = portscan(subdomains, ports)
pscan.run()

elif not silent:
elif not silent or quiet:
for subdomain in subdomains:
# Code modified - remove 'From http://PTRarchive.com: ' which shows up in some results
subdomain = subdomain.replace("From http://PTRarchive.com: ", "")
Expand Down Expand Up @@ -1169,13 +1170,18 @@ def lookup(guess, name_server):
analysisfile = args.saverdns
debug = args.debug
server_file = args.resolvers
quiet = args.quiet

if (debug):
print("Debugging output enabled for analysis module")
if verbose or verbose is None:
verbose = True

banner()

if quiet:
silent = True
else:
silent = False
banner()

# Did the user specifiy a custom resolver file?
# If so, try to read it here, so if there is an error we don't waste
Expand Down Expand Up @@ -1208,7 +1214,7 @@ def lookup(guess, name_server):
res = f.readlines()
f.close()
else:
res = main(domain, threads, savefile, ports, silent=False, verbose=verbose, enable_bruteforce=enable_bruteforce,engines=engines)
res = main(domain, threads, savefile, ports, silent, verbose=verbose, enable_bruteforce=enable_bruteforce, engines=engines, quiet=quiet)

# Code added here
if (analyze):
Expand Down

0 comments on commit e4fc38c

Please sign in to comment.