diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..4b82da3 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,2 @@ +include LICENSE README.md +include subbrute/*.txt diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..eb2383c --- /dev/null +++ b/setup.py @@ -0,0 +1,36 @@ +from setuptools import setup, find_packages + +setup( + name='Sublist3r', + version='1.0', + python_requires='>=2.7', + install_requires=['dnspython', 'requests', 'argparse; python_version==\'2.7\''], + packages=find_packages()+['.'], + include_package_data=True, + url='https://github.com/aboul3la/Sublist3r', + license='GPL-2.0', + description='Subdomains enumeration tool for penetration testers', + classifiers=[ + 'Development Status :: 5 - Production/Stable', + 'Environment :: Console', + 'Intended Audience :: Information Technology', + 'Intended Audience :: System Administrators', + 'Intended Audience :: Telecommunications Industry', + 'License :: OSI Approved :: GNU General Public License v2', + 'Operating System :: POSIX :: Linux', + 'Programming Language :: Python', + 'Programming Language :: Python :: 2', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', + 'Topic :: Security', + ], + keywords='subdomain dns detection', + entry_points={ + 'console_scripts': [ + 'sublist3r = sublist3r:interactive', + ], + }, +) diff --git a/sublist3r.py b/sublist3r.py index 818a0c2..d9c74bd 100755 --- a/sublist3r.py +++ b/sublist3r.py @@ -967,7 +967,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 @@ -980,3 +980,6 @@ if __name__ == "__main__": verbose = True banner() res = main(domain, threads, savefile, ports, silent=False, verbose=verbose, enable_bruteforce=enable_bruteforce, engines=engines) + +if __name__ == "__main__": + interactive()