-
-
Notifications
You must be signed in to change notification settings - Fork 187
Expand file tree
/
Copy pathsetup.py
More file actions
145 lines (125 loc) · 4.64 KB
/
setup.py
File metadata and controls
145 lines (125 loc) · 4.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Development Team: Brain Storm Team
"""
from pathlib import Path
from setuptools import find_packages, setup
PROJECT_ROOT = Path(__file__).resolve().parent
def read_text(filename: str) -> str:
"""
Read a text file from the project root.
:param filename: Relative filename in the project root.
:return: File content as UTF-8 text.
"""
return (PROJECT_ROOT / filename).read_text(encoding='utf-8').strip()
def read_requirements(filename: str) -> list[str]:
"""
Read requirements from a plain text file.
Blank lines and comment-only lines are ignored.
:param filename: Relative filename in the project root.
:return: Parsed requirement lines.
"""
lines = (PROJECT_ROOT / filename).read_text(encoding='utf-8').splitlines()
return [
line.strip()
for line in lines
if line.strip() and not line.strip().startswith('#')
]
VERSION = read_text('VERSION')
README = read_text('README.md')
setup(
name='opendoor',
version=VERSION,
description='Console web directory and subdomain scanner for security research and asset discovery',
long_description=README,
long_description_content_type='text/markdown',
url='https://github.com/stanislav-web/OpenDoor',
download_url=f'https://github.com/stanislav-web/OpenDoor/archive/refs/tags/v{VERSION}.tar.gz',
author='Brain Storm Team',
author_email='nomail@gmail.com',
maintainer='Brain Storm Team',
maintainer_email='nomail@gmail.com',
license='GPL-3.0-only',
python_requires='>=3.12,<3.15',
zip_safe=False,
packages=find_packages(),
include_package_data=True,
data_files=[
('.', ['opendoor.conf']),
(
'data',
[
'data/directories.dat',
'data/ignored.dat',
'data/proxies.dat',
'data/subdomains.dat',
'data/useragents.dat',
],
),
],
keywords=[
'owasp',
'security',
'scanner',
'directory scanner',
'subdomain scanner',
'content discovery',
'asset discovery',
'web reconnaissance',
'directory brute force',
'subdomain enumeration',
],
install_requires=read_requirements('requirements.txt'),
entry_points={
'console_scripts': [
'opendoor=src:main',
]
},
platforms=['any'],
project_urls={
'Homepage': 'https://github.com/stanislav-web/OpenDoor',
'Documentation': 'https://opendoor.readthedocs.io',
'Source': 'https://github.com/stanislav-web/OpenDoor',
'Tracker': 'https://github.com/stanislav-web/OpenDoor/issues',
'Changelog': 'https://github.com/stanislav-web/OpenDoor/blob/master/README.md',
'Download': f'https://github.com/stanislav-web/OpenDoor/archive/refs/tags/v{VERSION}.tar.gz',
},
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'Intended Audience :: System Administrators',
'Natural Language :: English',
'Operating System :: OS Independent',
'Operating System :: POSIX',
'Operating System :: POSIX :: Linux',
'Operating System :: MacOS',
'Operating System :: MacOS :: MacOS X',
'Operating System :: MacOS',
'Operating System :: Microsoft :: Windows',
'Operating System :: Unix',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
'Programming Language :: Python :: 3.14',
'Topic :: Internet',
'Topic :: Internet :: Name Service (DNS)',
'Topic :: Internet :: Proxy Servers',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Indexing/Search',
'Topic :: Security',
'Topic :: Utilities',
],
)