Skip to content

Commit

Permalink
Fix function calls in interactive mode
Browse files Browse the repository at this point in the history
  • Loading branch information
sebix committed Apr 12, 2018
1 parent 36bd9a2 commit d14546d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
keywords='subdomain dns detection',
entry_points={
'console_scripts': [
'sublist3r = sublist3r:main',
'sublist3r = sublist3r:interactive',
],
},
)
5 changes: 4 additions & 1 deletion sublist3r.py
Original file line number Diff line number Diff line change
Expand Up @@ -966,7 +966,7 @@ def main(domain, threads, savefile, ports, silent, verbose, enable_bruteforce, e
return subdomains


if __name__ == "__main__":
def interactive():
args = parse_args()
domain = args.domain
threads = args.threads
Expand All @@ -979,3 +979,6 @@ def main(domain, threads, savefile, ports, silent, verbose, enable_bruteforce, e
verbose = True
banner()
res = main(domain, threads, savefile, ports, silent=False, verbose=verbose, enable_bruteforce=enable_bruteforce, engines=engines)

if __name__ == "__main__":
interactive()

0 comments on commit d14546d

Please sign in to comment.