cantarella-framework 1.16.0 → 1.18.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/CHANGELOG.md +8 -0
- package/modules/api-burp-import/index.mjs +45 -0
- package/modules/api-burp-import/module.json +14 -0
- package/modules/wrapper-aapt/index.mjs +56 -0
- package/modules/wrapper-aapt/module.json +21 -0
- package/modules/wrapper-arjun/index.mjs +46 -0
- package/modules/wrapper-arjun/module.json +21 -0
- package/modules/wrapper-bettercap/index.mjs +41 -0
- package/modules/wrapper-bettercap/module.json +21 -0
- package/modules/wrapper-bulk-extractor/index.mjs +60 -0
- package/modules/wrapper-bulk-extractor/module.json +21 -0
- package/modules/wrapper-cupp/index.mjs +48 -0
- package/modules/wrapper-cupp/module.json +40 -0
- package/modules/wrapper-dnsx/index.mjs +44 -0
- package/modules/wrapper-dnsx/module.json +21 -0
- package/modules/wrapper-fping/index.mjs +39 -0
- package/modules/wrapper-fping/module.json +21 -0
- package/modules/wrapper-frida/index.mjs +41 -0
- package/modules/wrapper-frida/module.json +21 -0
- package/modules/wrapper-gowitness/index.mjs +40 -0
- package/modules/wrapper-gowitness/module.json +21 -0
- package/modules/wrapper-holehe/index.mjs +40 -0
- package/modules/wrapper-holehe/module.json +21 -0
- package/modules/wrapper-hping3/index.mjs +37 -0
- package/modules/wrapper-hping3/module.json +28 -0
- package/modules/wrapper-impacket/index.mjs +41 -0
- package/modules/wrapper-impacket/module.json +34 -0
- package/modules/wrapper-katana/index.mjs +40 -0
- package/modules/wrapper-katana/module.json +21 -0
- package/modules/wrapper-kismet/index.mjs +45 -0
- package/modules/wrapper-kismet/module.json +21 -0
- package/modules/wrapper-kiterunner/index.mjs +41 -0
- package/modules/wrapper-kiterunner/module.json +21 -0
- package/modules/wrapper-ldapdomaindump/index.mjs +48 -0
- package/modules/wrapper-ldapdomaindump/module.json +40 -0
- package/modules/wrapper-maigret/index.mjs +49 -0
- package/modules/wrapper-maigret/module.json +21 -0
- package/modules/wrapper-paramspider/index.mjs +41 -0
- package/modules/wrapper-paramspider/module.json +21 -0
- package/modules/wrapper-rustscan/index.mjs +41 -0
- package/modules/wrapper-rustscan/module.json +21 -0
- package/modules/wrapper-spiderfoot/index.mjs +44 -0
- package/modules/wrapper-spiderfoot/module.json +21 -0
- package/modules/wrapper-testssl/index.mjs +50 -0
- package/modules/wrapper-testssl/module.json +21 -0
- package/modules/wrapper-tshark/index.mjs +41 -0
- package/modules/wrapper-tshark/module.json +21 -0
- package/modules/wrapper-zap/index.mjs +44 -0
- package/modules/wrapper-zap/module.json +21 -0
- package/package.json +1 -1
- package/packages/cli/dist/cli.js +1 -1
- package/packages/gui/dist/server.js +2 -2
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { spawn } from "node:child_process";
|
|
2
|
+
|
|
3
|
+
let input = "";
|
|
4
|
+
process.stdin.setEncoding("utf8");
|
|
5
|
+
process.stdin.on("data", (chunk) => (input += chunk));
|
|
6
|
+
process.stdin.on("end", () => {
|
|
7
|
+
const request = JSON.parse(input || "{}");
|
|
8
|
+
const emit = (event) => process.stdout.write(`${JSON.stringify(event)}\n`);
|
|
9
|
+
const target = String(request.target ?? "");
|
|
10
|
+
const child = spawn("paramspider", ["-d", target], { stdio: ["ignore", "pipe", "pipe"] });
|
|
11
|
+
let stdout = "";
|
|
12
|
+
let stderr = "";
|
|
13
|
+
child.stdout.on("data", (chunk) => (stdout += chunk));
|
|
14
|
+
child.stderr.on("data", (chunk) => (stderr += chunk));
|
|
15
|
+
child.on("error", (error) => {
|
|
16
|
+
emit({ type: "error", message: `ParamSpider failed: ${error.message}` });
|
|
17
|
+
process.exitCode = 1;
|
|
18
|
+
});
|
|
19
|
+
child.on("close", (code) => {
|
|
20
|
+
const plain = stdout.replace(/\x1b\[[0-9;]*m/g, "");
|
|
21
|
+
const urls = [];
|
|
22
|
+
for (const line of plain.split("\n")) {
|
|
23
|
+
const trimmed = line.trim();
|
|
24
|
+
if (!trimmed) continue;
|
|
25
|
+
if (!trimmed.includes("?")) continue;
|
|
26
|
+
const match = trimmed.match(/https?:\/\/\S+/);
|
|
27
|
+
if (match) urls.push(match[0]);
|
|
28
|
+
}
|
|
29
|
+
if (code !== 0 && !urls.length && !plain.trim()) {
|
|
30
|
+
emit({ type: "error", message: `ParamSpider failed: ${stderr.trim() || `exited with ${code}`}` });
|
|
31
|
+
process.exitCode = 1;
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
emit({
|
|
35
|
+
type: "result",
|
|
36
|
+
summary: `ParamSpider found ${urls.length} URLs with parameters for ${target}.`,
|
|
37
|
+
data: { target, urls: urls.slice(0, 100) },
|
|
38
|
+
});
|
|
39
|
+
emit({ type: "done", summary: `ParamSpider finished: ${urls.length} URLs.` });
|
|
40
|
+
});
|
|
41
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"category": "web",
|
|
3
|
+
"core_api": "^0.1.0",
|
|
4
|
+
"description": "Mines parameters from a domain with ParamSpider and reports the URLs it found.",
|
|
5
|
+
"entry": "index.mjs",
|
|
6
|
+
"external_tools": [
|
|
7
|
+
{
|
|
8
|
+
"command": "paramspider",
|
|
9
|
+
"install_hint": "Install ParamSpider from your distribution packages or with pipx install paramspider.",
|
|
10
|
+
"name": "ParamSpider"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"id": "web/paramspider",
|
|
14
|
+
"kind": "wrapper",
|
|
15
|
+
"maintenance": "active",
|
|
16
|
+
"name": "ParamSpider",
|
|
17
|
+
"options": [],
|
|
18
|
+
"risk": "low",
|
|
19
|
+
"schema_version": 1,
|
|
20
|
+
"version": "0.1.0"
|
|
21
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { spawn } from "node:child_process";
|
|
2
|
+
|
|
3
|
+
let input = "";
|
|
4
|
+
process.stdin.setEncoding("utf8");
|
|
5
|
+
process.stdin.on("data", (chunk) => (input += chunk));
|
|
6
|
+
process.stdin.on("end", () => {
|
|
7
|
+
const request = JSON.parse(input || "{}");
|
|
8
|
+
const emit = (event) => process.stdout.write(`${JSON.stringify(event)}\n`);
|
|
9
|
+
const target = String(request.target ?? "");
|
|
10
|
+
const child = spawn("rustscan", ["-a", target], { stdio: ["ignore", "pipe", "pipe"] });
|
|
11
|
+
let stdout = "";
|
|
12
|
+
let stderr = "";
|
|
13
|
+
child.stdout.on("data", (chunk) => (stdout += chunk));
|
|
14
|
+
child.stderr.on("data", (chunk) => (stderr += chunk));
|
|
15
|
+
child.on("error", (error) => {
|
|
16
|
+
emit({ type: "error", message: `RustScan failed: ${error.message}` });
|
|
17
|
+
process.exitCode = 1;
|
|
18
|
+
});
|
|
19
|
+
child.on("close", (code) => {
|
|
20
|
+
const plain = stdout.replace(/\x1b\[[0-9;]*m/g, "");
|
|
21
|
+
const ports = [];
|
|
22
|
+
for (const line of plain.split("\n")) {
|
|
23
|
+
const trimmed = line.trim();
|
|
24
|
+
if (!trimmed) continue;
|
|
25
|
+
const match = trimmed.match(/Open\s+(\S+):(\d+)/);
|
|
26
|
+
if (!match) continue;
|
|
27
|
+
ports.push({ host: match[1], port: Number(match[2]) });
|
|
28
|
+
}
|
|
29
|
+
if (code !== 0 && !ports.length) {
|
|
30
|
+
emit({ type: "error", message: `RustScan failed: ${stderr.trim() || `exited with ${code}`}` });
|
|
31
|
+
process.exitCode = 1;
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
emit({
|
|
35
|
+
type: "result",
|
|
36
|
+
summary: ports.length ? `RustScan found ${ports.length} open ports on ${target}.` : `RustScan found no open ports on ${target}.`,
|
|
37
|
+
data: { target, ports },
|
|
38
|
+
});
|
|
39
|
+
emit({ type: "done", summary: ports.length ? `RustScan finished: ${ports.length} open ports.` : "RustScan finished: no open ports." });
|
|
40
|
+
});
|
|
41
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"category": "network",
|
|
3
|
+
"core_api": "^0.1.0",
|
|
4
|
+
"description": "Scans a host for open ports with RustScan and reports what it found.",
|
|
5
|
+
"entry": "index.mjs",
|
|
6
|
+
"external_tools": [
|
|
7
|
+
{
|
|
8
|
+
"command": "rustscan",
|
|
9
|
+
"install_hint": "Install RustScan from your distribution packages or the RustScan releases.",
|
|
10
|
+
"name": "RustScan"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"id": "network/rustscan",
|
|
14
|
+
"kind": "wrapper",
|
|
15
|
+
"maintenance": "active",
|
|
16
|
+
"name": "RustScan",
|
|
17
|
+
"options": [],
|
|
18
|
+
"risk": "low",
|
|
19
|
+
"schema_version": 1,
|
|
20
|
+
"version": "0.1.0"
|
|
21
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { spawn } from "node:child_process";
|
|
2
|
+
|
|
3
|
+
let input = "";
|
|
4
|
+
process.stdin.setEncoding("utf8");
|
|
5
|
+
process.stdin.on("data", (chunk) => (input += chunk));
|
|
6
|
+
process.stdin.on("end", () => {
|
|
7
|
+
const request = JSON.parse(input || "{}");
|
|
8
|
+
const emit = (event) => process.stdout.write(`${JSON.stringify(event)}\n`);
|
|
9
|
+
const target = String(request.target ?? "");
|
|
10
|
+
const child = spawn("spiderfoot", ["-s", target, "-o", "json"], { stdio: ["ignore", "pipe", "pipe"] });
|
|
11
|
+
let stdout = "";
|
|
12
|
+
let stderr = "";
|
|
13
|
+
child.stdout.on("data", (chunk) => (stdout += chunk));
|
|
14
|
+
child.stderr.on("data", (chunk) => (stderr += chunk));
|
|
15
|
+
child.on("error", (error) => {
|
|
16
|
+
emit({ type: "error", message: `SpiderFoot failed: ${error.message}` });
|
|
17
|
+
process.exitCode = 1;
|
|
18
|
+
});
|
|
19
|
+
child.on("close", (code) => {
|
|
20
|
+
const plain = stdout.replace(/\x1b\[[0-9;]*m/g, "");
|
|
21
|
+
const events = [];
|
|
22
|
+
for (const line of plain.split("\n")) {
|
|
23
|
+
const trimmed = line.trim();
|
|
24
|
+
if (!trimmed) continue;
|
|
25
|
+
try {
|
|
26
|
+
const parsed = JSON.parse(trimmed);
|
|
27
|
+
if (parsed.type || parsed.data) events.push(parsed);
|
|
28
|
+
} catch {
|
|
29
|
+
// not a JSON line, skip
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
if (code !== 0 && !events.length && !plain.trim()) {
|
|
33
|
+
emit({ type: "error", message: `SpiderFoot failed: ${stderr.trim() || `exited with ${code}`}` });
|
|
34
|
+
process.exitCode = 1;
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
emit({
|
|
38
|
+
type: "result",
|
|
39
|
+
summary: `SpiderFoot found ${events.length} events for ${target}.`,
|
|
40
|
+
data: { target, events: events.slice(0, 100) },
|
|
41
|
+
});
|
|
42
|
+
emit({ type: "done", summary: `SpiderFoot finished: ${events.length} events.` });
|
|
43
|
+
});
|
|
44
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"category": "recon",
|
|
3
|
+
"core_api": "^0.1.0",
|
|
4
|
+
"description": "Runs a SpiderFoot scan on a target and reports the events it found.",
|
|
5
|
+
"entry": "index.mjs",
|
|
6
|
+
"external_tools": [
|
|
7
|
+
{
|
|
8
|
+
"command": "spiderfoot",
|
|
9
|
+
"install_hint": "Install SpiderFoot from your distribution packages or with pipx install spiderfoot.",
|
|
10
|
+
"name": "SpiderFoot"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"id": "recon/spiderfoot",
|
|
14
|
+
"kind": "wrapper",
|
|
15
|
+
"maintenance": "active",
|
|
16
|
+
"name": "SpiderFoot",
|
|
17
|
+
"options": [],
|
|
18
|
+
"risk": "low",
|
|
19
|
+
"schema_version": 1,
|
|
20
|
+
"version": "0.1.0"
|
|
21
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { spawn } from "node:child_process";
|
|
2
|
+
import { mkdtemp, readFile } from "node:fs/promises";
|
|
3
|
+
import { tmpdir } from "node:os";
|
|
4
|
+
import { join } from "node:path";
|
|
5
|
+
|
|
6
|
+
let input = "";
|
|
7
|
+
process.stdin.setEncoding("utf8");
|
|
8
|
+
process.stdin.on("data", (chunk) => (input += chunk));
|
|
9
|
+
process.stdin.on("end", async () => {
|
|
10
|
+
const request = JSON.parse(input || "{}");
|
|
11
|
+
const emit = (event) => process.stdout.write(`${JSON.stringify(event)}\n`);
|
|
12
|
+
const target = String(request.target ?? "");
|
|
13
|
+
const dir = await mkdtemp(join(tmpdir(), "cantarella-testssl-"));
|
|
14
|
+
const report = join(dir, "report.json");
|
|
15
|
+
const child = spawn("testssl.sh", ["--jsonfile", report, target], { stdio: ["ignore", "pipe", "pipe"] });
|
|
16
|
+
let stdout = "";
|
|
17
|
+
let stderr = "";
|
|
18
|
+
child.stdout.on("data", (chunk) => (stdout += chunk));
|
|
19
|
+
child.stderr.on("data", (chunk) => (stderr += chunk));
|
|
20
|
+
child.on("error", (error) => {
|
|
21
|
+
emit({ type: "error", message: `testssl.sh failed: ${error.message}` });
|
|
22
|
+
process.exitCode = 1;
|
|
23
|
+
});
|
|
24
|
+
child.on("close", async (code) => {
|
|
25
|
+
let findings = [];
|
|
26
|
+
try {
|
|
27
|
+
const parsed = JSON.parse(await readFile(report, "utf8"));
|
|
28
|
+
const scanResult = Array.isArray(parsed.scanResult) ? parsed.scanResult : [];
|
|
29
|
+
for (const entry of scanResult) {
|
|
30
|
+
const severity = String(entry.severity ?? "").toUpperCase();
|
|
31
|
+
if (severity && severity !== "OK" && severity !== "INFO") {
|
|
32
|
+
findings.push({ id: entry.id ?? "", severity, finding: entry.finding ?? "" });
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
} catch {
|
|
36
|
+
findings = [];
|
|
37
|
+
}
|
|
38
|
+
if (code !== 0 && !findings.length) {
|
|
39
|
+
emit({ type: "error", message: `testssl.sh failed: ${stderr.trim() || `exited with ${code}`}` });
|
|
40
|
+
process.exitCode = 1;
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
emit({
|
|
44
|
+
type: "result",
|
|
45
|
+
summary: `testssl.sh found ${findings.length} findings on ${target}.`,
|
|
46
|
+
data: { target, findings: findings.slice(0, 100) },
|
|
47
|
+
});
|
|
48
|
+
emit({ type: "done", summary: `testssl.sh finished: ${findings.length} findings.` });
|
|
49
|
+
});
|
|
50
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"category": "web",
|
|
3
|
+
"core_api": "^0.1.0",
|
|
4
|
+
"description": "Audits a TLS server with testssl.sh and reports the findings.",
|
|
5
|
+
"entry": "index.mjs",
|
|
6
|
+
"external_tools": [
|
|
7
|
+
{
|
|
8
|
+
"command": "testssl.sh",
|
|
9
|
+
"install_hint": "Install testssl.sh from your distribution packages or the testssl.sh releases.",
|
|
10
|
+
"name": "testssl.sh"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"id": "web/testssl",
|
|
14
|
+
"kind": "wrapper",
|
|
15
|
+
"maintenance": "active",
|
|
16
|
+
"name": "testssl.sh",
|
|
17
|
+
"options": [],
|
|
18
|
+
"risk": "low",
|
|
19
|
+
"schema_version": 1,
|
|
20
|
+
"version": "0.1.0"
|
|
21
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { spawn } from "node:child_process";
|
|
2
|
+
|
|
3
|
+
let input = "";
|
|
4
|
+
process.stdin.setEncoding("utf8");
|
|
5
|
+
process.stdin.on("data", (chunk) => (input += chunk));
|
|
6
|
+
process.stdin.on("end", () => {
|
|
7
|
+
const request = JSON.parse(input || "{}");
|
|
8
|
+
const emit = (event) => process.stdout.write(`${JSON.stringify(event)}\n`);
|
|
9
|
+
const target = String(request.target ?? "");
|
|
10
|
+
const child = spawn("tshark", ["-r", target, "-T", "fields", "-e", "frame.number", "-e", "ip.src", "-e", "ip.dst", "-e", "_ws.col.Protocol"], { stdio: ["ignore", "pipe", "pipe"] });
|
|
11
|
+
let stdout = "";
|
|
12
|
+
let stderr = "";
|
|
13
|
+
child.stdout.on("data", (chunk) => (stdout += chunk));
|
|
14
|
+
child.stderr.on("data", (chunk) => (stderr += chunk));
|
|
15
|
+
child.on("error", (error) => {
|
|
16
|
+
emit({ type: "error", message: `tshark failed: ${error.message}` });
|
|
17
|
+
process.exitCode = 1;
|
|
18
|
+
});
|
|
19
|
+
child.on("close", (code) => {
|
|
20
|
+
const plain = stdout.replace(/\x1b\[[0-9;]*m/g, "");
|
|
21
|
+
const packets = [];
|
|
22
|
+
for (const line of plain.split("\n")) {
|
|
23
|
+
const trimmed = line.trim();
|
|
24
|
+
if (!trimmed) continue;
|
|
25
|
+
const parts = trimmed.split("\t");
|
|
26
|
+
if (parts.length < 4) continue;
|
|
27
|
+
packets.push({ number: Number(parts[0]), src: parts[1], dst: parts[2], protocol: parts[3] });
|
|
28
|
+
}
|
|
29
|
+
if (code !== 0 && !packets.length && !plain.trim()) {
|
|
30
|
+
emit({ type: "error", message: `tshark failed: ${stderr.trim() || `exited with ${code}`}` });
|
|
31
|
+
process.exitCode = 1;
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
emit({
|
|
35
|
+
type: "result",
|
|
36
|
+
summary: `tshark read ${packets.length} packets from ${target}.`,
|
|
37
|
+
data: { target, packets: packets.slice(0, 100) },
|
|
38
|
+
});
|
|
39
|
+
emit({ type: "done", summary: `tshark finished: ${packets.length} packets.` });
|
|
40
|
+
});
|
|
41
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"category": "network",
|
|
3
|
+
"core_api": "^0.1.0",
|
|
4
|
+
"description": "Reads packets from a capture file with tshark and reports the traffic it found.",
|
|
5
|
+
"entry": "index.mjs",
|
|
6
|
+
"external_tools": [
|
|
7
|
+
{
|
|
8
|
+
"command": "tshark",
|
|
9
|
+
"install_hint": "Install tshark from your distribution packages (wireshark-cli or tshark).",
|
|
10
|
+
"name": "tshark"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"id": "network/tshark",
|
|
14
|
+
"kind": "wrapper",
|
|
15
|
+
"maintenance": "active",
|
|
16
|
+
"name": "tshark",
|
|
17
|
+
"options": [],
|
|
18
|
+
"risk": "low",
|
|
19
|
+
"schema_version": 1,
|
|
20
|
+
"version": "0.1.0"
|
|
21
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { spawn } from "node:child_process";
|
|
2
|
+
import { mkdtemp, readFile } from "node:fs/promises";
|
|
3
|
+
import { tmpdir } from "node:os";
|
|
4
|
+
import { join } from "node:path";
|
|
5
|
+
|
|
6
|
+
let input = "";
|
|
7
|
+
process.stdin.setEncoding("utf8");
|
|
8
|
+
process.stdin.on("data", (chunk) => (input += chunk));
|
|
9
|
+
process.stdin.on("end", async () => {
|
|
10
|
+
const request = JSON.parse(input || "{}");
|
|
11
|
+
const emit = (event) => process.stdout.write(`${JSON.stringify(event)}\n`);
|
|
12
|
+
const target = String(request.target ?? "");
|
|
13
|
+
const dir = await mkdtemp(join(tmpdir(), "cantarella-zap-"));
|
|
14
|
+
const report = join(dir, "report.html");
|
|
15
|
+
const child = spawn("zap.sh", ["-cmd", "-quickurl", target, "-quickout", report], { stdio: ["ignore", "pipe", "pipe"] });
|
|
16
|
+
let stdout = "";
|
|
17
|
+
let stderr = "";
|
|
18
|
+
child.stdout.on("data", (chunk) => (stdout += chunk));
|
|
19
|
+
child.stderr.on("data", (chunk) => (stderr += chunk));
|
|
20
|
+
child.on("error", (error) => {
|
|
21
|
+
emit({ type: "error", message: `OWASP ZAP failed: ${error.message}` });
|
|
22
|
+
process.exitCode = 1;
|
|
23
|
+
});
|
|
24
|
+
child.on("close", async (code) => {
|
|
25
|
+
let html = "";
|
|
26
|
+
try {
|
|
27
|
+
html = await readFile(report, "utf8");
|
|
28
|
+
} catch {
|
|
29
|
+
html = "";
|
|
30
|
+
}
|
|
31
|
+
const alerts = (html.match(/<tr>/gi) ?? []).length;
|
|
32
|
+
if (code !== 0 && !alerts && !html.trim()) {
|
|
33
|
+
emit({ type: "error", message: `OWASP ZAP failed: ${stderr.trim() || `exited with ${code}`}` });
|
|
34
|
+
process.exitCode = 1;
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
emit({
|
|
38
|
+
type: "result",
|
|
39
|
+
summary: `OWASP ZAP found ${alerts} alerts on ${target}.`,
|
|
40
|
+
data: { target, alerts, report },
|
|
41
|
+
});
|
|
42
|
+
emit({ type: "done", summary: `OWASP ZAP finished: ${alerts} alerts.` });
|
|
43
|
+
});
|
|
44
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"category": "web",
|
|
3
|
+
"core_api": "^0.1.0",
|
|
4
|
+
"description": "Runs an OWASP ZAP quick scan on a URL and reports the alerts it found.",
|
|
5
|
+
"entry": "index.mjs",
|
|
6
|
+
"external_tools": [
|
|
7
|
+
{
|
|
8
|
+
"command": "zap.sh",
|
|
9
|
+
"install_hint": "Install OWASP ZAP from your distribution packages or the ZAP releases.",
|
|
10
|
+
"name": "OWASP ZAP"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"id": "web/zap",
|
|
14
|
+
"kind": "wrapper",
|
|
15
|
+
"maintenance": "active",
|
|
16
|
+
"name": "OWASP ZAP",
|
|
17
|
+
"options": [],
|
|
18
|
+
"risk": "medium",
|
|
19
|
+
"schema_version": 1,
|
|
20
|
+
"version": "0.1.0"
|
|
21
|
+
}
|
package/package.json
CHANGED
package/packages/cli/dist/cli.js
CHANGED
|
@@ -11,7 +11,7 @@ process.stdout.on("error", (error) => {
|
|
|
11
11
|
process.exit(0);
|
|
12
12
|
throw error;
|
|
13
13
|
});
|
|
14
|
-
const VERSION = "1.
|
|
14
|
+
const VERSION = "1.18.0";
|
|
15
15
|
const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "../../..");
|
|
16
16
|
function banner() {
|
|
17
17
|
return (process.stdout.columns ?? 80) >= 72 ? BANNER : COMPACT_BANNER;
|
|
@@ -78,8 +78,8 @@ export function createGuiServer(root) {
|
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
sendJson(response, 200, {
|
|
81
|
-
version: "1.
|
|
82
|
-
update_message: (await checkForUpdate("1.
|
|
81
|
+
version: "1.18.0",
|
|
82
|
+
update_message: (await checkForUpdate("1.18.0")).message,
|
|
83
83
|
categories: CATEGORIES,
|
|
84
84
|
modules: modules.map(({ manifest }) => manifest),
|
|
85
85
|
external_tools: [...tools.values()],
|