wormclaude 1.0.162 → 1.0.163
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/dist/theme.js +1 -1
- package/dist/tools.js +3 -1
- package/package.json +1 -1
package/dist/theme.js
CHANGED
package/dist/tools.js
CHANGED
|
@@ -726,11 +726,13 @@ async function execOne(call, hooks) {
|
|
|
726
726
|
// 3.4) Güvenlik taraması — kullanıcı "tara/scan/xss/sqli/recon" deyince model bu aracı çağırır;
|
|
727
727
|
// elle PowerShell payload yazmak YERİNE sunucu motorunu (runPentest) çalıştırır.
|
|
728
728
|
if (call.name === 'SecurityScan') {
|
|
729
|
-
|
|
729
|
+
let tool = String(args?.tool || '').toLowerCase().trim();
|
|
730
730
|
const target = String(args?.target || '').trim();
|
|
731
731
|
if (!['recon', 'scan', 'xss', 'sqli'].includes(tool) || !target) {
|
|
732
732
|
return { ok: false, output: 'SecurityScan: tool (recon|scan|xss|sqli) ve target gerekli.', args };
|
|
733
733
|
}
|
|
734
|
+
if (tool === 'scan')
|
|
735
|
+
tool = 'recon'; // "scan" genel tarama → motorun bildiği "recon" (slash ile aynı)
|
|
734
736
|
try {
|
|
735
737
|
const { runPentest } = await import('./pentest.js');
|
|
736
738
|
const out = await runPentest(cfg(), tool, target, true, () => { });
|