Skip to content
This repository has been archived by the owner on Apr 11, 2021. It is now read-only.

Commit

Permalink
Fix MassDNS command
Browse files Browse the repository at this point in the history
MassDNS command adjusted
- Fix for #9, #19, #30
  • Loading branch information
cak committed Jan 19, 2019
1 parent a765b25 commit 5c73b22
Showing 1 changed file with 23 additions and 19 deletions.
42 changes: 23 additions & 19 deletions domained.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def massdns():
word_file = os.path.join(
script_path, "bin/sublst/all.txt" if bruteall else "bin/sublst/sl-domains.txt"
)
massdnsCMD = "python {} -s {} {} | {} -r resolvers.txt -t A -a -o -w {}-massdns.txt -".format(
massdnsCMD = "python {} {} {} | {} -r resolvers.txt -t A -a -o -w {}-massdns.txt".format(
os.path.join(script_path, "bin/subbrute/subbrute.py"),
word_file,
domain,
Expand Down Expand Up @@ -532,24 +532,7 @@ def notified():
print("\nError - Email Notification Not Sent\n")


if __name__ == "__main__":
banner()
args = get_args()
domain = args.domain
output_base = "output/{}".format(domain)
script_path = os.path.dirname(os.path.realpath(__file__))
secure = args.secure
bruteforce = args.bruteforce
upgrade = args.upgrade
install = args.install
ports = args.ports
vpn = args.vpn
quick = args.quick
bruteall = args.bruteall
fresh = args.fresh
notify = args.notify
active = args.active
noeyewitness = args.noeyewitness
def options():
if vpn:
vpncheck()
if fresh:
Expand Down Expand Up @@ -583,3 +566,24 @@ def notified():
else:
print("\nPlease provide a domain. Ex. -d example.com")
print("\n\033[1;34mAll your subdomain are belong to us\033[1;37m")


if __name__ == "__main__":
banner()
args = get_args()
domain = args.domain
output_base = "output/{}".format(domain)
script_path = os.path.dirname(os.path.realpath(__file__))
secure = args.secure
bruteforce = args.bruteforce
upgrade = args.upgrade
install = args.install
ports = args.ports
vpn = args.vpn
quick = args.quick
bruteall = args.bruteall
fresh = args.fresh
notify = args.notify
active = args.active
noeyewitness = args.noeyewitness
options()

0 comments on commit 5c73b22

Please sign in to comment.