Merge pull request #128 Adds setup.py

Enable optional installation
This commit is contained in:
Ahmed Aboul-Ela 2018-10-13 11:29:31 +04:00 committed by GitHub
commit a9ccc8f7ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 42 additions and 1 deletions

2
MANIFEST.in Normal file
View File

@ -0,0 +1,2 @@
include LICENSE README.md
include subbrute/*.txt

36
setup.py Normal file
View File

@ -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',
],
},
)

View File

@ -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()