@memrov2/pentcloud-web-context 0.0.0-stage → 0.1.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 +19 -2
- package/THIRD_PARTY_NOTICES.md +8 -0
- package/package.json +36 -4
- package/src/index.d.mts +4 -0
- package/src/index.mjs +39 -0
- package/src/worker.d.mts +12 -0
- package/src/worker.mjs +3 -0
- package/tools.lock.json +207 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 PentCloud contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
1
|
-
#
|
|
1
|
+
# PentCloud web-context
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
WhatWeb and WaybackURLs in a separate native Cloudflare runtime. **Version 0.1.0 SDK.** The npm package contains adapter code only. WaybackURLs has no detected redistribution license grant; live legacy-provider availability is not certified.
|
|
4
|
+
|
|
5
|
+
```sh
|
|
6
|
+
npm install @memrov2/pentcloud-web-context@0.1.0
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
```js
|
|
10
|
+
export { WebContextRunner } from '@memrov2/pentcloud-web-context/worker';
|
|
11
|
+
const runner = env.TOOL.getByName(runId);
|
|
12
|
+
try {
|
|
13
|
+
const result = await runner.run({tool:'whatweb',target:'https://your-authorized-target.example/'});
|
|
14
|
+
// Save the result in your existing private assessment store.
|
|
15
|
+
} finally {
|
|
16
|
+
await runner.stop();
|
|
17
|
+
}
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Configure the matching named Container image. See [interfaces, build instructions, verification and limits](https://github.com/Memrov/PentCloud-tools/blob/main/docs/remaining-bundles.md) before integration. This package does not deploy or modify PentCloud.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Third-party notices
|
|
2
|
+
|
|
3
|
+
The original PentCloud adapter source and type declarations in this npm SDK are MIT licensed. The tarball includes pin metadata, but no third-party tool executables, source archives, datasets or container images.
|
|
4
|
+
|
|
5
|
+
- WhatWeb 0.6.4: [GPLv2](https://github.com/urbanadventurer/WhatWeb/blob/v0.6.4/LICENSE).
|
|
6
|
+
- WaybackURLs 0.1.0: no explicit license grant was detected in the pinned release. The upstream [license request](https://github.com/tomnomnom/waybackurls/issues/29) remains unresolved; this SDK does not grant redistribution rights to its executable or source.
|
|
7
|
+
|
|
8
|
+
Upstream programs, data and image dependencies retain their own licenses and notices. Image builders preserve those notices. Building or distributing a separate image requires compliance with its components' terms; this adapter SDK grants no additional rights to them. Image-specific cautions in `tools.lock.json` remain in effect.
|
package/package.json
CHANGED
|
@@ -1,6 +1,38 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memrov2/pentcloud-web-context",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"description": "Cloudflare-native web-context tool pack",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/Memrov/PentCloud-tools.git",
|
|
10
|
+
"directory": "packages/web-context"
|
|
11
|
+
},
|
|
12
|
+
"engines": {
|
|
13
|
+
"node": ">=22"
|
|
14
|
+
},
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"types": "./src/index.d.mts",
|
|
18
|
+
"import": "./src/index.mjs"
|
|
19
|
+
},
|
|
20
|
+
"./worker": {
|
|
21
|
+
"types": "./src/worker.d.mts",
|
|
22
|
+
"import": "./src/worker.mjs"
|
|
23
|
+
},
|
|
24
|
+
"./tools.lock.json": "./tools.lock.json"
|
|
25
|
+
},
|
|
26
|
+
"files": [
|
|
27
|
+
"src",
|
|
28
|
+
"tools.lock.json",
|
|
29
|
+
"LICENSE",
|
|
30
|
+
"THIRD_PARTY_NOTICES.md"
|
|
31
|
+
],
|
|
32
|
+
"publishConfig": {
|
|
33
|
+
"access": "public"
|
|
34
|
+
},
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"@memrov2/pentcloud-tool-runtime": "0.1.0"
|
|
37
|
+
}
|
|
38
|
+
}
|
package/src/index.d.mts
ADDED
package/src/index.mjs
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { request } from "@memrov2/pentcloud-tool-runtime";
|
|
2
|
+
import lock from "../tools.lock.json" with { type: "json" };
|
|
3
|
+
export { lock };
|
|
4
|
+
export function buildCommand(input) {
|
|
5
|
+
let args,
|
|
6
|
+
stdin = "";
|
|
7
|
+
if (input?.tool === "whatweb") {
|
|
8
|
+
const u = request(input, ["tool", "target"], ["whatweb"]);
|
|
9
|
+
args = [
|
|
10
|
+
"/opt/pentcloud-web-context/assets/whatweb/whatweb",
|
|
11
|
+
"--aggression=1",
|
|
12
|
+
"--max-threads=1",
|
|
13
|
+
"--read-timeout=10",
|
|
14
|
+
"--open-timeout=10",
|
|
15
|
+
"--follow-redirect=never",
|
|
16
|
+
"--color=never",
|
|
17
|
+
"--quiet",
|
|
18
|
+
"--log-json=/dev/stdout",
|
|
19
|
+
u.href,
|
|
20
|
+
];
|
|
21
|
+
} else {
|
|
22
|
+
if (
|
|
23
|
+
!input ||
|
|
24
|
+
Object.keys(input).some((k) => !["tool", "target"].includes(k)) ||
|
|
25
|
+
input.tool !== "waybackurls" ||
|
|
26
|
+
typeof input.target !== "string" ||
|
|
27
|
+
input.target.length > 253 ||
|
|
28
|
+
!/^[a-z0-9](?:[a-z0-9.-]*[a-z0-9])?$/i.test(input.target)
|
|
29
|
+
)
|
|
30
|
+
throw new TypeError("Select one archive hostname");
|
|
31
|
+
args = ["-no-subs"];
|
|
32
|
+
stdin = input.target.toLowerCase() + "\n";
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
argv: ["/opt/pentcloud-web-context/bin/" + input.tool, ...args],
|
|
36
|
+
stdin,
|
|
37
|
+
timeoutMs: 75000,
|
|
38
|
+
};
|
|
39
|
+
}
|
package/src/worker.d.mts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DurableObject } from "cloudflare:workers";
|
|
2
|
+
import type { ToolResult } from "@memrov2/pentcloud-tool-runtime";
|
|
3
|
+
import type { PackRequest } from "./index.mjs";
|
|
4
|
+
export declare class WebContextRunner extends DurableObject {
|
|
5
|
+
run(input: PackRequest): Promise<ToolResult>;
|
|
6
|
+
stop(): Promise<{ stopped: boolean }>;
|
|
7
|
+
capabilities(): Promise<{
|
|
8
|
+
platform: string;
|
|
9
|
+
architecture: string;
|
|
10
|
+
rawPacketSocket: boolean;
|
|
11
|
+
}>;
|
|
12
|
+
}
|
package/src/worker.mjs
ADDED
package/tools.lock.json
ADDED
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"packId": "web-context",
|
|
4
|
+
"packVersion": "0.1.0",
|
|
5
|
+
"platform": "linux/amd64",
|
|
6
|
+
"baseImage": "docker.io/library/debian@sha256:a72b4433de1cf7d6bae0c4cee74d0547f58601a643b3375f070c51600d63b6b2",
|
|
7
|
+
"tools": [
|
|
8
|
+
{
|
|
9
|
+
"tool": "whatweb",
|
|
10
|
+
"version": "v0.6.4",
|
|
11
|
+
"url": "https://codeload.github.com/urbanadventurer/WhatWeb/tar.gz/refs/tags/v0.6.4",
|
|
12
|
+
"format": "source-tar",
|
|
13
|
+
"destination": "whatweb",
|
|
14
|
+
"sha256": "611cde154ad864ffc430ac34e87ca746dbe0f0cc47a116ba06de3cb61e923b15"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"tool": "waybackurls",
|
|
18
|
+
"version": "v0.1.0",
|
|
19
|
+
"url": "https://github.com/tomnomnom/waybackurls/releases/download/v0.1.0/waybackurls-linux-amd64-0.1.0.tgz",
|
|
20
|
+
"format": "tar.gz",
|
|
21
|
+
"member": "waybackurls",
|
|
22
|
+
"sha256": "884786132d11c8eb838fc88626dad96494207c79e436a72870a7d69f147500a6",
|
|
23
|
+
"binarySha256": "da25f8f96987d59ceb85097ebd277cd79ec2f9e2e6d33bb391d42b8623f7d657",
|
|
24
|
+
"licenseMissing": true
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"assets": [
|
|
28
|
+
{
|
|
29
|
+
"url": "https://raw.githubusercontent.com/tomnomnom/waybackurls/v0.1.0/README.mkd",
|
|
30
|
+
"path": "notices/waybackurls-README.mkd",
|
|
31
|
+
"sha256": "ffdf6f50d0cab97eee8d37b6739fa49bd94708e4955cf538f59a7c7c7929b24b"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"debs": [
|
|
35
|
+
{
|
|
36
|
+
"package": "openssl",
|
|
37
|
+
"version": "3.5.7-1~deb13u3",
|
|
38
|
+
"url": "https://deb.debian.org/debian-security/pool/updates/main/o/openssl/openssl_3.5.7-1%7edeb13u3_amd64.deb",
|
|
39
|
+
"sha256": "43a9cbcf2a8a0e1f0a1c3f5a33ee1f56b269690e7a2129f2b2d0582e789589d7",
|
|
40
|
+
"format": "deb"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"package": "ca-certificates",
|
|
44
|
+
"version": "20250419+deb13u1",
|
|
45
|
+
"url": "https://deb.debian.org/debian-security/pool/updates/main/c/ca-certificates/ca-certificates_20250419%2bdeb13u1_all.deb",
|
|
46
|
+
"sha256": "c10585ac22c7f617a73d394eea29ba71d0356f350ae973b19043d1b017f80f54",
|
|
47
|
+
"format": "deb"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"package": "libffi8",
|
|
51
|
+
"version": "3.4.8-2",
|
|
52
|
+
"url": "https://deb.debian.org/debian/pool/main/libf/libffi/libffi8_3.4.8-2_amd64.deb",
|
|
53
|
+
"sha256": "0ebdc340de33333639c3c63874cd4b15ac2e83dfa1ef3053b7eefaf4919f4f68",
|
|
54
|
+
"format": "deb"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"package": "rubygems-integration",
|
|
58
|
+
"version": "1.19",
|
|
59
|
+
"url": "https://deb.debian.org/debian/pool/main/r/rubygems-integration/rubygems-integration_1.19_all.deb",
|
|
60
|
+
"sha256": "ca8c600505bd4c5046b2c60fbf964d6f4eb08db86eb77526a3de0315f1222afe",
|
|
61
|
+
"format": "deb"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"package": "ruby3.3",
|
|
65
|
+
"version": "3.3.8-2",
|
|
66
|
+
"url": "https://deb.debian.org/debian/pool/main/r/ruby3.3/ruby3.3_3.3.8-2_amd64.deb",
|
|
67
|
+
"sha256": "10798ffe8edc86d7f9491655a115049a7a77dfbef5dc909dc13803cbb6c47f9b",
|
|
68
|
+
"format": "deb"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"package": "ruby-rubygems",
|
|
72
|
+
"version": "3.6.7-2",
|
|
73
|
+
"url": "https://deb.debian.org/debian/pool/main/r/rubygems/ruby-rubygems_3.6.7-2_all.deb",
|
|
74
|
+
"sha256": "a585dd934ffc58516c468cc06fe10141d1383f96bf1113a25397f0ac043253a1",
|
|
75
|
+
"format": "deb"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"package": "ruby",
|
|
79
|
+
"version": "1:3.3+b1",
|
|
80
|
+
"url": "https://deb.debian.org/debian/pool/main/r/ruby-defaults/ruby_3.3%2bb1_amd64.deb",
|
|
81
|
+
"sha256": "3d67e2079ac7e1842f4abecfa2ac8263a6761daa91f06559d6d2d1f897d0576d",
|
|
82
|
+
"format": "deb"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"package": "rake",
|
|
86
|
+
"version": "13.2.1-1",
|
|
87
|
+
"url": "https://deb.debian.org/debian/pool/main/r/rake/rake_13.2.1-1_all.deb",
|
|
88
|
+
"sha256": "6080dff69fe4fa4f1419d2326a2004e21cc696b37a03c0c96e5e8c42c3e9e477",
|
|
89
|
+
"format": "deb"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"package": "ruby-csv",
|
|
93
|
+
"version": "3.3.4-1",
|
|
94
|
+
"url": "https://deb.debian.org/debian/pool/main/r/ruby-csv/ruby-csv_3.3.4-1_all.deb",
|
|
95
|
+
"sha256": "6367f942bcffb869ba78996a2be4b4f12c93ad2b345f5750a3112a1127293125",
|
|
96
|
+
"format": "deb"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"package": "ruby-did-you-mean",
|
|
100
|
+
"version": "1.6.3-2",
|
|
101
|
+
"url": "https://deb.debian.org/debian/pool/main/r/ruby-did-you-mean/ruby-did-you-mean_1.6.3-2_all.deb",
|
|
102
|
+
"sha256": "8c193ed0b6fa3a803b7643dd840cab1a6d1e665bcc212accce8a8ea1deeee615",
|
|
103
|
+
"format": "deb"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"package": "ruby-net-telnet",
|
|
107
|
+
"version": "0.2.0-1",
|
|
108
|
+
"url": "https://deb.debian.org/debian/pool/main/r/ruby-net-telnet/ruby-net-telnet_0.2.0-1_all.deb",
|
|
109
|
+
"sha256": "e8a5b95e359894fbca0fa1cc70cdd349c125f43e883775491735a44ced957256",
|
|
110
|
+
"format": "deb"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"package": "ruby-ruby2-keywords",
|
|
114
|
+
"version": "0.0.5-1",
|
|
115
|
+
"url": "https://deb.debian.org/debian/pool/main/r/ruby-ruby2-keywords/ruby-ruby2-keywords_0.0.5-1_all.deb",
|
|
116
|
+
"sha256": "a2806f226a72c5be7cfd33eb35fbcf1aa33c136d48802af7fcd5897f54417b8b",
|
|
117
|
+
"format": "deb"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"package": "ruby-webrick",
|
|
121
|
+
"version": "1.9.1-1",
|
|
122
|
+
"url": "https://deb.debian.org/debian/pool/main/r/ruby-webrick/ruby-webrick_1.9.1-1_all.deb",
|
|
123
|
+
"sha256": "e8eff1ea6cb255ad89e4820db763c23facdad634615cab08a8fe883d9640ab7b",
|
|
124
|
+
"format": "deb"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"package": "ruby-xmlrpc",
|
|
128
|
+
"version": "0.3.3-2",
|
|
129
|
+
"url": "https://deb.debian.org/debian/pool/main/r/ruby-xmlrpc/ruby-xmlrpc_0.3.3-2_all.deb",
|
|
130
|
+
"sha256": "c2735a4c93ea68e453108c3524506796663a74975df63fc3cffb2847e3c30b0b",
|
|
131
|
+
"format": "deb"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"package": "libyaml-0-2",
|
|
135
|
+
"version": "0.2.5-2",
|
|
136
|
+
"url": "https://deb.debian.org/debian/pool/main/liby/libyaml/libyaml-0-2_0.2.5-2_amd64.deb",
|
|
137
|
+
"sha256": "8a5475402801de445a17887bb72d03613565a6a84b216b4b606d1462c613eeb2",
|
|
138
|
+
"format": "deb"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"package": "libruby3.3",
|
|
142
|
+
"version": "3.3.8-2",
|
|
143
|
+
"url": "https://deb.debian.org/debian/pool/main/r/ruby3.3/libruby3.3_3.3.8-2_amd64.deb",
|
|
144
|
+
"sha256": "033d7f7359da6353d29e5cb87ef411357d3841c02fd7d1089897653fec665289",
|
|
145
|
+
"format": "deb"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"package": "libruby",
|
|
149
|
+
"version": "1:3.3+b1",
|
|
150
|
+
"url": "https://deb.debian.org/debian/pool/main/r/ruby-defaults/libruby_3.3%2bb1_amd64.deb",
|
|
151
|
+
"sha256": "3548d8ef339f73c59c556f2c397b3222cecb56d726e61e9d6d1eb8495e2e4179",
|
|
152
|
+
"format": "deb"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"package": "publicsuffix",
|
|
156
|
+
"version": "20250328.1952-0.1",
|
|
157
|
+
"url": "https://deb.debian.org/debian/pool/main/p/publicsuffix/publicsuffix_20250328.1952-0.1_all.deb",
|
|
158
|
+
"sha256": "80b5b3959ddf1c54c82001380aab866fa9964274a59a7f169110c8a036e40864",
|
|
159
|
+
"format": "deb"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"package": "ruby-public-suffix",
|
|
163
|
+
"version": "6.0.1-1",
|
|
164
|
+
"url": "https://deb.debian.org/debian/pool/main/r/ruby-public-suffix/ruby-public-suffix_6.0.1-1_all.deb",
|
|
165
|
+
"sha256": "3b936b0389547bc3a824f220c92193f4753a544466a8e374f01f9462f1edb4dd",
|
|
166
|
+
"format": "deb"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"package": "ruby-addressable",
|
|
170
|
+
"version": "2.8.7-2",
|
|
171
|
+
"url": "https://deb.debian.org/debian/pool/main/r/ruby-addressable/ruby-addressable_2.8.7-2_all.deb",
|
|
172
|
+
"sha256": "3826754d24722ae5376af043b703cd8d8ce2c2beccb6bc397ef7187b6a44022f",
|
|
173
|
+
"format": "deb"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"package": "ruby-ipaddress",
|
|
177
|
+
"version": "0.8.3-5",
|
|
178
|
+
"url": "https://deb.debian.org/debian/pool/main/r/ruby-ipaddress/ruby-ipaddress_0.8.3-5_all.deb",
|
|
179
|
+
"sha256": "bca3d0499f3260510c352c08e25f757635452ebc61be6ed547ce9744c3b5c1a4",
|
|
180
|
+
"format": "deb"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"package": "whatweb",
|
|
184
|
+
"version": "0.5.5-1",
|
|
185
|
+
"url": "https://deb.debian.org/debian/pool/main/w/whatweb/whatweb_0.5.5-1_all.deb",
|
|
186
|
+
"sha256": "9a9e233d4a5340e9899b44aada049a5212bfae90a98ad7525b7d109f150afd78",
|
|
187
|
+
"format": "deb"
|
|
188
|
+
}
|
|
189
|
+
],
|
|
190
|
+
"executables": [
|
|
191
|
+
"whatweb",
|
|
192
|
+
"waybackurls"
|
|
193
|
+
],
|
|
194
|
+
"runtime": {
|
|
195
|
+
"enableInternet": true,
|
|
196
|
+
"vcpu": 1,
|
|
197
|
+
"memoryMib": 512,
|
|
198
|
+
"diskMb": 3000
|
|
199
|
+
},
|
|
200
|
+
"files": false,
|
|
201
|
+
"privateOnlyReasons": [
|
|
202
|
+
"WaybackURLs release has no detected license grant; resolve redistribution before public image publication"
|
|
203
|
+
],
|
|
204
|
+
"links": {
|
|
205
|
+
"whatweb": "/usr/bin/ruby"
|
|
206
|
+
}
|
|
207
|
+
}
|