cantarella-framework 1.17.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.
Files changed (32) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/modules/api-burp-import/index.mjs +45 -0
  3. package/modules/api-burp-import/module.json +14 -0
  4. package/modules/wrapper-aapt/index.mjs +56 -0
  5. package/modules/wrapper-aapt/module.json +21 -0
  6. package/modules/wrapper-bettercap/index.mjs +41 -0
  7. package/modules/wrapper-bettercap/module.json +21 -0
  8. package/modules/wrapper-bulk-extractor/index.mjs +60 -0
  9. package/modules/wrapper-bulk-extractor/module.json +21 -0
  10. package/modules/wrapper-cupp/index.mjs +48 -0
  11. package/modules/wrapper-cupp/module.json +40 -0
  12. package/modules/wrapper-frida/index.mjs +41 -0
  13. package/modules/wrapper-frida/module.json +21 -0
  14. package/modules/wrapper-impacket/index.mjs +41 -0
  15. package/modules/wrapper-impacket/module.json +34 -0
  16. package/modules/wrapper-kismet/index.mjs +45 -0
  17. package/modules/wrapper-kismet/module.json +21 -0
  18. package/modules/wrapper-kiterunner/index.mjs +41 -0
  19. package/modules/wrapper-kiterunner/module.json +21 -0
  20. package/modules/wrapper-ldapdomaindump/index.mjs +48 -0
  21. package/modules/wrapper-ldapdomaindump/module.json +40 -0
  22. package/modules/wrapper-spiderfoot/index.mjs +44 -0
  23. package/modules/wrapper-spiderfoot/module.json +21 -0
  24. package/modules/wrapper-testssl/index.mjs +50 -0
  25. package/modules/wrapper-testssl/module.json +21 -0
  26. package/modules/wrapper-tshark/index.mjs +41 -0
  27. package/modules/wrapper-tshark/module.json +21 -0
  28. package/modules/wrapper-zap/index.mjs +44 -0
  29. package/modules/wrapper-zap/module.json +21 -0
  30. package/package.json +1 -1
  31. package/packages/cli/dist/cli.js +1 -1
  32. package/packages/gui/dist/server.js +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.18.0
4
+
5
+ - New modules: tshark packet reading, SpiderFoot OSINT scanning, OWASP ZAP quick scanning, testssl.sh TLS auditing, Kiterunner API route discovery, Burp Suite issue import, aapt APK metadata, frida-ps device process listing, Bettercap network probing, Kismet device extraction, CUPP targeted wordlists, Impacket GetNPUsers AS-REP requests, ldapdomaindump domain user dumping, and bulk_extractor email and URL carving.
6
+
3
7
  ## 1.17.0
4
8
 
5
9
  - New modules: RustScan fast port scanning, fping live host discovery, hping3 TCP probing, dnsx DNS resolution, Katana web crawling, gowitness website screenshots, Maigret username search, Holehe email footprint, Arjun parameter discovery, and ParamSpider parameter mining.
@@ -0,0 +1,45 @@
1
+ import { readFileSync } from "node:fs";
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
+ try {
10
+ const result = build(String(request.target ?? ""));
11
+ emit({ type: "result", summary: result.summary, data: result.data });
12
+ emit({ type: "done", summary: `Burp import finished: ${result.data.issues.length} issues.` });
13
+ } catch (error) {
14
+ emit({ type: "error", message: error.message });
15
+ process.exitCode = 1;
16
+ }
17
+ });
18
+
19
+ function field(block, tag) {
20
+ const match = block.match(new RegExp(`<${tag}>([\\s\\S]*?)</${tag}>`));
21
+ return match ? match[1].trim() : "";
22
+ }
23
+
24
+ function build(target) {
25
+ let raw;
26
+ try {
27
+ raw = readFileSync(target, "utf8");
28
+ } catch {
29
+ throw new Error(`Cannot read Burp export file: ${target}.`);
30
+ }
31
+ const issues = [];
32
+ const blocks = raw.match(/<issue>[\s\S]*?<\/issue>/g) ?? [];
33
+ for (const block of blocks) {
34
+ issues.push({
35
+ name: field(block, "name"),
36
+ severity: field(block, "severity"),
37
+ host: field(block, "host"),
38
+ path: field(block, "path"),
39
+ });
40
+ }
41
+ return {
42
+ summary: `Burp import read ${issues.length} issues from ${target}.`,
43
+ data: { source: target, issues: issues.slice(0, 100) },
44
+ };
45
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "category": "api",
3
+ "core_api": "^0.1.0",
4
+ "description": "Imports issues from a Burp Suite XML export and reports them.",
5
+ "entry": "index.mjs",
6
+ "id": "api/burp-import",
7
+ "kind": "native",
8
+ "maintenance": "active",
9
+ "name": "Burp Import",
10
+ "options": [],
11
+ "risk": "info",
12
+ "schema_version": 1,
13
+ "version": "0.1.0"
14
+ }
@@ -0,0 +1,56 @@
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("aapt", ["dump", "badging", 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: `aapt failed: ${error.message}` });
17
+ process.exitCode = 1;
18
+ });
19
+ child.on("close", (code) => {
20
+ const plain = stdout.replace(/\x1b\[[0-9;]*m/g, "");
21
+ let packageName = "";
22
+ let versionCode = "";
23
+ let versionName = "";
24
+ let label = "";
25
+ const permissions = [];
26
+ for (const line of plain.split("\n")) {
27
+ const trimmed = line.trim();
28
+ if (!trimmed) continue;
29
+ const pkgMatch = trimmed.match(/^package:\s+name='([^']+)'\s+versionCode='([^']+)'\s+versionName='([^']+)'/);
30
+ if (pkgMatch) {
31
+ packageName = pkgMatch[1];
32
+ versionCode = pkgMatch[2];
33
+ versionName = pkgMatch[3];
34
+ continue;
35
+ }
36
+ const labelMatch = trimmed.match(/^application-label:'([^']+)'/);
37
+ if (labelMatch) {
38
+ label = labelMatch[1];
39
+ continue;
40
+ }
41
+ const permMatch = trimmed.match(/^uses-permission:\s+name='([^']+)'/);
42
+ if (permMatch) permissions.push(permMatch[1]);
43
+ }
44
+ if (code !== 0 && !packageName && !plain.trim()) {
45
+ emit({ type: "error", message: `aapt failed: ${stderr.trim() || `exited with ${code}`}` });
46
+ process.exitCode = 1;
47
+ return;
48
+ }
49
+ emit({
50
+ type: "result",
51
+ summary: `aapt read ${packageName || target} with ${permissions.length} permissions.`,
52
+ data: { target, package: packageName, version_code: versionCode, version_name: versionName, label, permissions },
53
+ });
54
+ emit({ type: "done", summary: `aapt finished: ${packageName || target}.` });
55
+ });
56
+ });
@@ -0,0 +1,21 @@
1
+ {
2
+ "category": "mobile",
3
+ "core_api": "^0.1.0",
4
+ "description": "Reads APK metadata with aapt and reports the package, version, and permissions.",
5
+ "entry": "index.mjs",
6
+ "external_tools": [
7
+ {
8
+ "command": "aapt",
9
+ "install_hint": "Install aapt from your distribution packages (Android SDK build-tools).",
10
+ "name": "aapt"
11
+ }
12
+ ],
13
+ "id": "mobile/aapt",
14
+ "kind": "wrapper",
15
+ "maintenance": "active",
16
+ "name": "aapt",
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("bettercap", ["-eval", "net.probe on; sleep 2; net.show; q"], { 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: `Bettercap 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 hosts = [];
22
+ for (const line of plain.split("\n")) {
23
+ const trimmed = line.trim();
24
+ if (!trimmed) continue;
25
+ const match = trimmed.match(/(\d{1,3}(\.\d{1,3}){3})\s+([0-9a-fA-F]{2}(:[0-9a-fA-F]{2}){5})/);
26
+ if (!match) continue;
27
+ hosts.push({ ip: match[1], mac: match[3] });
28
+ }
29
+ if (code !== 0 && !hosts.length && !plain.trim()) {
30
+ emit({ type: "error", message: `Bettercap failed: ${stderr.trim() || `exited with ${code}`}` });
31
+ process.exitCode = 1;
32
+ return;
33
+ }
34
+ emit({
35
+ type: "result",
36
+ summary: `Bettercap found ${hosts.length} hosts on the network.`,
37
+ data: { target, hosts: hosts.slice(0, 100) },
38
+ });
39
+ emit({ type: "done", summary: `Bettercap finished: ${hosts.length} hosts.` });
40
+ });
41
+ });
@@ -0,0 +1,21 @@
1
+ {
2
+ "category": "wireless",
3
+ "core_api": "^0.1.0",
4
+ "description": "Probes the local network with Bettercap and reports the hosts it found.",
5
+ "entry": "index.mjs",
6
+ "external_tools": [
7
+ {
8
+ "command": "bettercap",
9
+ "install_hint": "Install Bettercap from your distribution packages or the Bettercap releases.",
10
+ "name": "Bettercap"
11
+ }
12
+ ],
13
+ "id": "wireless/bettercap",
14
+ "kind": "wrapper",
15
+ "maintenance": "active",
16
+ "name": "Bettercap",
17
+ "options": [],
18
+ "risk": "medium",
19
+ "schema_version": 1,
20
+ "version": "0.1.0"
21
+ }
@@ -0,0 +1,60 @@
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-bulkextractor-"));
14
+ const child = spawn("bulk_extractor", ["-o", dir, target], { stdio: ["ignore", "pipe", "pipe"] });
15
+ let stdout = "";
16
+ let stderr = "";
17
+ child.stdout.on("data", (chunk) => (stdout += chunk));
18
+ child.stderr.on("data", (chunk) => (stderr += chunk));
19
+ child.on("error", (error) => {
20
+ emit({ type: "error", message: `bulk_extractor failed: ${error.message}` });
21
+ process.exitCode = 1;
22
+ });
23
+ child.on("close", async (code) => {
24
+ const emails = [];
25
+ const urls = [];
26
+ try {
27
+ const emailRaw = await readFile(join(dir, "email.txt"), "utf8");
28
+ for (const line of emailRaw.split("\n")) {
29
+ const trimmed = line.trim();
30
+ if (!trimmed || trimmed.startsWith("#")) continue;
31
+ const match = trimmed.match(/(\S+@\S+)/);
32
+ if (match) emails.push(match[1]);
33
+ }
34
+ } catch {
35
+ // no email.txt, fine
36
+ }
37
+ try {
38
+ const urlRaw = await readFile(join(dir, "url.txt"), "utf8");
39
+ for (const line of urlRaw.split("\n")) {
40
+ const trimmed = line.trim();
41
+ if (!trimmed || trimmed.startsWith("#")) continue;
42
+ const match = trimmed.match(/(https?:\/\/\S+)/);
43
+ if (match) urls.push(match[1]);
44
+ }
45
+ } catch {
46
+ // no url.txt, fine
47
+ }
48
+ if (code !== 0 && !emails.length && !urls.length) {
49
+ emit({ type: "error", message: `bulk_extractor failed: ${stderr.trim() || `exited with ${code}`}` });
50
+ process.exitCode = 1;
51
+ return;
52
+ }
53
+ emit({
54
+ type: "result",
55
+ summary: `bulk_extractor found ${emails.length} emails and ${urls.length} URLs in ${target}.`,
56
+ data: { target, emails: emails.slice(0, 100), urls: urls.slice(0, 100) },
57
+ });
58
+ emit({ type: "done", summary: `bulk_extractor finished: ${emails.length} emails, ${urls.length} URLs.` });
59
+ });
60
+ });
@@ -0,0 +1,21 @@
1
+ {
2
+ "category": "forensics",
3
+ "core_api": "^0.1.0",
4
+ "description": "Carves emails and URLs from a disk image with bulk_extractor and reports what it found.",
5
+ "entry": "index.mjs",
6
+ "external_tools": [
7
+ {
8
+ "command": "bulk_extractor",
9
+ "install_hint": "Install bulk_extractor from your distribution packages.",
10
+ "name": "bulk_extractor"
11
+ }
12
+ ],
13
+ "id": "forensics/bulk-extractor",
14
+ "kind": "wrapper",
15
+ "maintenance": "active",
16
+ "name": "bulk_extractor",
17
+ "options": [],
18
+ "risk": "low",
19
+ "schema_version": 1,
20
+ "version": "0.1.0"
21
+ }
@@ -0,0 +1,48 @@
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 name = String(request.options?.name ?? "");
11
+ const surname = String(request.options?.surname ?? "");
12
+ const birthdate = String(request.options?.birthdate ?? "");
13
+ const child = spawn("cupp", ["-i"], { stdio: ["pipe", "pipe", "pipe"] });
14
+ let stdout = "";
15
+ let stderr = "";
16
+ child.stdout.on("data", (chunk) => (stdout += chunk));
17
+ child.stderr.on("data", (chunk) => (stderr += chunk));
18
+ child.on("error", (error) => {
19
+ emit({ type: "error", message: `CUPP failed: ${error.message}` });
20
+ process.exitCode = 1;
21
+ });
22
+ child.on("close", (code) => {
23
+ const plain = stdout.replace(/\x1b\[[0-9;]*m/g, "");
24
+ let wordlist = "";
25
+ let count = 0;
26
+ for (const line of plain.split("\n")) {
27
+ const trimmed = line.trim();
28
+ if (!trimmed) continue;
29
+ const fileMatch = trimmed.match(/Saving dictionary to\s+(\S+)/i);
30
+ if (fileMatch) wordlist = fileMatch[1];
31
+ const countMatch = trimmed.match(/(\d+)\s+words/i);
32
+ if (countMatch) count = Number(countMatch[1]);
33
+ }
34
+ if (code !== 0 && !wordlist && !plain.trim()) {
35
+ emit({ type: "error", message: `CUPP failed: ${stderr.trim() || `exited with ${code}`}` });
36
+ process.exitCode = 1;
37
+ return;
38
+ }
39
+ emit({
40
+ type: "result",
41
+ summary: wordlist ? `CUPP built a wordlist with ${count} words: ${wordlist}.` : "CUPP built no wordlist.",
42
+ data: { target, name, surname, birthdate, wordlist, count },
43
+ });
44
+ emit({ type: "done", summary: wordlist ? `CUPP finished: ${count} words.` : "CUPP finished: no wordlist." });
45
+ });
46
+ child.stdin.write(`${name}\n${surname}\n${birthdate}\n\n\n\n\n\n`);
47
+ child.stdin.end();
48
+ });
@@ -0,0 +1,40 @@
1
+ {
2
+ "category": "password",
3
+ "core_api": "^0.1.0",
4
+ "description": "Builds a targeted wordlist from profile details with CUPP and reports it.",
5
+ "entry": "index.mjs",
6
+ "external_tools": [
7
+ {
8
+ "command": "cupp",
9
+ "install_hint": "Install CUPP from your distribution packages or the CUPP repository.",
10
+ "name": "CUPP"
11
+ }
12
+ ],
13
+ "id": "password/cupp",
14
+ "kind": "wrapper",
15
+ "maintenance": "active",
16
+ "name": "CUPP",
17
+ "options": [
18
+ {
19
+ "default": "",
20
+ "description": "First name for the profile.",
21
+ "name": "name",
22
+ "type": "string"
23
+ },
24
+ {
25
+ "default": "",
26
+ "description": "Surname for the profile.",
27
+ "name": "surname",
28
+ "type": "string"
29
+ },
30
+ {
31
+ "default": "",
32
+ "description": "Birthdate for the profile (DDMMYYYY).",
33
+ "name": "birthdate",
34
+ "type": "string"
35
+ }
36
+ ],
37
+ "risk": "low",
38
+ "schema_version": 1,
39
+ "version": "0.1.0"
40
+ }
@@ -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("frida-ps", ["-U"], { 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: `frida-ps 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 processes = [];
22
+ for (const line of plain.split("\n")) {
23
+ const trimmed = line.trim();
24
+ if (!trimmed) continue;
25
+ const match = trimmed.match(/^(\d+)\s+(\S+)/);
26
+ if (!match) continue;
27
+ processes.push({ pid: Number(match[1]), name: match[2] });
28
+ }
29
+ if (code !== 0 && !processes.length && !plain.trim()) {
30
+ emit({ type: "error", message: `frida-ps failed: ${stderr.trim() || `exited with ${code}`}` });
31
+ process.exitCode = 1;
32
+ return;
33
+ }
34
+ emit({
35
+ type: "result",
36
+ summary: `frida-ps found ${processes.length} processes on the device.`,
37
+ data: { target, processes: processes.slice(0, 100) },
38
+ });
39
+ emit({ type: "done", summary: `frida-ps finished: ${processes.length} processes.` });
40
+ });
41
+ });
@@ -0,0 +1,21 @@
1
+ {
2
+ "category": "mobile",
3
+ "core_api": "^0.1.0",
4
+ "description": "Lists processes on a connected device with frida-ps and reports them.",
5
+ "entry": "index.mjs",
6
+ "external_tools": [
7
+ {
8
+ "command": "frida-ps",
9
+ "install_hint": "Install frida-tools from your distribution packages or with pipx install frida-tools.",
10
+ "name": "frida-ps"
11
+ }
12
+ ],
13
+ "id": "mobile/frida",
14
+ "kind": "wrapper",
15
+ "maintenance": "active",
16
+ "name": "frida-ps",
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 domain = String(request.options?.domain ?? "WORKGROUP");
11
+ const user = String(request.options?.user ?? "guest");
12
+ const child = spawn("GetNPUsers.py", [`${domain}/${user}`, "-no-pass", "-dc-ip", target], { stdio: ["ignore", "pipe", "pipe"] });
13
+ let stdout = "";
14
+ let stderr = "";
15
+ child.stdout.on("data", (chunk) => (stdout += chunk));
16
+ child.stderr.on("data", (chunk) => (stderr += chunk));
17
+ child.on("error", (error) => {
18
+ emit({ type: "error", message: `Impacket failed: ${error.message}` });
19
+ process.exitCode = 1;
20
+ });
21
+ child.on("close", (code) => {
22
+ const plain = stdout.replace(/\x1b\[[0-9;]*m/g, "");
23
+ const hashes = [];
24
+ for (const line of plain.split("\n")) {
25
+ const trimmed = line.trim();
26
+ if (!trimmed) continue;
27
+ if (trimmed.includes("$krb5asrep$")) hashes.push(trimmed);
28
+ }
29
+ if (code !== 0 && !hashes.length && !plain.trim()) {
30
+ emit({ type: "error", message: `Impacket failed: ${stderr.trim() || `exited with ${code}`}` });
31
+ process.exitCode = 1;
32
+ return;
33
+ }
34
+ emit({
35
+ type: "result",
36
+ summary: hashes.length ? `Impacket got ${hashes.length} AS-REP hashes from ${target}.` : `Impacket got no AS-REP hashes from ${target}.`,
37
+ data: { target, domain, user, hashes: hashes.slice(0, 100) },
38
+ });
39
+ emit({ type: "done", summary: hashes.length ? `Impacket finished: ${hashes.length} hashes.` : "Impacket finished: no hashes." });
40
+ });
41
+ });
@@ -0,0 +1,34 @@
1
+ {
2
+ "category": "internal",
3
+ "core_api": "^0.1.0",
4
+ "description": "Requests Kerberos AS-REP hashes with Impacket GetNPUsers and reports the accounts that answered.",
5
+ "entry": "index.mjs",
6
+ "external_tools": [
7
+ {
8
+ "command": "GetNPUsers.py",
9
+ "install_hint": "Install Impacket from your distribution packages or with pipx install impacket.",
10
+ "name": "Impacket GetNPUsers"
11
+ }
12
+ ],
13
+ "id": "internal/impacket",
14
+ "kind": "wrapper",
15
+ "maintenance": "active",
16
+ "name": "Impacket GetNPUsers",
17
+ "options": [
18
+ {
19
+ "default": "WORKGROUP",
20
+ "description": "Domain to query.",
21
+ "name": "domain",
22
+ "type": "string"
23
+ },
24
+ {
25
+ "default": "guest",
26
+ "description": "Username to request an AS-REP hash for.",
27
+ "name": "user",
28
+ "type": "string"
29
+ }
30
+ ],
31
+ "risk": "medium",
32
+ "schema_version": 1,
33
+ "version": "0.1.0"
34
+ }
@@ -0,0 +1,45 @@
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-kismet-"));
14
+ const report = join(dir, "devices.json");
15
+ const child = spawn("kismetdb", ["--in", target, "--out", report, "--devices"], { 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: `kismetdb failed: ${error.message}` });
22
+ process.exitCode = 1;
23
+ });
24
+ child.on("close", async (code) => {
25
+ let devices = [];
26
+ try {
27
+ const parsed = JSON.parse(await readFile(report, "utf8"));
28
+ if (Array.isArray(parsed)) devices = parsed;
29
+ else if (Array.isArray(parsed.devices)) devices = parsed.devices;
30
+ } catch {
31
+ devices = [];
32
+ }
33
+ if (code !== 0 && !devices.length) {
34
+ emit({ type: "error", message: `kismetdb failed: ${stderr.trim() || `exited with ${code}`}` });
35
+ process.exitCode = 1;
36
+ return;
37
+ }
38
+ emit({
39
+ type: "result",
40
+ summary: `Kismet found ${devices.length} devices in ${target}.`,
41
+ data: { target, devices: devices.slice(0, 100) },
42
+ });
43
+ emit({ type: "done", summary: `Kismet finished: ${devices.length} devices.` });
44
+ });
45
+ });
@@ -0,0 +1,21 @@
1
+ {
2
+ "category": "wireless",
3
+ "core_api": "^0.1.0",
4
+ "description": "Extracts devices from a Kismet capture database with kismetdb and reports them.",
5
+ "entry": "index.mjs",
6
+ "external_tools": [
7
+ {
8
+ "command": "kismetdb",
9
+ "install_hint": "Install kismetdb from your distribution packages (kismet).",
10
+ "name": "kismetdb"
11
+ }
12
+ ],
13
+ "id": "wireless/kismet",
14
+ "kind": "wrapper",
15
+ "maintenance": "active",
16
+ "name": "Kismet",
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("kr", ["scan", 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: `Kiterunner 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 routes = [];
22
+ for (const line of plain.split("\n")) {
23
+ const trimmed = line.trim();
24
+ if (!trimmed) continue;
25
+ const match = trimmed.match(/^(GET|POST|PUT|DELETE|PATCH|HEAD|OPTIONS)\s+(\S+)/);
26
+ if (!match) continue;
27
+ routes.push({ method: match[1], path: match[2] });
28
+ }
29
+ if (code !== 0 && !routes.length && !plain.trim()) {
30
+ emit({ type: "error", message: `Kiterunner failed: ${stderr.trim() || `exited with ${code}`}` });
31
+ process.exitCode = 1;
32
+ return;
33
+ }
34
+ emit({
35
+ type: "result",
36
+ summary: `Kiterunner found ${routes.length} API routes on ${target}.`,
37
+ data: { target, routes: routes.slice(0, 100) },
38
+ });
39
+ emit({ type: "done", summary: `Kiterunner finished: ${routes.length} routes.` });
40
+ });
41
+ });
@@ -0,0 +1,21 @@
1
+ {
2
+ "category": "api",
3
+ "core_api": "^0.1.0",
4
+ "description": "Discovers API routes on a target with Kiterunner and reports them.",
5
+ "entry": "index.mjs",
6
+ "external_tools": [
7
+ {
8
+ "command": "kr",
9
+ "install_hint": "Install Kiterunner from your distribution packages or the Kiterunner releases.",
10
+ "name": "Kiterunner"
11
+ }
12
+ ],
13
+ "id": "api/kiterunner",
14
+ "kind": "wrapper",
15
+ "maintenance": "active",
16
+ "name": "Kiterunner",
17
+ "options": [],
18
+ "risk": "low",
19
+ "schema_version": 1,
20
+ "version": "0.1.0"
21
+ }
@@ -0,0 +1,48 @@
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 domain = String(request.options?.domain ?? "WORKGROUP");
14
+ const user = String(request.options?.user ?? "");
15
+ const password = String(request.options?.password ?? "");
16
+ const dir = await mkdtemp(join(tmpdir(), "cantarella-ldapdump-"));
17
+ const child = spawn("ldapdomaindump", ["-u", `${domain}\\${user}`, "-p", password, target, "-o", dir], { stdio: ["ignore", "pipe", "pipe"] });
18
+ let stdout = "";
19
+ let stderr = "";
20
+ child.stdout.on("data", (chunk) => (stdout += chunk));
21
+ child.stderr.on("data", (chunk) => (stderr += chunk));
22
+ child.on("error", (error) => {
23
+ emit({ type: "error", message: `ldapdomaindump failed: ${error.message}` });
24
+ process.exitCode = 1;
25
+ });
26
+ child.on("close", async (code) => {
27
+ let users = [];
28
+ try {
29
+ const parsed = JSON.parse(await readFile(join(dir, "domain_users.json"), "utf8"));
30
+ if (Array.isArray(parsed)) {
31
+ users = parsed.map((entry) => entry.username ?? entry.name ?? "").filter(Boolean);
32
+ }
33
+ } catch {
34
+ users = [];
35
+ }
36
+ if (code !== 0 && !users.length) {
37
+ emit({ type: "error", message: `ldapdomaindump failed: ${stderr.trim() || `exited with ${code}`}` });
38
+ process.exitCode = 1;
39
+ return;
40
+ }
41
+ emit({
42
+ type: "result",
43
+ summary: `ldapdomaindump found ${users.length} users on ${target}.`,
44
+ data: { target, domain, user, users: users.slice(0, 100) },
45
+ });
46
+ emit({ type: "done", summary: `ldapdomaindump finished: ${users.length} users.` });
47
+ });
48
+ });
@@ -0,0 +1,40 @@
1
+ {
2
+ "category": "internal",
3
+ "core_api": "^0.1.0",
4
+ "description": "Dumps domain users with ldapdomaindump and reports the accounts it found.",
5
+ "entry": "index.mjs",
6
+ "external_tools": [
7
+ {
8
+ "command": "ldapdomaindump",
9
+ "install_hint": "Install ldapdomaindump from your distribution packages or with pipx install ldapdomaindump.",
10
+ "name": "ldapdomaindump"
11
+ }
12
+ ],
13
+ "id": "internal/ldapdomaindump",
14
+ "kind": "wrapper",
15
+ "maintenance": "active",
16
+ "name": "ldapdomaindump",
17
+ "options": [
18
+ {
19
+ "default": "WORKGROUP",
20
+ "description": "Domain to dump.",
21
+ "name": "domain",
22
+ "type": "string"
23
+ },
24
+ {
25
+ "default": "",
26
+ "description": "Username for the LDAP bind.",
27
+ "name": "user",
28
+ "type": "string"
29
+ },
30
+ {
31
+ "default": "",
32
+ "description": "Password for the LDAP bind.",
33
+ "name": "password",
34
+ "type": "string"
35
+ }
36
+ ],
37
+ "risk": "low",
38
+ "schema_version": 1,
39
+ "version": "0.1.0"
40
+ }
@@ -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
@@ -19,7 +19,7 @@
19
19
  "release:notes": "node scripts/release-notes.mjs"
20
20
  },
21
21
  "type": "module",
22
- "version": "1.17.0",
22
+ "version": "1.18.0",
23
23
  "workspaces": [
24
24
  "packages/*"
25
25
  ],
@@ -11,7 +11,7 @@ process.stdout.on("error", (error) => {
11
11
  process.exit(0);
12
12
  throw error;
13
13
  });
14
- const VERSION = "1.17.0";
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.17.0",
82
- update_message: (await checkForUpdate("1.17.0")).message,
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()],