Skip to content

Commit

Permalink
Use intelligent path joining rather than string concatenation
Browse files Browse the repository at this point in the history
  • Loading branch information
rbsec committed Aug 1, 2014
1 parent 6ce903b commit a38816f
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 @@ -184,7 +184,7 @@ def setup():
global target, wordlist, queue, resolver, recordtype
target = args.domain
if not args.wordlist: # Try to use default wordlist if non specified
args.wordlist = os.path.dirname(os.path.realpath(__file__)) + "/subdomains.txt"
args.wordlist = os.path.join(os.path.dirname(os.path.realpath(__file__)), "subdomains.txt")
try:
wordlist = open(args.wordlist).read().splitlines()
except:
Expand Down

0 comments on commit a38816f

Please sign in to comment.