icoa-cli 1.8.0 → 1.8.2
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/commands/env.js +50 -3
- package/dist/index.js +1 -1
- package/dist/repl.js +1 -1
- package/package.json +1 -1
package/dist/commands/env.js
CHANGED
|
@@ -37,8 +37,6 @@ const PYTHON_LIBS = [
|
|
|
37
37
|
{ name: 'sqlmap', check: 'which sqlmap', install: 'sqlmap', category: 'Security Tools' },
|
|
38
38
|
{ name: 'ipython', check: 'which ipython3 || which ipython', install: 'ipython', category: 'Security Tools' },
|
|
39
39
|
{ name: 'uncompyle6', check: 'python3 -c "import uncompyle6"', install: 'uncompyle6==3.9.1', category: 'Security Tools' },
|
|
40
|
-
{ name: 'rsactftool', check: 'which rsactftool || python3 -c "import rsactftool"', install: 'rsactftool', category: 'Security Tools' },
|
|
41
|
-
{ name: 'pngcheck', check: 'python3 -c "import pngcheck"', install: 'pngcheck', category: 'Security Tools' },
|
|
42
40
|
{ name: 'volatility3', check: 'python3 -c "import volatility3"', install: 'volatility3', category: 'Security Tools' },
|
|
43
41
|
{ name: 'pyserial', check: 'python3 -c "import serial"', install: 'pyserial==3.5', category: 'Security Tools' },
|
|
44
42
|
];
|
|
@@ -99,6 +97,7 @@ const SYSTEM_TOOLS = [
|
|
|
99
97
|
{ name: 'file', check: CMD('file'), category: 'Forensics' },
|
|
100
98
|
{ name: 'xxd', check: CMD('xxd'), brew: 'vim', apt: 'xxd', category: 'Forensics' },
|
|
101
99
|
{ name: 'pdftotext', check: CMD('pdftotext'), brew: 'poppler', apt: 'poppler-utils', category: 'Forensics' },
|
|
100
|
+
{ name: 'pngcheck', check: CMD('pngcheck'), brew: 'pngcheck', apt: 'pngcheck', category: 'Forensics' },
|
|
102
101
|
// Crypto & Password (4)
|
|
103
102
|
{ name: 'john', check: CMD('john'), brew: 'john', apt: 'john', choco: 'john', category: 'Crypto & Password' },
|
|
104
103
|
{ name: 'hashcat', check: CMD('hashcat'), brew: 'hashcat', apt: 'hashcat', choco: 'hashcat', category: 'Crypto & Password' },
|
|
@@ -334,6 +333,53 @@ async function installAll() {
|
|
|
334
333
|
}
|
|
335
334
|
console.log();
|
|
336
335
|
}
|
|
336
|
+
// Find the correct pip for Python 3.12
|
|
337
|
+
let pipCmd = 'pip3';
|
|
338
|
+
if (os === 'darwin') {
|
|
339
|
+
// Prefer brew Python 3.12 pip over conda/system pip
|
|
340
|
+
const brewPip = '/opt/homebrew/opt/python@3.12/bin/pip3.12';
|
|
341
|
+
try {
|
|
342
|
+
execSync(`${brewPip} --version`, { stdio: 'ignore' });
|
|
343
|
+
pipCmd = brewPip;
|
|
344
|
+
console.log(chalk.gray(` Using: ${brewPip}`));
|
|
345
|
+
}
|
|
346
|
+
catch {
|
|
347
|
+
// Try generic pip3.12
|
|
348
|
+
try {
|
|
349
|
+
execSync('pip3.12 --version', { stdio: 'ignore' });
|
|
350
|
+
pipCmd = 'pip3.12';
|
|
351
|
+
}
|
|
352
|
+
catch { /* fall back to pip3 */ }
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
else if (os === 'linux') {
|
|
356
|
+
try {
|
|
357
|
+
execSync('pip3.12 --version', { stdio: 'ignore' });
|
|
358
|
+
pipCmd = 'pip3.12';
|
|
359
|
+
}
|
|
360
|
+
catch { /* fall back to pip3 */ }
|
|
361
|
+
}
|
|
362
|
+
// Pre-install system dependencies for packages that need them
|
|
363
|
+
if (os === 'darwin') {
|
|
364
|
+
console.log(chalk.gray(' Installing build dependencies...'));
|
|
365
|
+
try {
|
|
366
|
+
execSync('brew install gmp mpfr libmpc libmagic', { stdio: 'ignore' });
|
|
367
|
+
console.log(chalk.green(' ✓ Build dependencies ready (gmp, mpfr, libmpc, libmagic)'));
|
|
368
|
+
}
|
|
369
|
+
catch { /* some may already exist */ }
|
|
370
|
+
}
|
|
371
|
+
else if (os === 'linux') {
|
|
372
|
+
try {
|
|
373
|
+
execSync('sudo apt-get install -y libgmp-dev libmpfr-dev libmpc-dev libmagic1', { stdio: 'ignore' });
|
|
374
|
+
}
|
|
375
|
+
catch { /* ignore */ }
|
|
376
|
+
}
|
|
377
|
+
console.log();
|
|
378
|
+
// Set compiler flags for brew libraries (macOS)
|
|
379
|
+
let envPrefix = '';
|
|
380
|
+
if (os === 'darwin') {
|
|
381
|
+
envPrefix = 'CFLAGS="-I/opt/homebrew/include" LDFLAGS="-L/opt/homebrew/lib" ';
|
|
382
|
+
}
|
|
337
383
|
// Install Python libraries
|
|
338
384
|
let pipInstalled = 0;
|
|
339
385
|
let pipFailed = 0;
|
|
@@ -349,7 +395,8 @@ async function installAll() {
|
|
|
349
395
|
}
|
|
350
396
|
process.stdout.write(chalk.gray(` ⏳ ${lib.name}...`));
|
|
351
397
|
try {
|
|
352
|
-
|
|
398
|
+
const cmd = `${envPrefix}${pipCmd} install ${pipFlag} ${lib.install}`;
|
|
399
|
+
execSync(cmd, { stdio: 'ignore', shell: '/bin/bash' });
|
|
353
400
|
process.stdout.write('\r');
|
|
354
401
|
console.log(chalk.green(` ✓ ${lib.name}`) + chalk.gray(` (${lib.install})`));
|
|
355
402
|
pipInstalled++;
|
package/dist/index.js
CHANGED
|
@@ -36,7 +36,7 @@ ${LINE}
|
|
|
36
36
|
${chalk.white('Sydney, Australia')} ${chalk.gray('Jun 27 - Jul 2, 2026')}
|
|
37
37
|
${chalk.cyan.underline('https://icoa2026.au')}
|
|
38
38
|
|
|
39
|
-
${chalk.gray('CLI-Native Competition Terminal v1.8.
|
|
39
|
+
${chalk.gray('CLI-Native Competition Terminal v1.8.2')}
|
|
40
40
|
|
|
41
41
|
${LINE}
|
|
42
42
|
`;
|
package/dist/repl.js
CHANGED
|
@@ -8,7 +8,7 @@ import { ensureSandbox, runInSandbox, isDockerAvailable } from './lib/sandbox.js
|
|
|
8
8
|
import { logCommand } from './lib/logger.js';
|
|
9
9
|
import { startLogSync, stopLogSync } from './lib/log-sync.js';
|
|
10
10
|
const INTERCEPT = '__REPL_NO_EXIT__';
|
|
11
|
-
const VERSION = '1.8.
|
|
11
|
+
const VERSION = '1.8.2';
|
|
12
12
|
export async function startRepl(program, resumeMode) {
|
|
13
13
|
const config = getConfig();
|
|
14
14
|
const connected = isConnected();
|