icoa-cli 1.8.3 → 1.8.5

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.
@@ -21,7 +21,7 @@ const PYTHON_LIBS = [
21
21
  { name: 'paramiko', check: 'python3 -c "import paramiko"', install: 'paramiko==3.4.0', category: 'Web & Network' },
22
22
  // Crypto & Math
23
23
  { name: 'sympy', check: 'python3 -c "import sympy"', install: 'sympy==1.12', category: 'Crypto & Math' },
24
- { name: 'gmpy2', check: 'python3 -c "import gmpy2"', install: 'gmpy2==2.1.5', category: 'Crypto & Math' },
24
+ { name: 'gmpy2', check: process.platform === 'darwin' ? '/opt/homebrew/opt/python@3.12/bin/python3.12 -c "import gmpy2"' : 'python3 -c "import gmpy2"', install: 'gmpy2>=2.2.0', category: 'Crypto & Math' },
25
25
  { name: 'cryptography', check: 'python3 -c "import cryptography"', install: 'cryptography==42.0.0', category: 'Crypto & Math' },
26
26
  // Binary & RE
27
27
  { name: 'capstone', check: 'python3 -c "import capstone"', install: 'capstone==5.0.1', category: 'Binary & RE' },
@@ -80,10 +80,14 @@ const SYSTEM_TOOLS = [
80
80
  { name: 'tshark', check: CMD('tshark'), brew: 'wireshark', apt: 'tshark', choco: 'wireshark', category: 'Networking' },
81
81
  // Debuggers & Tracing (5)
82
82
  { name: 'gdb', check: CMD('gdb'), brew: 'gdb', apt: 'gdb', choco: 'mingw', category: 'Debuggers' },
83
- { name: 'ltrace', check: CMD('ltrace'), apt: 'ltrace', category: 'Debuggers' },
84
- { name: 'strace', check: CMD('strace'), apt: 'strace', category: 'Debuggers' },
83
+ ...(process.platform !== 'darwin' ? [
84
+ { name: 'ltrace', check: CMD('ltrace'), apt: 'ltrace', category: 'Debuggers' },
85
+ { name: 'strace', check: CMD('strace'), apt: 'strace', category: 'Debuggers' },
86
+ ] : []),
85
87
  { name: 'objdump', check: CMD('objdump'), category: 'Debuggers' },
86
- { name: 'readelf', check: CMD('readelf'), category: 'Debuggers' },
88
+ ...(process.platform !== 'darwin' ? [
89
+ { name: 'readelf', check: CMD('readelf'), category: 'Debuggers' },
90
+ ] : []),
87
91
  // Reverse Engineering (4)
88
92
  { name: 'radare2', check: CMD('r2'), brew: 'radare2', apt: 'radare2', choco: 'radare2', category: 'Reverse Engineering' },
89
93
  { name: 'rabin2', check: CMD('rabin2'), category: 'Reverse Engineering' },
@@ -91,9 +95,13 @@ const SYSTEM_TOOLS = [
91
95
  { name: 'strings', check: CMD('strings'), category: 'Reverse Engineering' },
92
96
  // Forensics (7)
93
97
  { name: 'binwalk', check: CMD('binwalk'), brew: 'binwalk', apt: 'binwalk', category: 'Forensics' },
94
- { name: 'foremost', check: CMD('foremost'), apt: 'foremost', category: 'Forensics' },
98
+ ...(process.platform !== 'darwin' ? [
99
+ { name: 'foremost', check: CMD('foremost'), apt: 'foremost', category: 'Forensics' },
100
+ ] : []),
95
101
  { name: 'exiftool', check: CMD('exiftool'), brew: 'exiftool', apt: 'exiftool', choco: 'exiftool', category: 'Forensics' },
96
- { name: 'steghide', check: CMD('steghide'), apt: 'steghide', category: 'Forensics' },
102
+ ...(process.platform !== 'darwin' ? [
103
+ { name: 'steghide', check: CMD('steghide'), apt: 'steghide', category: 'Forensics' },
104
+ ] : []),
97
105
  { name: 'file', check: CMD('file'), category: 'Forensics' },
98
106
  { name: 'xxd', check: CMD('xxd'), brew: 'vim', apt: 'xxd', category: 'Forensics' },
99
107
  { name: 'pdftotext', check: CMD('pdftotext'), brew: 'poppler', apt: 'poppler-utils', category: 'Forensics' },
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.3')}
39
+ ${chalk.gray('CLI-Native Competition Terminal v1.8.5')}
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.3';
11
+ const VERSION = '1.8.5';
12
12
  export async function startRepl(program, resumeMode) {
13
13
  const config = getConfig();
14
14
  const connected = isConnected();
@@ -193,20 +193,33 @@ export async function startRepl(program, resumeMode) {
193
193
  'log', 'lang', 'setup', 'env', 'model', 'ctf',
194
194
  ];
195
195
  if (!knownCommands.includes(cmd)) {
196
+ // Force Python 3.12 — rewrite python3/python/pip3 to 3.12 binaries
197
+ let resolvedInput = input;
198
+ if (process.platform === 'darwin') {
199
+ const py12 = '/opt/homebrew/opt/python@3.12/bin/python3.12';
200
+ const pip12 = '/opt/homebrew/opt/python@3.12/bin/pip3.12';
201
+ resolvedInput = resolvedInput
202
+ .replace(/^python3?\s/, `${py12} `)
203
+ .replace(/^pip3?\s/, `${pip12} `);
204
+ if (resolvedInput === 'python3' || resolvedInput === 'python')
205
+ resolvedInput = py12;
206
+ if (resolvedInput === 'pip3' || resolvedInput === 'pip')
207
+ resolvedInput = pip12;
208
+ }
196
209
  // Route to Docker sandbox if available, otherwise system shell
197
210
  processing = true;
198
211
  try {
199
212
  if (isDockerAvailable()) {
200
213
  const ready = await ensureSandbox();
201
214
  if (ready) {
202
- await runInSandbox(input, rl);
215
+ await runInSandbox(resolvedInput, rl);
203
216
  }
204
217
  else {
205
- await runSystemCommand(input, rl);
218
+ await runSystemCommand(resolvedInput, rl);
206
219
  }
207
220
  }
208
221
  else {
209
- await runSystemCommand(input, rl);
222
+ await runSystemCommand(resolvedInput, rl);
210
223
  }
211
224
  }
212
225
  catch {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "icoa-cli",
3
- "version": "1.8.3",
3
+ "version": "1.8.5",
4
4
  "description": "ICOA CLI — The world's first CLI-native CTF competition terminal",
5
5
  "type": "module",
6
6
  "bin": {