Skip to content

Commit d14546d

Browse files
committed
Fix function calls in interactive mode
1 parent 36bd9a2 commit d14546d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
keywords='subdomain dns detection',
3131
entry_points={
3232
'console_scripts': [
33-
'sublist3r = sublist3r:main',
33+
'sublist3r = sublist3r:interactive',
3434
],
3535
},
3636
)

sublist3r.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -966,7 +966,7 @@ def main(domain, threads, savefile, ports, silent, verbose, enable_bruteforce, e
966966
return subdomains
967967

968968

969-
if __name__ == "__main__":
969+
def interactive():
970970
args = parse_args()
971971
domain = args.domain
972972
threads = args.threads
@@ -979,3 +979,6 @@ def main(domain, threads, savefile, ports, silent, verbose, enable_bruteforce, e
979979
verbose = True
980980
banner()
981981
res = main(domain, threads, savefile, ports, silent=False, verbose=verbose, enable_bruteforce=enable_bruteforce, engines=engines)
982+
983+
if __name__ == "__main__":
984+
interactive()

0 commit comments

Comments
 (0)