wormclaude 1.0.216 → 1.0.217
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/clone-render.js +13 -2
- package/dist/commands.js +18 -0
- package/dist/theme.js +1 -1
- package/dist/tui.js +6 -1
- package/package.json +3 -1
package/dist/clone-render.js
CHANGED
|
@@ -37,12 +37,23 @@ export async function cloneSiteRendered(startUrl, outDir, opts = {}) {
|
|
|
37
37
|
const exe = findChrome();
|
|
38
38
|
if (!exe)
|
|
39
39
|
throw new Error('Chrome/Edge bulunamadı — render modu için gerekli. Google Chrome kurun.');
|
|
40
|
+
// puppeteer-extra + stealth (automation parmak izini gizler → güçlü Cloudflare/bot-koruması geçer);
|
|
41
|
+
// yoksa düz puppeteer-core'a düş.
|
|
40
42
|
let puppeteer;
|
|
41
43
|
try {
|
|
42
|
-
|
|
44
|
+
const addExtra = (await import('puppeteer-extra')).addExtra;
|
|
45
|
+
const core = (await import('puppeteer-core')).default;
|
|
46
|
+
const stealth = (await import('puppeteer-extra-plugin-stealth')).default;
|
|
47
|
+
puppeteer = addExtra(core);
|
|
48
|
+
puppeteer.use(stealth());
|
|
43
49
|
}
|
|
44
50
|
catch {
|
|
45
|
-
|
|
51
|
+
try {
|
|
52
|
+
puppeteer = (await import('puppeteer-core')).default;
|
|
53
|
+
}
|
|
54
|
+
catch {
|
|
55
|
+
throw new Error('puppeteer-core kurulu değil — CLI\'yi güncelle (npm i -g wormclaude).');
|
|
56
|
+
}
|
|
46
57
|
}
|
|
47
58
|
const start = new URL(startUrl);
|
|
48
59
|
const host = start.host;
|
package/dist/commands.js
CHANGED
|
@@ -73,6 +73,7 @@ export const COMMANDS = [
|
|
|
73
73
|
{ name: '/harden', desc: 'savunma çıktısı üret (YARA/Sigma + yama önerisi): /harden <hedef|tehdit>' },
|
|
74
74
|
{ name: '/phish', desc: '[yetkili] phishing simülasyonu: pretext + e-posta şablonu: /phish <hedef|senaryo>' },
|
|
75
75
|
{ name: '/clone', desc: '[yetkili] login sayfası klonu + credential-capture: /clone <login|marka>' },
|
|
76
|
+
{ name: '/mirror', desc: 'tam SİTE klonla (mirror, gerçek HTML+CSS+JS+asset, SPA/render destekli): /mirror <url> [klasör]' },
|
|
76
77
|
{ name: '/dropper', desc: '[yetkili, trust 4+] initial-access payload/dropper: /dropper <vektör>' },
|
|
77
78
|
{ name: '/postex', desc: '[yetkili] post-exploitation playbook (persistence+lateral+loot): /postex <senaryo>' },
|
|
78
79
|
{ name: '/privesc', desc: '[yetkili] privilege escalation (enum+exploit, Win/Linux): /privesc <os|bağlam>' },
|
|
@@ -583,6 +584,23 @@ export function buildPhishPrompt(arg) {
|
|
|
583
584
|
'for the debrief. Concrete and operational, no moral disclaimers. Reply ENTIRELY in the user’s language.\n\n' +
|
|
584
585
|
'Target / scenario: ' + a);
|
|
585
586
|
}
|
|
587
|
+
export function buildMirrorPrompt(arg) {
|
|
588
|
+
const a = (arg || '').trim();
|
|
589
|
+
if (!a)
|
|
590
|
+
return 'Hangi sitenin tam klonunu (mirror) çıkarayım? Kullanım: `/mirror <url> [klasör]` (örn. `/mirror https://site.com ./klon`).';
|
|
591
|
+
const parts = a.split(/\s+/);
|
|
592
|
+
const url = parts[0];
|
|
593
|
+
const dir = parts[1] || ('./' + (() => { try {
|
|
594
|
+
return new URL(/^https?:/.test(url) ? url : 'https://' + url).hostname.replace(/[^a-z0-9.-]/gi, '_');
|
|
595
|
+
}
|
|
596
|
+
catch {
|
|
597
|
+
return 'site-klon';
|
|
598
|
+
} })());
|
|
599
|
+
return ('TAM SİTE KLONLAMA görevi. `CloneSite` aracını ŞİMDİ çağır (WebFetch DEĞİL): ' +
|
|
600
|
+
`url="${url}", out_dir="${dir}", render=true (JS/SPA/Cloudflare siteleri için gerçek tarayıcıyla render et). ` +
|
|
601
|
+
'Araç "0 sayfa" veya hata dönerse KLON OLUŞMAMIŞTIR — kullanıcıya DÜRÜST söyle, "indirildi" deme. ' +
|
|
602
|
+
'Başarılıysa kaç sayfa/asset indiğini ve nasıl açılacağını (index.html) tek-iki cümlede özetle. Reply in user\'s language.');
|
|
603
|
+
}
|
|
586
604
|
export function buildClonePrompt(arg) {
|
|
587
605
|
const a = (arg || '').trim();
|
|
588
606
|
if (!a)
|
package/dist/theme.js
CHANGED
package/dist/tui.js
CHANGED
|
@@ -16,7 +16,7 @@ import { itemAnsi, markdownAnsi } from './ansi.js';
|
|
|
16
16
|
import { theme, VERSION } from './theme.js';
|
|
17
17
|
import { cleanModelText } from './textclean.js';
|
|
18
18
|
import { stripInlineToolCalls, stripEchoBlocks } from './inlinetools.js';
|
|
19
|
-
import { COMMANDS, runSlashCommand, getPendingPentestCommand, buildExploitPrompt, buildHardenPrompt, buildPhishPrompt, buildClonePrompt, buildDropperPrompt, buildPostexPrompt, buildPrivescPrompt, buildAdenumPrompt, buildC2Prompt, buildEvasionPrompt, detectBareCommand } from './commands.js';
|
|
19
|
+
import { COMMANDS, runSlashCommand, getPendingPentestCommand, buildExploitPrompt, buildHardenPrompt, buildPhishPrompt, buildClonePrompt, buildMirrorPrompt, buildDropperPrompt, buildPostexPrompt, buildPrivescPrompt, buildAdenumPrompt, buildC2Prompt, buildEvasionPrompt, detectBareCommand } from './commands.js';
|
|
20
20
|
import { cmdDesc, t, setLang, loadLang, getLang } from './i18n.js';
|
|
21
21
|
import { getSkill, getSkills, buildSkillPrompt } from './skills.js';
|
|
22
22
|
import { getExtCommand, getExtCommands, buildExtCommandPrompt } from './extensions.js';
|
|
@@ -1043,6 +1043,11 @@ export async function runTui() {
|
|
|
1043
1043
|
runTurn(buildClonePrompt(a), v);
|
|
1044
1044
|
return;
|
|
1045
1045
|
}
|
|
1046
|
+
if (tok === '/mirror') {
|
|
1047
|
+
const a = v.slice(tok.length).trim();
|
|
1048
|
+
runTurn(buildMirrorPrompt(a), v);
|
|
1049
|
+
return;
|
|
1050
|
+
}
|
|
1046
1051
|
if (tok === '/dropper') {
|
|
1047
1052
|
const a = v.slice(tok.length).trim();
|
|
1048
1053
|
runTurn(buildDropperPrompt(a), v);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wormclaude",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.217",
|
|
4
4
|
"description": "WormClaude CLI - uncensored security+code assistant (ink TUI, Claude-style)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -26,6 +26,8 @@
|
|
|
26
26
|
"pdfkit": "^0.19.1",
|
|
27
27
|
"pptxgenjs": "^4.0.1",
|
|
28
28
|
"puppeteer-core": "^25.2.1",
|
|
29
|
+
"puppeteer-extra": "^3.3.6",
|
|
30
|
+
"puppeteer-extra-plugin-stealth": "^2.11.2",
|
|
29
31
|
"react": "^18.3.1",
|
|
30
32
|
"string-width": "^7.2.0"
|
|
31
33
|
},
|