-
-
Notifications
You must be signed in to change notification settings - Fork 186
Expand file tree
/
Copy pathsetup.py
More file actions
158 lines (138 loc) · 4.79 KB
/
setup.py
File metadata and controls
158 lines (138 loc) · 4.79 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
146
147
148
149
150
151
152
153
154
155
156
157
158
#!/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: Stanislav WEB
"""
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='Fast CLI for directory discovery, subdomain enumeration, and web asset reconnaissance',
long_description=README,
long_description_content_type='text/markdown; charset=UTF-8; variant=GFM',
url='https://github.com/stanislav-web/OpenDoor',
author='stanislav-web',
license='GPL-3.0-only',
license_files=['LICENSE'],
python_requires='>=3.12,<3.15',
zip_safe=False,
packages=find_packages(exclude=('tests', 'tests.*')),
include_package_data=True,
data_files=[
('.', ['opendoor.conf']),
(
'data',
[
'data/directories.dat',
'data/ignored.dat',
'data/shadow-suffixes.dat',
'data/proxies.dat',
'data/subdomains.dat',
'data/useragents.dat',
],
),
(
'data/openvpn-profiles',
[
'data/openvpn-profiles/example.ovpn',
],
),
(
'data/wireguard-profiles',
[
'data/wireguard-profiles/example.conf',
],
),
],
keywords=[
'pentesting',
'fingerprinting',
'reconnaissance',
'web reconnaissance',
'waf-detection',
'tunnel scan',
'directory scanner',
'subdomain scanner',
'subdomain enumeration',
'content discovery',
'asset discovery',
'security testing',
'cli',
'owasp',
'gpl-3.0',
],
install_requires=read_requirements('requirements.txt'),
entry_points={
'console_scripts': [
'opendoor=src:main',
]
},
platforms=['any'],
project_urls={
'Homepage': 'https://github.com/stanislav-web/OpenDoor',
'Source': 'https://github.com/stanislav-web/OpenDoor',
'Documentation': 'https://opendoor.readthedocs.io',
'Bug Tracker': 'https://github.com/stanislav-web/OpenDoor/issues',
'Changelog': 'https://github.com/stanislav-web/OpenDoor/releases',
},
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 :: 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',
],
)