Lines 1583-1623javascript
1583const MACHINE_ZERO = { name: '依然', claw: 'claw', desc: '依然 的机器' };
1585const MACHINE_CONFIG = [
1586 { name: 'kendy', claw: 'claw1', desc: 'kendy 的机器' },
1587 { name: 'Ethan', claw: 'claw2', desc: 'Ethan 的机器' },
1588 { name: 'HENRY', claw: 'claw3', desc: 'HENRY 的机器' },
1589 { name: 'Mo靖宇', claw: 'claw4', desc: 'Mo靖宇 的机器' },
1590 { name: '高兴', claw: 'claw5', desc: '高兴 的机器' },
1591 { name: '伊伊', claw: 'claw6', desc: '伊伊 的机器' },
1592 { name: '梓浩', claw: 'claw7', desc: '梓浩 的机器' },
1593 { name: '刘泓毅', claw: 'claw8', desc: '刘泓毅 的机器' },
1594 { name: 'Mia', claw: 'claw9', desc: 'Mia 的机器' },
1595 { name: '雨熙', claw: 'claw10', desc: '雨熙 的机器' },
1596 { name: '绍博', claw: 'claw11', desc: '绍博 的机器' },
1597 { name: '黄玺澄', claw: 'claw12', desc: '玺澄 的机器' },
1600function openMachine(selected) {
1602 console.log(colors.green + ' → 已选择: ' + selected.name + ' (' + selected.claw + ')' + colors.nc);
1603 console.log(' ' + colors.dim + '→ 正在打开浏览器...' + colors.nc);
1604 const { exec } = require('child_process');
1605 const fs = require('fs');
1606 const machineUrl = 'https://' + selected.claw + '.kekouen.cn?token=aiyiran';
1607 const platform = os.platform();
1608 if (platform === 'darwin') {
1609 exec('open -a "Google Chrome" "' + machineUrl + '"');
1610 } else if (platform === 'win32') {
1611 const chromeCandidates = [
1612 path.join(process.env.PROGRAMFILES || 'C:\\Program Files', 'Google', 'Chrome', 'Application', 'chrome.exe'),
1613 path.join(process.env['PROGRAMFILES(X86)'] || 'C:\\Program Files (x86)', 'Google', 'Chrome', 'Application', 'chrome.exe'),
CriticalSame File Env Network Execution
A single source file combines environment access, network access, and code or shell execution with blocking evidence.
index.jsView on unpkg · L1603 1614 path.join(process.env.LOCALAPPDATA || path.join(os.homedir(), 'AppData', 'Local'), 'Google', 'Chrome', 'Application', 'chrome.exe'),
1616 const chromePath = chromeCandidates.find(function (p) { try { return fs.existsSync(p); } catch { return false; } });
1618 exec('"' + chromePath + '" "' + machineUrl + '"');
1620 exec('start "" "' + machineUrl + '"', { shell: true });
1623 exec('xdg-open "' + machineUrl + '"');