Lines 1581-1621javascript
1581const MACHINE_ZERO = { name: '依然', claw: 'claw', desc: '依然 的机器' };
1583const MACHINE_CONFIG = [
1584 { name: 'kendy', claw: 'claw1', desc: 'kendy 的机器' },
1585 { name: 'Ethan', claw: 'claw2', desc: 'Ethan 的机器' },
1586 { name: 'HENRY', claw: 'claw3', desc: 'HENRY 的机器' },
1587 { name: 'Mo靖宇', claw: 'claw4', desc: 'Mo靖宇 的机器' },
1588 { name: '高兴', claw: 'claw5', desc: '高兴 的机器' },
1589 { name: '伊伊', claw: 'claw6', desc: '伊伊 的机器' },
1590 { name: '梓浩', claw: 'claw7', desc: '梓浩 的机器' },
1591 { name: '刘泓毅', claw: 'claw8', desc: '刘泓毅 的机器' },
1592 { name: 'Mia', claw: 'claw9', desc: 'Mia 的机器' },
1593 { name: '雨熙', claw: 'claw10', desc: '雨熙 的机器' },
1594 { name: '绍博', claw: 'claw11', desc: '绍博 的机器' },
1595 { name: '黄玺澄', claw: 'claw12', desc: '玺澄 的机器' },
1598function openMachine(selected) {
1600 console.log(colors.green + ' → 已选择: ' + selected.name + ' (' + selected.claw + ')' + colors.nc);
1601 console.log(' ' + colors.dim + '→ 正在打开浏览器...' + colors.nc);
1602 const { exec } = require('child_process');
1603 const fs = require('fs');
1604 const machineUrl = 'https://' + selected.claw + '.kekouen.cn?token=aiyiran';
1605 const platform = os.platform();
1606 if (platform === 'darwin') {
1607 exec('open -a "Google Chrome" "' + machineUrl + '"');
1608 } else if (platform === 'win32') {
1609 const chromeCandidates = [
1610 path.join(process.env.PROGRAMFILES || 'C:\\Program Files', 'Google', 'Chrome', 'Application', 'chrome.exe'),
1611 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 · L1601 1612 path.join(process.env.LOCALAPPDATA || path.join(os.homedir(), 'AppData', 'Local'), 'Google', 'Chrome', 'Application', 'chrome.exe'),
1614 const chromePath = chromeCandidates.find(function (p) { try { return fs.existsSync(p); } catch { return false; } });
1616 exec('"' + chromePath + '" "' + machineUrl + '"');
1618 exec('start "" "' + machineUrl + '"', { shell: true });
1621 exec('xdg-open "' + machineUrl + '"');