cantarella-framework 1.16.0 → 1.17.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 +4 -0
- package/modules/wrapper-arjun/index.mjs +46 -0
- package/modules/wrapper-arjun/module.json +21 -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-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-katana/index.mjs +40 -0
- package/modules/wrapper-katana/module.json +21 -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/package.json +1 -1
- package/packages/cli/dist/cli.js +1 -1
- package/packages/gui/dist/server.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.17.0
|
|
4
|
+
|
|
5
|
+
- 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.
|
|
6
|
+
|
|
3
7
|
## 1.16.0
|
|
4
8
|
|
|
5
9
|
- New modules: ansible-lint playbook linting, Vagrant machine status, searchsploit Exploit-DB search, linpeas privilege escalation enumeration, smbclient share listing, enum4linux user and group enumeration, HTML report export, SARIF export, hcxdumptool handshake capture, and wifite wireless attacks.
|
|
@@ -0,0 +1,46 @@
|
|
|
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("arjun", ["-u", 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: `Arjun 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 parameters = new Set();
|
|
22
|
+
for (const line of plain.split("\n")) {
|
|
23
|
+
const trimmed = line.trim();
|
|
24
|
+
if (!trimmed) continue;
|
|
25
|
+
const match = trimmed.match(/Parameters found:\s*(.+)/i) || trimmed.match(/Found parameter:\s*(\S+)/i);
|
|
26
|
+
if (match) {
|
|
27
|
+
for (const name of match[1].split(",")) {
|
|
28
|
+
const cleaned = name.trim();
|
|
29
|
+
if (cleaned) parameters.add(cleaned);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
if (code !== 0 && !parameters.size && !plain.trim()) {
|
|
34
|
+
emit({ type: "error", message: `Arjun failed: ${stderr.trim() || `exited with ${code}`}` });
|
|
35
|
+
process.exitCode = 1;
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
const list = [...parameters].sort();
|
|
39
|
+
emit({
|
|
40
|
+
type: "result",
|
|
41
|
+
summary: list.length ? `Arjun found ${list.length} parameters on ${target}.` : `Arjun found no parameters on ${target}.`,
|
|
42
|
+
data: { target, parameters: list },
|
|
43
|
+
});
|
|
44
|
+
emit({ type: "done", summary: list.length ? `Arjun finished: ${list.length} parameters.` : "Arjun finished: no parameters." });
|
|
45
|
+
});
|
|
46
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"category": "web",
|
|
3
|
+
"core_api": "^0.1.0",
|
|
4
|
+
"description": "Finds hidden HTTP parameters on a URL with Arjun and reports them.",
|
|
5
|
+
"entry": "index.mjs",
|
|
6
|
+
"external_tools": [
|
|
7
|
+
{
|
|
8
|
+
"command": "arjun",
|
|
9
|
+
"install_hint": "Install Arjun from your distribution packages or with pipx install arjun.",
|
|
10
|
+
"name": "Arjun"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"id": "web/arjun",
|
|
14
|
+
"kind": "wrapper",
|
|
15
|
+
"maintenance": "active",
|
|
16
|
+
"name": "Arjun",
|
|
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("dnsx", ["-d", target, "-a", "-resp", "-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: `dnsx 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 records = [];
|
|
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.host) records.push(parsed);
|
|
28
|
+
} catch {
|
|
29
|
+
// not a JSON line, skip
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
if (code !== 0 && !records.length) {
|
|
33
|
+
emit({ type: "error", message: `dnsx failed: ${stderr.trim() || `exited with ${code}`}` });
|
|
34
|
+
process.exitCode = 1;
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
emit({
|
|
38
|
+
type: "result",
|
|
39
|
+
summary: `dnsx resolved ${records.length} records for ${target}.`,
|
|
40
|
+
data: { target, records: records.slice(0, 100) },
|
|
41
|
+
});
|
|
42
|
+
emit({ type: "done", summary: `dnsx finished: ${records.length} records.` });
|
|
43
|
+
});
|
|
44
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"category": "recon",
|
|
3
|
+
"core_api": "^0.1.0",
|
|
4
|
+
"description": "Resolves DNS records for a domain with dnsx and reports the answers.",
|
|
5
|
+
"entry": "index.mjs",
|
|
6
|
+
"external_tools": [
|
|
7
|
+
{
|
|
8
|
+
"command": "dnsx",
|
|
9
|
+
"install_hint": "Install dnsx from your distribution packages or with go install github.com/projectdiscovery/dnsx/cmd/dnsx@latest.",
|
|
10
|
+
"name": "dnsx"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"id": "recon/dnsx",
|
|
14
|
+
"kind": "wrapper",
|
|
15
|
+
"maintenance": "active",
|
|
16
|
+
"name": "dnsx",
|
|
17
|
+
"options": [],
|
|
18
|
+
"risk": "low",
|
|
19
|
+
"schema_version": 1,
|
|
20
|
+
"version": "0.1.0"
|
|
21
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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("fping", ["-a", "-g", 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: `fping 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
|
+
if (/^\d{1,3}(\.\d{1,3}){3}$/.test(trimmed)) hosts.push(trimmed);
|
|
26
|
+
}
|
|
27
|
+
if (code !== 0 && !hosts.length && !plain.trim()) {
|
|
28
|
+
emit({ type: "error", message: `fping failed: ${stderr.trim() || `exited with ${code}`}` });
|
|
29
|
+
process.exitCode = 1;
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
emit({
|
|
33
|
+
type: "result",
|
|
34
|
+
summary: `fping found ${hosts.length} live hosts in ${target}.`,
|
|
35
|
+
data: { target, hosts },
|
|
36
|
+
});
|
|
37
|
+
emit({ type: "done", summary: `fping finished: ${hosts.length} live hosts.` });
|
|
38
|
+
});
|
|
39
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"category": "network",
|
|
3
|
+
"core_api": "^0.1.0",
|
|
4
|
+
"description": "Pings a network range with fping and reports the live hosts.",
|
|
5
|
+
"entry": "index.mjs",
|
|
6
|
+
"external_tools": [
|
|
7
|
+
{
|
|
8
|
+
"command": "fping",
|
|
9
|
+
"install_hint": "Install fping from your distribution packages.",
|
|
10
|
+
"name": "fping"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"id": "network/fping",
|
|
14
|
+
"kind": "wrapper",
|
|
15
|
+
"maintenance": "active",
|
|
16
|
+
"name": "fping",
|
|
17
|
+
"options": [],
|
|
18
|
+
"risk": "low",
|
|
19
|
+
"schema_version": 1,
|
|
20
|
+
"version": "0.1.0"
|
|
21
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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("gowitness", ["single", "--url", 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: `gowitness 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 screenshots = [];
|
|
22
|
+
for (const line of plain.split("\n")) {
|
|
23
|
+
const trimmed = line.trim();
|
|
24
|
+
if (!trimmed) continue;
|
|
25
|
+
const match = trimmed.match(/(?:Screenshot written to|wrote screenshot to|saved to)\s+(\S+\.(?:png|jpg|jpeg))/i);
|
|
26
|
+
if (match) screenshots.push(match[1]);
|
|
27
|
+
}
|
|
28
|
+
if (code !== 0 && !screenshots.length && !plain.trim()) {
|
|
29
|
+
emit({ type: "error", message: `gowitness failed: ${stderr.trim() || `exited with ${code}`}` });
|
|
30
|
+
process.exitCode = 1;
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
emit({
|
|
34
|
+
type: "result",
|
|
35
|
+
summary: screenshots.length ? `gowitness saved ${screenshots.length} screenshots for ${target}.` : `gowitness saved no screenshots for ${target}.`,
|
|
36
|
+
data: { target, screenshots },
|
|
37
|
+
});
|
|
38
|
+
emit({ type: "done", summary: screenshots.length ? `gowitness finished: ${screenshots.length} screenshots.` : "gowitness finished: no screenshots." });
|
|
39
|
+
});
|
|
40
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"category": "recon",
|
|
3
|
+
"core_api": "^0.1.0",
|
|
4
|
+
"description": "Takes website screenshots with gowitness and reports the files it wrote.",
|
|
5
|
+
"entry": "index.mjs",
|
|
6
|
+
"external_tools": [
|
|
7
|
+
{
|
|
8
|
+
"command": "gowitness",
|
|
9
|
+
"install_hint": "Install gowitness from your distribution packages or the gowitness releases.",
|
|
10
|
+
"name": "gowitness"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"id": "recon/gowitness",
|
|
14
|
+
"kind": "wrapper",
|
|
15
|
+
"maintenance": "active",
|
|
16
|
+
"name": "gowitness",
|
|
17
|
+
"options": [],
|
|
18
|
+
"risk": "low",
|
|
19
|
+
"schema_version": 1,
|
|
20
|
+
"version": "0.1.0"
|
|
21
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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("holehe", [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: `Holehe 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 accounts = [];
|
|
22
|
+
for (const line of plain.split("\n")) {
|
|
23
|
+
const trimmed = line.trim();
|
|
24
|
+
if (!trimmed) continue;
|
|
25
|
+
const match = trimmed.match(/\[\+\]\s*Used in\s+(.+)/i);
|
|
26
|
+
if (match) accounts.push(match[1].trim());
|
|
27
|
+
}
|
|
28
|
+
if (code !== 0 && !accounts.length && !plain.trim()) {
|
|
29
|
+
emit({ type: "error", message: `Holehe failed: ${stderr.trim() || `exited with ${code}`}` });
|
|
30
|
+
process.exitCode = 1;
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
emit({
|
|
34
|
+
type: "result",
|
|
35
|
+
summary: `Holehe found ${target} used in ${accounts.length} sites.`,
|
|
36
|
+
data: { target, accounts: accounts.slice(0, 100) },
|
|
37
|
+
});
|
|
38
|
+
emit({ type: "done", summary: `Holehe finished: ${accounts.length} accounts.` });
|
|
39
|
+
});
|
|
40
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"category": "osint",
|
|
3
|
+
"core_api": "^0.1.0",
|
|
4
|
+
"description": "Checks an email address against sites with Holehe and reports where it is used.",
|
|
5
|
+
"entry": "index.mjs",
|
|
6
|
+
"external_tools": [
|
|
7
|
+
{
|
|
8
|
+
"command": "holehe",
|
|
9
|
+
"install_hint": "Install Holehe from your distribution packages or with pipx install holehe.",
|
|
10
|
+
"name": "Holehe"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"id": "osint/holehe",
|
|
14
|
+
"kind": "wrapper",
|
|
15
|
+
"maintenance": "active",
|
|
16
|
+
"name": "Holehe",
|
|
17
|
+
"options": [],
|
|
18
|
+
"risk": "low",
|
|
19
|
+
"schema_version": 1,
|
|
20
|
+
"version": "0.1.0"
|
|
21
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
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 port = String(request.options?.port ?? "80");
|
|
11
|
+
const child = spawn("hping3", ["-S", target, "-p", port, "-c", "1"], { stdio: ["ignore", "pipe", "pipe"] });
|
|
12
|
+
let stdout = "";
|
|
13
|
+
let stderr = "";
|
|
14
|
+
child.stdout.on("data", (chunk) => (stdout += chunk));
|
|
15
|
+
child.stderr.on("data", (chunk) => (stderr += chunk));
|
|
16
|
+
child.on("error", (error) => {
|
|
17
|
+
emit({ type: "error", message: `hping3 failed: ${error.message}` });
|
|
18
|
+
process.exitCode = 1;
|
|
19
|
+
});
|
|
20
|
+
child.on("close", (code) => {
|
|
21
|
+
const plain = stdout.replace(/\x1b\[[0-9;]*m/g, "");
|
|
22
|
+
const match = plain.match(/flags=(\w+)/);
|
|
23
|
+
const flags = match ? match[1] : "";
|
|
24
|
+
const open = flags.includes("SA");
|
|
25
|
+
if (code !== 0 && !flags && !plain.trim()) {
|
|
26
|
+
emit({ type: "error", message: `hping3 failed: ${stderr.trim() || `exited with ${code}`}` });
|
|
27
|
+
process.exitCode = 1;
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
emit({
|
|
31
|
+
type: "result",
|
|
32
|
+
summary: open ? `hping3: ${target}:${port} is open (flags ${flags}).` : `hping3: ${target}:${port} gave flags ${flags || "none"}.`,
|
|
33
|
+
data: { target, port, flags, open },
|
|
34
|
+
});
|
|
35
|
+
emit({ type: "done", summary: open ? `hping3 finished: ${target}:${port} is open.` : `hping3 finished: ${target}:${port} not open.` });
|
|
36
|
+
});
|
|
37
|
+
});
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"category": "network",
|
|
3
|
+
"core_api": "^0.1.0",
|
|
4
|
+
"description": "Probes a host and port with hping3 and reports the TCP flags it got back.",
|
|
5
|
+
"entry": "index.mjs",
|
|
6
|
+
"external_tools": [
|
|
7
|
+
{
|
|
8
|
+
"command": "hping3",
|
|
9
|
+
"install_hint": "Install hping3 from your distribution packages.",
|
|
10
|
+
"name": "hping3"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"id": "network/hping3",
|
|
14
|
+
"kind": "wrapper",
|
|
15
|
+
"maintenance": "active",
|
|
16
|
+
"name": "hping3",
|
|
17
|
+
"options": [
|
|
18
|
+
{
|
|
19
|
+
"default": "80",
|
|
20
|
+
"description": "TCP port to probe.",
|
|
21
|
+
"name": "port",
|
|
22
|
+
"type": "string"
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"risk": "low",
|
|
26
|
+
"schema_version": 1,
|
|
27
|
+
"version": "0.1.0"
|
|
28
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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("katana", ["-u", 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: `Katana 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 endpoints = [];
|
|
22
|
+
for (const line of plain.split("\n")) {
|
|
23
|
+
const trimmed = line.trim();
|
|
24
|
+
if (!trimmed) continue;
|
|
25
|
+
if (!/^https?:\/\//.test(trimmed)) continue;
|
|
26
|
+
endpoints.push(trimmed);
|
|
27
|
+
}
|
|
28
|
+
if (code !== 0 && !endpoints.length && !plain.trim()) {
|
|
29
|
+
emit({ type: "error", message: `Katana failed: ${stderr.trim() || `exited with ${code}`}` });
|
|
30
|
+
process.exitCode = 1;
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
emit({
|
|
34
|
+
type: "result",
|
|
35
|
+
summary: `Katana found ${endpoints.length} endpoints on ${target}.`,
|
|
36
|
+
data: { target, endpoints: endpoints.slice(0, 100) },
|
|
37
|
+
});
|
|
38
|
+
emit({ type: "done", summary: `Katana finished: ${endpoints.length} endpoints.` });
|
|
39
|
+
});
|
|
40
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"category": "recon",
|
|
3
|
+
"core_api": "^0.1.0",
|
|
4
|
+
"description": "Crawls a site with Katana and reports the endpoints it found.",
|
|
5
|
+
"entry": "index.mjs",
|
|
6
|
+
"external_tools": [
|
|
7
|
+
{
|
|
8
|
+
"command": "katana",
|
|
9
|
+
"install_hint": "Install Katana from your distribution packages or with go install github.com/projectdiscovery/katana/cmd/katana@latest.",
|
|
10
|
+
"name": "Katana"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"id": "recon/katana",
|
|
14
|
+
"kind": "wrapper",
|
|
15
|
+
"maintenance": "active",
|
|
16
|
+
"name": "Katana",
|
|
17
|
+
"options": [],
|
|
18
|
+
"risk": "low",
|
|
19
|
+
"schema_version": 1,
|
|
20
|
+
"version": "0.1.0"
|
|
21
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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("maigret", [target, "--json", "simple"], { 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: `Maigret 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 accounts = [];
|
|
22
|
+
try {
|
|
23
|
+
const parsed = JSON.parse(plain);
|
|
24
|
+
for (const [site, entry] of Object.entries(parsed)) {
|
|
25
|
+
if (entry && typeof entry === "object" && entry.status === "found") {
|
|
26
|
+
accounts.push({ site, url: entry.url ?? "" });
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
} catch {
|
|
30
|
+
for (const line of plain.split("\n")) {
|
|
31
|
+
const trimmed = line.trim();
|
|
32
|
+
if (!trimmed) continue;
|
|
33
|
+
const match = trimmed.match(/\[\+\]\s*(\S+):\s*(\S+)/);
|
|
34
|
+
if (match) accounts.push({ site: match[1], url: match[2] });
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
if (code !== 0 && !accounts.length) {
|
|
38
|
+
emit({ type: "error", message: `Maigret failed: ${stderr.trim() || `exited with ${code}`}` });
|
|
39
|
+
process.exitCode = 1;
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
emit({
|
|
43
|
+
type: "result",
|
|
44
|
+
summary: `Maigret found ${target} on ${accounts.length} sites.`,
|
|
45
|
+
data: { target, accounts: accounts.slice(0, 100) },
|
|
46
|
+
});
|
|
47
|
+
emit({ type: "done", summary: `Maigret finished: ${accounts.length} accounts.` });
|
|
48
|
+
});
|
|
49
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"category": "osint",
|
|
3
|
+
"core_api": "^0.1.0",
|
|
4
|
+
"description": "Checks a username across sites with Maigret and reports where it is registered.",
|
|
5
|
+
"entry": "index.mjs",
|
|
6
|
+
"external_tools": [
|
|
7
|
+
{
|
|
8
|
+
"command": "maigret",
|
|
9
|
+
"install_hint": "Install Maigret from your distribution packages or with pipx install maigret.",
|
|
10
|
+
"name": "Maigret"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"id": "osint/maigret",
|
|
14
|
+
"kind": "wrapper",
|
|
15
|
+
"maintenance": "active",
|
|
16
|
+
"name": "Maigret",
|
|
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("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
|
+
}
|
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.17.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.17.0",
|
|
82
|
+
update_message: (await checkForUpdate("1.17.0")).message,
|
|
83
83
|
categories: CATEGORIES,
|
|
84
84
|
modules: modules.map(({ manifest }) => manifest),
|
|
85
85
|
external_tools: [...tools.values()],
|