@memrov2/pentcloud-nuclei 0.0.0-stage → 0.1.1-dev.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 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,3 @@
1
- # Temporary Holding Version
1
+ # PentCloud nuclei
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Version 0.1.0 SDK for the native Cloudflare nuclei tool pack. See the repository [bundle documentation](https://github.com/Memrov/PentCloud-tools/blob/main/docs/bundles.md) for its exact interface, build and limitations. The package exposes the adapter as its main entry point and NucleiRunner through `./worker`.
@@ -0,0 +1,3 @@
1
+ # Nuclei pack notices
2
+
3
+ Nuclei 3.11.1 and the selected nuclei-templates revision are MIT licensed. The image preserves their original license texts and signed templates. The pinned Alpine base retains its upstream packages and licenses. See tools.lock.json for exact sources, template revision and checksums. The adapter is MIT licensed.
package/package.json CHANGED
@@ -1,6 +1,38 @@
1
1
  {
2
2
  "name": "@memrov2/pentcloud-nuclei",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.1-dev.0",
4
+ "type": "module",
5
+ "license": "MIT",
6
+ "description": "Cloudflare-native nuclei tool pack",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/Memrov/PentCloud-tools.git",
10
+ "directory": "packages/nuclei"
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.1-dev.0"
37
+ }
38
+ }
@@ -0,0 +1,8 @@
1
+ import type { ToolCommand, PackLock } from "@memrov2/pentcloud-tool-runtime";
2
+ export type PackRequest = {
3
+ tool: "nuclei";
4
+ target: string;
5
+ profile?: "exposures";
6
+ };
7
+ export declare const lock: PackLock;
8
+ export declare function buildCommand(input: PackRequest): ToolCommand;
package/src/index.mjs ADDED
@@ -0,0 +1,42 @@
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
+ const url = request(input, ["tool", "target", "profile"], ["nuclei"]);
6
+ if (input.profile !== undefined && input.profile !== "exposures")
7
+ throw new TypeError("Select the packaged exposures profile");
8
+ if (url.search)
9
+ throw new TypeError(
10
+ "Template scanning requires a base URL without a query",
11
+ );
12
+ return {
13
+ argv: [
14
+ "/opt/pentcloud-nuclei/bin/nuclei",
15
+ "-u",
16
+ url.href,
17
+ "-t",
18
+ "/opt/pentcloud-nuclei/assets/exposures",
19
+ "-j",
20
+ "-silent",
21
+ "-ni",
22
+ "-duc",
23
+ "-dr",
24
+ "-dut",
25
+ "-pt",
26
+ "http",
27
+ "-rl",
28
+ "2",
29
+ "-c",
30
+ "1",
31
+ "-bs",
32
+ "1",
33
+ "-timeout",
34
+ "10",
35
+ "-retries",
36
+ "0",
37
+ "-stats-json",
38
+ ],
39
+ stdin: "",
40
+ timeoutMs: 75000,
41
+ };
42
+ }
@@ -0,0 +1,9 @@
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 NucleiRunner extends DurableObject {
5
+ ready(): Promise<{ image: string; instance: "lite"; readyMs: number }>;
6
+ run(input: PackRequest): Promise<ToolResult>;
7
+ retire(): Promise<{ stopped: boolean; retired: true }>;
8
+ stop(): Promise<{ stopped: boolean }>;
9
+ }
package/src/worker.mjs ADDED
@@ -0,0 +1,3 @@
1
+ import { createRunner } from "@memrov2/pentcloud-tool-runtime/worker";
2
+ import { lock, buildCommand } from "./index.mjs";
3
+ export const NucleiRunner = createRunner(lock, buildCommand);
@@ -0,0 +1,42 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "packVersion": "0.1.0",
4
+ "platform": "linux/amd64",
5
+ "packId": "nuclei",
6
+ "baseImage": "docker.io/library/alpine@sha256:85f2b723e106c34644cd5851d7e81ee87da98ac54672b29947c052a45d31dc2f",
7
+ "tools": [
8
+ {
9
+ "tool": "nuclei",
10
+ "version": "v3.11.1",
11
+ "url": "https://github.com/projectdiscovery/nuclei/releases/download/v3.11.1/nuclei_3.11.1_linux_amd64.zip",
12
+ "sha256": "ea63d4ae232808cd7c6bc00d0142428e231fab59dae01042246097d195835ab6",
13
+ "binarySha256": "c49588140f357cbdddd5436dec11201953a4c5390faeec90777f9ee2cfd70251",
14
+ "format": "zip",
15
+ "member": "nuclei"
16
+ }
17
+ ],
18
+ "assets": [
19
+ {
20
+ "url": "https://raw.githubusercontent.com/projectdiscovery/nuclei-templates/21dedc3f3d4e52c8421aa4cfe34a26f33450abeb/http/exposures/configs/git-config.yaml",
21
+ "sha256": "bd8bdfa0b5ed5bf4d3712edb793adfd0987d9282e51c6f7d673bf14b9e4dd524",
22
+ "path": "exposures/git-config.yaml"
23
+ },
24
+ {
25
+ "url": "https://raw.githubusercontent.com/projectdiscovery/nuclei-templates/21dedc3f3d4e52c8421aa4cfe34a26f33450abeb/http/exposures/configs/laravel-env.yaml",
26
+ "sha256": "37566f5fb1764be65072836390d4ff3f40af4917ecf00bdb08dbfcf862bb09c7",
27
+ "path": "exposures/laravel-env.yaml"
28
+ },
29
+ {
30
+ "url": "https://raw.githubusercontent.com/projectdiscovery/nuclei-templates/21dedc3f3d4e52c8421aa4cfe34a26f33450abeb/http/exposures/files/ds-store-file.yaml",
31
+ "sha256": "eeaa88a701796f263e8e4c32a5d16ae3e18b2cc97d65338632e4ac8b9e49b7a8",
32
+ "path": "exposures/ds-store-file.yaml"
33
+ },
34
+ {
35
+ "url": "https://raw.githubusercontent.com/projectdiscovery/nuclei-templates/21dedc3f3d4e52c8421aa4cfe34a26f33450abeb/LICENSE.md",
36
+ "sha256": "5fa6644d2dd1987a79c06f4af210d2cf8cfc4ee799999029d0f9980c9cf95a2c",
37
+ "path": "licenses/nuclei-templates-LICENSE.md"
38
+ }
39
+ ],
40
+ "templateRevision": "21dedc3f3d4e52c8421aa4cfe34a26f33450abeb",
41
+ "executables": ["nuclei"]
42
+ }