[pitboss] phase 13: Track B — JavaScript + TypeScript harness emitter shapes

This commit is contained in:
pitboss 2026-05-14 16:12:11 -05:00
parent 96eb37500c
commit 34a5879459
51 changed files with 2556 additions and 440 deletions

View file

@ -0,0 +1,24 @@
// Phase 13 — bare async function, benign control.
//
// execFile (no shell) via util.promisify(execFile). Payload never reaches a
// shell; stderr silenced so payload bytes do not leak via the inner process'
// error message.
'use strict';
const { execFile } = require('child_process');
const { promisify } = require('util');
const execFileP = promisify(execFile);
async function runPing(host) {
process.stdout.write('__NYX_SINK_HIT__\n');
try {
const { stdout } = await execFileP('true', [host], {
timeout: 5000,
});
return stdout;
} catch (_e) {
return 'err';
}
}
module.exports = { runPing };