Skip to content

Commit

Permalink
Fix bug in rbsec#37
Browse files Browse the repository at this point in the history
  • Loading branch information
rbsec committed May 30, 2021
1 parent d0fdaac commit 341e425
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dnscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def get_name(self, domain):
size = int(os.popen('stty size', 'r').read().split()[1]) - 1 # Get terminal width in order to clean output later
try:
if sys.stdout.isatty(): # Don't spam output if redirected
sys.stdout.write(domain + " " * (size - domain) + "\r")
sys.stdout.write(domain + " " * (size - len(domain)) + "\r")
sys.stdout.flush()
res = lookup(domain, recordtype)
if args.tld and res:
Expand Down

0 comments on commit 341e425

Please sign in to comment.