nsauditor-ai 0.1.5 → 0.1.7
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/cli.mjs +5 -1
- package/package.json +1 -1
- package/plugins/040_tls_cert_auditor.mjs +695 -0
- package/plugins/050_tribe_health.mjs +647 -0
- package/plugins/060_dns_sec_auditor.mjs +998 -0
package/cli.mjs
CHANGED
|
@@ -3,6 +3,10 @@ import 'dotenv/config';
|
|
|
3
3
|
import PluginManager from './plugin_manager.mjs';
|
|
4
4
|
import { buildHtmlReport } from './utils/report_html.mjs';
|
|
5
5
|
import fsp from 'node:fs/promises';
|
|
6
|
+
import { dirname } from 'node:path';
|
|
7
|
+
import { fileURLToPath } from 'node:url';
|
|
8
|
+
|
|
9
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
6
10
|
import path from 'node:path';
|
|
7
11
|
import { openaiSimplePrompt, openaiPrompt as openaiProPrompt, openaiPromptOptimized } from './utils/prompts.mjs';
|
|
8
12
|
import { parseHostArg, parseHostFile } from './utils/host_iterator.mjs';
|
|
@@ -790,7 +794,7 @@ async function main() {
|
|
|
790
794
|
|
|
791
795
|
const opts = { insecureHttps };
|
|
792
796
|
if (ports) opts.ports = ports;
|
|
793
|
-
const pm = await PluginManager.create(
|
|
797
|
+
const pm = await PluginManager.create(`${__dirname}/plugins`);
|
|
794
798
|
const promptMode = String(process.env.OPENAI_PROMPT_MODE || 'basic').toLowerCase().trim();
|
|
795
799
|
|
|
796
800
|
// --- CTEM: continuous watch mode ---
|