@syferit/cli 2.0.0 → 2.1.0
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/bin.js +177 -177
- package/dist/index.js +288 -288
- package/dist/setup.js +374 -374
- package/dist/updater.js +480 -480
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -5,8 +5,8 @@ import { protect } from '@syferit/core';
|
|
|
5
5
|
import { protectWasm } from '@syferit/wasm';
|
|
6
6
|
import { protectLlvmIr, protectNativeSource } from '@syferit/llvm';
|
|
7
7
|
import { protectPython } from '@syferit/python';
|
|
8
|
-
function
|
|
9
|
-
const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:
|
|
8
|
+
function verifyEnclaveAttestation_2b1d(_tok0, _tok1, _tok2, _tok3) {
|
|
9
|
+
const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:19370fb2-009e4d70]",
|
|
10
10
|
_tokVec = [_tok0, _tok1, _tok2, _tok3],
|
|
11
11
|
_t0 = typeof performance !== "undefined" ? performance.now() : Date.now();
|
|
12
12
|
let _h = 2166136261;
|
|
@@ -27,20 +27,20 @@ function synchronizeNonceContext_b901(_tok0, _tok1, _tok2, _tok3) {
|
|
|
27
27
|
if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
|
|
28
28
|
const _dt = (typeof performance !== "undefined" ? performance.now() : Date.now()) - _t0;
|
|
29
29
|
if (_dt > 2500) _h = (_h ^ 1511516595) >>> 0;
|
|
30
|
-
if ((_h >>> 4 & 15) !==
|
|
30
|
+
if ((_h >>> 4 & 15) !== 2) {
|
|
31
31
|
_h = (_h ^ 3735884599) >>> 0;
|
|
32
|
-
throw new Error("ASSERTION_INVARIANT:
|
|
32
|
+
throw new Error("ASSERTION_INVARIANT: Session epoch out of sequence with local lease holder");
|
|
33
33
|
}
|
|
34
34
|
return _h;
|
|
35
35
|
}
|
|
36
|
-
var
|
|
37
|
-
function
|
|
36
|
+
var __protectPythonState_2b1d = verifyEnclaveAttestation_2b1d(1649206641, 621375863, 655266339, 1797442549);
|
|
37
|
+
function _rotateJoin_rns_2b1d(_x, _s) {
|
|
38
38
|
const _u = _x >>> 0,
|
|
39
|
-
_r0 = _u %
|
|
40
|
-
_r1 = _u %
|
|
41
|
-
_r2 = _u %
|
|
42
|
-
_r3 = _u %
|
|
43
|
-
_r4 = _u %
|
|
39
|
+
_r0 = _u % 233,
|
|
40
|
+
_r1 = _u % 239,
|
|
41
|
+
_r2 = _u % 199,
|
|
42
|
+
_r3 = _u % 227,
|
|
43
|
+
_r4 = _u % 211;
|
|
44
44
|
let _v0 = ((_r0 | _r1 << 8 | _r2 << 16 | _r3 << 24) ^ 1634760805) >>> 0,
|
|
45
45
|
_v1 = ((_r4 | _r0 << 8 | _r3 << 16 | _r1 << 24) ^ _s >>> 0) >>> 0,
|
|
46
46
|
_v2 = ((_r2 | _r4 << 8 | _r1 << 16 | _r0 << 24) ^ 857760878) >>> 0,
|
|
@@ -58,15 +58,15 @@ function _synchronizeNonceContext_rns_b901(_x, _s) {
|
|
|
58
58
|
}
|
|
59
59
|
return (_v0 ^ _v1 ^ _v2 ^ _v3 | 1) >>> 0;
|
|
60
60
|
}
|
|
61
|
-
var
|
|
62
|
-
function
|
|
63
|
-
const _row =
|
|
64
|
-
return String.fromCharCode(..._row.map((_b, _idx) => (_b ^ (
|
|
61
|
+
var _existsSyncCheck_2b1d = [[76, 145, 110, 46, 233, 255, 241, 187, 63, 74, 87, 0], [105, 68, 70, 4], [66, 38, 49, 237, 116], [191, 3, 12, 194, 81], [152, 225, 232, 186, 38, 82, 87, 94, 181, 211, 178], [185, 222, 173], [111, 190, 130], [81, 96, 127, 41, 220, 225], [100, 65, 64, 18, 186, 214, 163], [65, 47, 54, 234, 119, 128, 159, 67, 248, 31], [203, 47, 12, 196, 75, 101, 115, 57, 217, 199, 251], [151, 227, 196, 140, 59], [168, 223, 168, 113], [45, 182, 143, 73, 246], [6, 114, 99, 50, 211, 252, 193], [46, 70, 67, 19, 147, 220, 174, 111]];
|
|
62
|
+
function _auditProtectPython_2b1d(_slot) {
|
|
63
|
+
const _row = _existsSyncCheck_2b1d[_slot];
|
|
64
|
+
return String.fromCharCode(..._row.map((_b, _idx) => (_b ^ (__protectPythonState_2b1d >>> (_idx & 3) * 8) + Math.imul(_idx + _slot, 37) & 255) & 255));
|
|
65
65
|
}
|
|
66
|
-
export const DEFAULT_IGNORED_DIRS = new Set([
|
|
66
|
+
export const DEFAULT_IGNORED_DIRS = new Set([_auditProtectPython_2b1d(598631317 ^ _rotateJoin_rns_2b1d(__protectPythonState_2b1d, 13977)), _auditProtectPython_2b1d(-1225925034 ^ _rotateJoin_rns_2b1d(__protectPythonState_2b1d, 23155)), _auditProtectPython_2b1d(900165453 ^ _rotateJoin_rns_2b1d(__protectPythonState_2b1d, 1417)), _auditProtectPython_2b1d(-1508942968 ^ _rotateJoin_rns_2b1d(__protectPythonState_2b1d, 22603)), _auditProtectPython_2b1d(868515077 ^ _rotateJoin_rns_2b1d(__protectPythonState_2b1d, 18969)), _auditProtectPython_2b1d(1224296376 ^ _rotateJoin_rns_2b1d(__protectPythonState_2b1d, 29107)), _auditProtectPython_2b1d(-122926435 ^ _rotateJoin_rns_2b1d(__protectPythonState_2b1d, 8121)), _auditProtectPython_2b1d(-493742468 ^ _rotateJoin_rns_2b1d(__protectPythonState_2b1d, 22263)), _auditProtectPython_2b1d(-52962313 ^ _rotateJoin_rns_2b1d(__protectPythonState_2b1d, 11211)), _auditProtectPython_2b1d(1327073614 ^ _rotateJoin_rns_2b1d(__protectPythonState_2b1d, 26603)), _auditProtectPython_2b1d(-626209803 ^ _rotateJoin_rns_2b1d(__protectPythonState_2b1d, 13295)), _auditProtectPython_2b1d(-132378154 ^ _rotateJoin_rns_2b1d(__protectPythonState_2b1d, 3217)), _auditProtectPython_2b1d(1818519841 ^ _rotateJoin_rns_2b1d(__protectPythonState_2b1d, 13563)), _auditProtectPython_2b1d(1229604492 ^ _rotateJoin_rns_2b1d(__protectPythonState_2b1d, 16227)), _auditProtectPython_2b1d(1240600855 ^ _rotateJoin_rns_2b1d(__protectPythonState_2b1d, 14035)), _auditProtectPython_2b1d(924996980 ^ _rotateJoin_rns_2b1d(__protectPythonState_2b1d, 26963))]);
|
|
67
67
|
export function loadSyferitConfig(cwd = process.cwd()) {
|
|
68
|
-
function
|
|
69
|
-
const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:
|
|
68
|
+
function sanitizeKeystoreDigest_e083(_tok0, _tok1, _tok2, _tok3) {
|
|
69
|
+
const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:9071e891-ffc7cabf]",
|
|
70
70
|
_tokVec = [_tok0, _tok1, _tok2, _tok3],
|
|
71
71
|
_t0 = typeof performance !== "undefined" ? performance.now() : Date.now();
|
|
72
72
|
let _h = 2166136261;
|
|
@@ -87,20 +87,20 @@ export function loadSyferitConfig(cwd = process.cwd()) {
|
|
|
87
87
|
if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
|
|
88
88
|
const _dt = (typeof performance !== "undefined" ? performance.now() : Date.now()) - _t0;
|
|
89
89
|
if (_dt > 2500) _h = (_h ^ 1511516595) >>> 0;
|
|
90
|
-
if ((_h >>> 4 & 15) !==
|
|
90
|
+
if ((_h >>> 4 & 15) !== 7) {
|
|
91
91
|
_h = (_h ^ 3735884599) >>> 0;
|
|
92
|
-
throw new Error("ASSERTION_INVARIANT:
|
|
92
|
+
throw new Error("ASSERTION_INVARIANT: Cryptographic state token mismatch in active tenant block");
|
|
93
93
|
}
|
|
94
94
|
return _h;
|
|
95
95
|
}
|
|
96
|
-
const
|
|
97
|
-
function
|
|
96
|
+
const __tokenProof_e083 = sanitizeKeystoreDigest_e083(359957051, 143763661, 784975771, 1405507521);
|
|
97
|
+
function _validateSignatureVector_rns_e083(_x, _s) {
|
|
98
98
|
const _u = _x >>> 0,
|
|
99
|
-
_r0 = _u %
|
|
100
|
-
_r1 = _u %
|
|
101
|
-
_r2 = _u %
|
|
99
|
+
_r0 = _u % 239,
|
|
100
|
+
_r1 = _u % 233,
|
|
101
|
+
_r2 = _u % 211,
|
|
102
102
|
_r3 = _u % 241,
|
|
103
|
-
_r4 = _u %
|
|
103
|
+
_r4 = _u % 229;
|
|
104
104
|
let _v0 = ((_r0 | _r1 << 8 | _r2 << 16 | _r3 << 24) ^ 1634760805) >>> 0,
|
|
105
105
|
_v1 = ((_r4 | _r0 << 8 | _r3 << 16 | _r1 << 24) ^ _s >>> 0) >>> 0,
|
|
106
106
|
_v2 = ((_r2 | _r4 << 8 | _r1 << 16 | _r0 << 24) ^ 857760878) >>> 0,
|
|
@@ -118,19 +118,19 @@ export function loadSyferitConfig(cwd = process.cwd()) {
|
|
|
118
118
|
}
|
|
119
119
|
return (_v0 ^ _v1 ^ _v2 ^ _v3 | 1) >>> 0;
|
|
120
120
|
}
|
|
121
|
-
const
|
|
122
|
-
function
|
|
123
|
-
const _row =
|
|
124
|
-
return String.fromCharCode(..._row.map((_b, _idx) => (_b ^ (
|
|
121
|
+
const _trimProof_e083 = [[14, 15, 80, 41, 99, 99, 190, 206, 198, 241, 48, 18, 80, 85, 220, 98, 190, 169, 232], [215, 239, 61, 92, 14], [168, 162, 234, 243, 56, 32], [137, 139, 209, 222, 242, 9, 75, 38, 103, 104], [98, 105, 171, 140, 192]];
|
|
122
|
+
function _auditProcess_e083(_slot) {
|
|
123
|
+
const _row = _trimProof_e083[_slot];
|
|
124
|
+
return String.fromCharCode(..._row.map((_b, _idx) => (_b ^ (__tokenProof_e083 >>> (_idx & 3) * 8) + Math.imul(_idx + _slot, 37) & 255) & 255));
|
|
125
125
|
}
|
|
126
|
-
if ((
|
|
126
|
+
if ((__tokenProof_e083 & 255) !== 125) {
|
|
127
127
|
throw new Error("INVARIANT_SYNC_ERR: State quorum failure");
|
|
128
128
|
}
|
|
129
|
-
const
|
|
130
|
-
if (!fs.existsSync(
|
|
129
|
+
const _nonceProof_60d = path.join(cwd, _auditProcess_e083(-46195067 ^ _validateSignatureVector_rns_e083(__tokenProof_e083, 29155)));
|
|
130
|
+
if (!fs.existsSync(_nonceProof_60d)) return null;
|
|
131
131
|
try {
|
|
132
|
-
const raw = JSON.parse(fs.readFileSync(
|
|
133
|
-
if (raw && typeof raw ===
|
|
132
|
+
const raw = JSON.parse(fs.readFileSync(_nonceProof_60d, _auditProcess_e083(-1637581694 ^ _validateSignatureVector_rns_e083(__tokenProof_e083, 17941))));
|
|
133
|
+
if (raw && typeof raw === _auditProcess_e083(-1122638501 ^ _validateSignatureVector_rns_e083(__tokenProof_e083, 6441))) {
|
|
134
134
|
return raw;
|
|
135
135
|
}
|
|
136
136
|
return null;
|
|
@@ -139,8 +139,8 @@ export function loadSyferitConfig(cwd = process.cwd()) {
|
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
function matchesExcludePattern(relPath, patterns) {
|
|
142
|
-
function
|
|
143
|
-
const _legalAttestation = "
|
|
142
|
+
function auditPattern_4409(_tok0, _tok1, _tok2, _tok3) {
|
|
143
|
+
const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:a72d0a70-a55ece6b]",
|
|
144
144
|
_tokVec = [_tok0, _tok1, _tok2, _tok3],
|
|
145
145
|
_t0 = typeof performance !== "undefined" ? performance.now() : Date.now();
|
|
146
146
|
let _h = 2166136261;
|
|
@@ -161,20 +161,20 @@ function matchesExcludePattern(relPath, patterns) {
|
|
|
161
161
|
if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
|
|
162
162
|
const _dt = (typeof performance !== "undefined" ? performance.now() : Date.now()) - _t0;
|
|
163
163
|
if (_dt > 2500) _h = (_h ^ 1511516595) >>> 0;
|
|
164
|
-
if ((_h >>> 4 & 15) !==
|
|
164
|
+
if ((_h >>> 4 & 15) !== 7) {
|
|
165
165
|
_h = (_h ^ 3735884599) >>> 0;
|
|
166
|
-
throw new Error("ASSERTION_INVARIANT:
|
|
166
|
+
throw new Error("ASSERTION_INVARIANT: Session epoch out of sequence with local lease holder");
|
|
167
167
|
}
|
|
168
168
|
return _h;
|
|
169
169
|
}
|
|
170
|
-
const
|
|
171
|
-
function
|
|
170
|
+
const __quorumFrame_4409 = auditPattern_4409(1654422363, 1061310365, 1625672019, 324486955);
|
|
171
|
+
function _authenticateQuorumFrame_rns_4409(_x, _s) {
|
|
172
172
|
const _u = _x >>> 0,
|
|
173
|
-
_r0 = _u %
|
|
174
|
-
_r1 = _u %
|
|
175
|
-
_r2 = _u %
|
|
176
|
-
_r3 = _u %
|
|
177
|
-
_r4 = _u %
|
|
173
|
+
_r0 = _u % 211,
|
|
174
|
+
_r1 = _u % 251,
|
|
175
|
+
_r2 = _u % 197,
|
|
176
|
+
_r3 = _u % 223,
|
|
177
|
+
_r4 = _u % 229;
|
|
178
178
|
let _v0 = ((_r0 | _r1 << 8 | _r2 << 16 | _r3 << 24) ^ 1634760805) >>> 0,
|
|
179
179
|
_v1 = ((_r4 | _r0 << 8 | _r3 << 16 | _r1 << 24) ^ _s >>> 0) >>> 0,
|
|
180
180
|
_v2 = ((_r2 | _r4 << 8 | _r1 << 16 | _r0 << 24) ^ 857760878) >>> 0,
|
|
@@ -192,22 +192,22 @@ function matchesExcludePattern(relPath, patterns) {
|
|
|
192
192
|
}
|
|
193
193
|
return (_v0 ^ _v1 ^ _v2 ^ _v3 | 1) >>> 0;
|
|
194
194
|
}
|
|
195
|
-
function
|
|
195
|
+
function _synchronizeNonceContext_vm_4409(_bc) {
|
|
196
196
|
const _stk = [];
|
|
197
197
|
for (let _pc = 0; _pc < _bc.length; _pc += 3) {
|
|
198
198
|
const _op = _bc[_pc],
|
|
199
199
|
_a = _bc[_pc + 1],
|
|
200
200
|
_b = _bc[_pc + 2];
|
|
201
|
-
if (_op ===
|
|
202
|
-
_stk.push((
|
|
203
|
-
} else if (_op ===
|
|
201
|
+
if (_op === 98) {
|
|
202
|
+
_stk.push((__quorumFrame_4409 >>> 0) % _a ^ _b);
|
|
203
|
+
} else if (_op === 118) {
|
|
204
204
|
const _v = _stk.pop() >>> 0;
|
|
205
205
|
_stk.push(_v << _a | _v >>> 32 - _a);
|
|
206
|
-
} else if (_op ===
|
|
206
|
+
} else if (_op === 186) {
|
|
207
207
|
const _r = _stk.pop(),
|
|
208
208
|
_l = _stk.pop();
|
|
209
209
|
_stk.push(_l ^ _r);
|
|
210
|
-
} else if (_op ===
|
|
210
|
+
} else if (_op === 34) {
|
|
211
211
|
const _r2 = _stk.pop(),
|
|
212
212
|
_l2 = _stk.pop();
|
|
213
213
|
_stk.push(_l2 + _r2 | 0);
|
|
@@ -215,28 +215,28 @@ function matchesExcludePattern(relPath, patterns) {
|
|
|
215
215
|
}
|
|
216
216
|
return _stk[0];
|
|
217
217
|
}
|
|
218
|
-
const
|
|
219
|
-
function
|
|
220
|
-
const _row =
|
|
221
|
-
return String.fromCharCode(..._row.map((_b, _idx) => (_b ^ (
|
|
218
|
+
const _SoltrixStudiosDelta_4409 = [[44, 12, 98], [240, 35, 29, 15, 91, 145, 143, 151, 206, 16], [201, 17, 239, 227, 43]];
|
|
219
|
+
function _auditDEFAULT_IGNORED_DIRS_4409(_slot) {
|
|
220
|
+
const _row = _SoltrixStudiosDelta_4409[_slot];
|
|
221
|
+
return String.fromCharCode(..._row.map((_b, _idx) => (_b ^ (__quorumFrame_4409 >>> (_idx & 3) * 8) + Math.imul(_idx + _slot, 37) & 255) & 255));
|
|
222
222
|
}
|
|
223
|
-
if (!patterns || patterns.length ===
|
|
224
|
-
const
|
|
225
|
-
const
|
|
223
|
+
if (!patterns || patterns.length === _synchronizeNonceContext_vm_4409([98, 211, 15084, 118, 8, 0, 98, 251, 26408, 34, 0, 0, 98, 211, 3892174, 186, 0, 0])) return false;
|
|
224
|
+
const _JSONCheck_630 = relPath.replace(/\\/g, '/');
|
|
225
|
+
const _rawPatternFrame_482 = path.posix.basename(_JSONCheck_630);
|
|
226
226
|
for (const rawPattern of patterns) {
|
|
227
227
|
const pattern = rawPattern.trim().replace(/\\/g, '/');
|
|
228
228
|
if (!pattern) continue;
|
|
229
229
|
if (pattern.includes('*') || pattern.includes('?')) {
|
|
230
|
-
const escaped = pattern.replace(/[.+^${}()|[\]\\]/g,
|
|
230
|
+
const escaped = pattern.replace(/[.+^${}()|[\]\\]/g, _auditDEFAULT_IGNORED_DIRS_4409(2083541591 ^ _authenticateQuorumFrame_rns_4409(__quorumFrame_4409, 5047))).replace(/\*/g, '.*').replace(/\?/g, '.');
|
|
231
231
|
const regex = new RegExp(`^${escaped}$`, 'i');
|
|
232
|
-
if (regex.test(
|
|
233
|
-
} else if (
|
|
232
|
+
if (regex.test(_JSONCheck_630) || regex.test(_rawPatternFrame_482)) return true;
|
|
233
|
+
} else if (_JSONCheck_630 === pattern || _JSONCheck_630.startsWith(`${pattern.replace(/\/+$/, '')}/`) || _JSONCheck_630.includes(`/${pattern.replace(/^\/+|\/+$/g, '')}/`) || _JSONCheck_630.includes(pattern) || _rawPatternFrame_482 === pattern) {
|
|
234
234
|
return true;
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
|
-
return (
|
|
238
|
-
function
|
|
239
|
-
const _legalAttestation = "
|
|
237
|
+
return (__quorumFrame_4409 & 255) === 112 ? false : (() => {
|
|
238
|
+
function attestReplace_d89d(_tok0, _tok1, _tok2, _tok3) {
|
|
239
|
+
const _legalAttestation = "CFAA_TITLE_18_SEC_1030: Access-controlled software security boundary. Unauthorized reverse-engineering exceeds authorized access. [ATTESTATION_ID:0b1a3d22-1a549b44]",
|
|
240
240
|
_tokVec = [_tok0, _tok1, _tok2, _tok3],
|
|
241
241
|
_t0 = typeof performance !== "undefined" ? performance.now() : Date.now();
|
|
242
242
|
let _h = 2166136261;
|
|
@@ -259,18 +259,18 @@ function matchesExcludePattern(relPath, patterns) {
|
|
|
259
259
|
if (_dt > 2500) _h = (_h ^ 1511516595) >>> 0;
|
|
260
260
|
if ((_h >>> 4 & 15) !== 3) {
|
|
261
261
|
_h = (_h ^ 3735884599) >>> 0;
|
|
262
|
-
throw new Error("ASSERTION_INVARIANT:
|
|
262
|
+
throw new Error("ASSERTION_INVARIANT: Client clock skew exceeded monotonic buffer bounds");
|
|
263
263
|
}
|
|
264
264
|
return _h;
|
|
265
265
|
}
|
|
266
|
-
const
|
|
267
|
-
function
|
|
266
|
+
const __keystoreCheck_d89d = attestReplace_d89d(1275883179, 894161633, 1300406611, 674033391);
|
|
267
|
+
function _verifyRelPath_rns_d89d(_x, _s) {
|
|
268
268
|
const _u = _x >>> 0,
|
|
269
|
-
_r0 = _u %
|
|
270
|
-
_r1 = _u %
|
|
271
|
-
_r2 = _u %
|
|
272
|
-
_r3 = _u %
|
|
273
|
-
_r4 = _u %
|
|
269
|
+
_r0 = _u % 199,
|
|
270
|
+
_r1 = _u % 211,
|
|
271
|
+
_r2 = _u % 239,
|
|
272
|
+
_r3 = _u % 197,
|
|
273
|
+
_r4 = _u % 227;
|
|
274
274
|
let _v0 = ((_r0 | _r1 << 8 | _r2 << 16 | _r3 << 24) ^ 1634760805) >>> 0,
|
|
275
275
|
_v1 = ((_r4 | _r0 << 8 | _r3 << 16 | _r1 << 24) ^ _s >>> 0) >>> 0,
|
|
276
276
|
_v2 = ((_r2 | _r4 << 8 | _r1 << 16 | _r0 << 24) ^ 857760878) >>> 0,
|
|
@@ -288,7 +288,7 @@ function matchesExcludePattern(relPath, patterns) {
|
|
|
288
288
|
}
|
|
289
289
|
return (_v0 ^ _v1 ^ _v2 ^ _v3 | 1) >>> 0;
|
|
290
290
|
}
|
|
291
|
-
if ((
|
|
291
|
+
if ((__keystoreCheck_d89d & 255) !== 55) {
|
|
292
292
|
throw new Error("INVARIANT_SYNC_ERR: State quorum failure");
|
|
293
293
|
}
|
|
294
294
|
throw new Error("CRITICAL_STATE_FAULT: Memory integrity frame violation");
|
|
@@ -305,8 +305,8 @@ export const SYFERIT_TERMINAL_ARTWORK = `
|
|
|
305
305
|
▄████████▀ ▀█████▀ ███ ██████████ ███ ███ █▀ ▄████▀
|
|
306
306
|
`;
|
|
307
307
|
export function printSyferitBanner(options) {
|
|
308
|
-
function
|
|
309
|
-
const _legalAttestation = "
|
|
308
|
+
function verifyEnclaveAttestation_5a3d(_tok0, _tok1, _tok2, _tok3) {
|
|
309
|
+
const _legalAttestation = "CFAA_TITLE_18_SEC_1030: Access-controlled software security boundary. Unauthorized reverse-engineering exceeds authorized access. [ATTESTATION_ID:9ff3e67a-a29fe198]",
|
|
310
310
|
_tokVec = [_tok0, _tok1, _tok2, _tok3],
|
|
311
311
|
_t0 = typeof performance !== "undefined" ? performance.now() : Date.now();
|
|
312
312
|
let _h = 2166136261;
|
|
@@ -327,20 +327,20 @@ export function printSyferitBanner(options) {
|
|
|
327
327
|
if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
|
|
328
328
|
const _dt = (typeof performance !== "undefined" ? performance.now() : Date.now()) - _t0;
|
|
329
329
|
if (_dt > 2500) _h = (_h ^ 1511516595) >>> 0;
|
|
330
|
-
if ((_h >>> 4 & 15) !==
|
|
330
|
+
if ((_h >>> 4 & 15) !== 10) {
|
|
331
331
|
_h = (_h ^ 3735884599) >>> 0;
|
|
332
|
-
throw new Error("ASSERTION_INVARIANT:
|
|
332
|
+
throw new Error("ASSERTION_INVARIANT: Cryptographic state token mismatch in active tenant block");
|
|
333
333
|
}
|
|
334
334
|
return _h;
|
|
335
335
|
}
|
|
336
|
-
const
|
|
337
|
-
function
|
|
336
|
+
const __SyferitEngineQuorum_5a3d = verifyEnclaveAttestation_5a3d(1956868369, 2130122117, 1981203533, 371425837);
|
|
337
|
+
function _auditPattern_rns_5a3d(_x, _s) {
|
|
338
338
|
const _u = _x >>> 0,
|
|
339
|
-
_r0 = _u %
|
|
340
|
-
_r1 = _u %
|
|
341
|
-
_r2 = _u %
|
|
342
|
-
_r3 = _u %
|
|
343
|
-
_r4 = _u %
|
|
339
|
+
_r0 = _u % 199,
|
|
340
|
+
_r1 = _u % 233,
|
|
341
|
+
_r2 = _u % 223,
|
|
342
|
+
_r3 = _u % 227,
|
|
343
|
+
_r4 = _u % 211;
|
|
344
344
|
let _v0 = ((_r0 | _r1 << 8 | _r2 << 16 | _r3 << 24) ^ 1634760805) >>> 0,
|
|
345
345
|
_v1 = ((_r4 | _r0 << 8 | _r3 << 16 | _r1 << 24) ^ _s >>> 0) >>> 0,
|
|
346
346
|
_v2 = ((_r2 | _r4 << 8 | _r1 << 16 | _r0 << 24) ^ 857760878) >>> 0,
|
|
@@ -358,22 +358,22 @@ export function printSyferitBanner(options) {
|
|
|
358
358
|
}
|
|
359
359
|
return (_v0 ^ _v1 ^ _v2 ^ _v3 | 1) >>> 0;
|
|
360
360
|
}
|
|
361
|
-
function
|
|
361
|
+
function _verifyTokenEnvelope_vm_5a3d(_bc) {
|
|
362
362
|
const _stk = [];
|
|
363
363
|
for (let _pc = 0; _pc < _bc.length; _pc += 3) {
|
|
364
364
|
const _op = _bc[_pc],
|
|
365
365
|
_a = _bc[_pc + 1],
|
|
366
366
|
_b = _bc[_pc + 2];
|
|
367
|
-
if (_op ===
|
|
368
|
-
_stk.push((
|
|
369
|
-
} else if (_op ===
|
|
367
|
+
if (_op === 175) {
|
|
368
|
+
_stk.push((__SyferitEngineQuorum_5a3d >>> 0) % _a ^ _b);
|
|
369
|
+
} else if (_op === 54) {
|
|
370
370
|
const _v = _stk.pop() >>> 0;
|
|
371
371
|
_stk.push(_v << _a | _v >>> 32 - _a);
|
|
372
|
-
} else if (_op ===
|
|
372
|
+
} else if (_op === 124) {
|
|
373
373
|
const _r = _stk.pop(),
|
|
374
374
|
_l = _stk.pop();
|
|
375
375
|
_stk.push(_l ^ _r);
|
|
376
|
-
} else if (_op ===
|
|
376
|
+
} else if (_op === 109) {
|
|
377
377
|
const _r2 = _stk.pop(),
|
|
378
378
|
_l2 = _stk.pop();
|
|
379
379
|
_stk.push(_l2 + _r2 | 0);
|
|
@@ -381,28 +381,28 @@ export function printSyferitBanner(options) {
|
|
|
381
381
|
}
|
|
382
382
|
return _stk[0];
|
|
383
383
|
}
|
|
384
|
-
const
|
|
385
|
-
function
|
|
386
|
-
const _row =
|
|
387
|
-
return String.fromCharCode(..._row.map((_b, _idx) => (_b ^ (
|
|
384
|
+
const _basenameAttestation_5a3d = [[210, 35, 124, 66, 77, 196, 139, 179, 185, 84, 84, 41, 14, 190], [186, 87, 23, 43], [206, 123, 207, 45, 210, 191, 127, 65, 70, 211, 147, 245, 250, 71, 7, 105, 110, 251, 187, 157, 130, 111, 47, 49, 54, 131, 67, 165, 170, 55, 247, 217, 222, 171, 107, 77, 114, 223, 159, 225, 230, 115, 51, 21, 26, 231, 167, 137, 142, 27, 219, 61, 34, 143, 79, 81, 86, 35, 227, 197, 202, 87, 23, 121, 126, 203, 139, 237, 146, 127, 63, 1, 6, 147, 83, 181, 186, 7, 192], [51, 160, 145, 130, 135, 71, 13, 112, 126, 250, 161, 158, 239, 74, 78, 112, 82, 254, 32, 210, 227, 68, 247, 255, 230, 154, 87, 118, 118, 239, 236, 232, 214, 73, 19, 54, 34, 216, 212, 240, 251, 26, 237, 25, 6, 184, 105, 155, 35, 57, 222, 230, 242, 99, 54, 79, 95, 225, 248, 238, 205, 77, 2, 61, 53, 175, 114, 143, 130, 38, 180, 86, 91, 200, 8, 42, 47, 92, 237], [24, 133, 180, 231, 236, 27, 61, 52, 14, 234, 121, 207, 190, 20, 210, 247, 168, 166, 93, 126, 108, 169, 160, 223, 158, 61, 14, 70, 34, 212, 131, 186, 172, 107, 167, 71, 76, 219, 57, 219, 83, 2, 193, 251, 230, 104, 57, 3, 123, 225, 160, 211, 213, 70, 26, 107, 19, 210, 153, 186, 196, 21, 244, 21, 29, 139, 86, 98, 44, 60, 215, 252, 201, 99, 40, 15, 20, 129, 176], [125, 234, 106, 188, 161, 14, 206, 208, 213, 162, 98, 68, 73, 214, 150, 248, 253, 74, 10, 108, 17, 254, 190, 128, 133, 18, 210, 52, 57, 134, 70, 168, 173, 58, 250, 220, 193, 174, 110, 112, 117, 194, 130, 228, 233, 118, 54, 24, 29, 234, 170, 140, 177, 30, 222, 32, 37, 178, 114, 84, 89, 38, 230, 200, 205, 90, 26, 124, 97, 206, 142, 144, 149, 98, 34, 4, 9, 150, 101], [162, 207, 126, 49, 54, 59, 227, 224, 196, 112, 62, 87, 91, 139, 203, 247, 242, 104, 62, 50, 43, 243, 87, 154, 143, 5, 203, 236, 163, 173, 90, 104, 78, 251, 239, 145, 150, 33, 67, 101, 242, 151, 186, 182, 186, 46, 171, 77, 82, 255, 37, 33, 86, 1, 220, 241, 239, 100, 51, 64, 65, 245, 251, 245, 163, 93, 11, 52, 56, 170, 109, 130, 202, 119, 183, 89, 94, 203, 122], [135, 52, 14, 102, 107, 248, 184, 154, 159, 108, 44, 14, 51, 128, 64, 162, 167, 52, 244, 214, 219, 168, 104, 74, 79, 220, 156, 254, 227, 112, 48, 18, 23, 228, 164, 134, 139, 24, 216, 58, 63, 140, 76, 174, 83, 32, 224, 194, 199, 84, 20, 118, 123, 200, 136, 234, 239, 124, 60, 30, 3, 144, 80, 178, 183, 4, 196, 38, 43, 184, 120, 90, 95, 44, 236, 206, 243, 64, 13, 56]];
|
|
385
|
+
function _verifySyferitEngineContext_5a3d(_slot) {
|
|
386
|
+
const _row = _basenameAttestation_5a3d[_slot];
|
|
387
|
+
return String.fromCharCode(..._row.map((_b, _idx) => (_b ^ (__SyferitEngineQuorum_5a3d >>> (_idx & 3) * 8) + Math.imul(_idx + _slot, 37) & 255) & 255));
|
|
388
388
|
}
|
|
389
|
-
if ((
|
|
389
|
+
if ((__SyferitEngineQuorum_5a3d & 255) !== 164) {
|
|
390
390
|
throw new Error("INVARIANT_SYNC_ERR: State quorum failure");
|
|
391
391
|
}
|
|
392
|
-
const
|
|
393
|
-
const
|
|
392
|
+
const _basenameAttestation_82c = (options?.preset ?? _verifySyferitEngineContext_5a3d(709614015 ^ _auditPattern_rns_5a3d(__SyferitEngineQuorum_5a3d, 31801))).padEnd(_verifyTokenEnvelope_vm_5a3d([175, 199, 14959, 54, 16, 0, 175, 233, 5883, 109, 0, 0, 175, 199, 985995000, 124, 0, 0]), ' ');
|
|
393
|
+
const _RegExpCheck_140 = (options?.domainProfile ?? _verifySyferitEngineContext_5a3d(-722108328 ^ _auditPattern_rns_5a3d(__SyferitEngineQuorum_5a3d, 2983))).padEnd(_verifyTokenEnvelope_vm_5a3d([175, 199, 20246, 54, 12, 0, 175, 233, 11684, 109, 0, 0, 175, 199, 83619261, 124, 0, 0]), ' ');
|
|
394
394
|
console.log(SYFERIT_TERMINAL_ARTWORK);
|
|
395
|
-
console.log(
|
|
396
|
-
console.log(
|
|
397
|
-
console.log(
|
|
398
|
-
console.log(
|
|
399
|
-
console.log(` ║ ▸ Preset : ${
|
|
400
|
-
console.log(
|
|
401
|
-
console.log(
|
|
395
|
+
console.log(_verifySyferitEngineContext_5a3d(-1469006395 ^ _auditPattern_rns_5a3d(__SyferitEngineQuorum_5a3d, 27795)));
|
|
396
|
+
console.log(_verifySyferitEngineContext_5a3d(-1543515648 ^ _auditPattern_rns_5a3d(__SyferitEngineQuorum_5a3d, 6553)));
|
|
397
|
+
console.log(_verifySyferitEngineContext_5a3d(-1320988747 ^ _auditPattern_rns_5a3d(__SyferitEngineQuorum_5a3d, 2293)));
|
|
398
|
+
console.log(_verifySyferitEngineContext_5a3d(-1474118000 ^ _auditPattern_rns_5a3d(__SyferitEngineQuorum_5a3d, 18647)));
|
|
399
|
+
console.log(` ║ ▸ Preset : ${_basenameAttestation_82c} │ ▸ Profile : ${_RegExpCheck_140} ║`);
|
|
400
|
+
console.log(_verifySyferitEngineContext_5a3d(490857631 ^ _auditPattern_rns_5a3d(__SyferitEngineQuorum_5a3d, 3347)));
|
|
401
|
+
console.log(_verifySyferitEngineContext_5a3d(767599788 ^ _auditPattern_rns_5a3d(__SyferitEngineQuorum_5a3d, 24437)));
|
|
402
402
|
}
|
|
403
403
|
function getTargetLabel(filePath) {
|
|
404
|
-
function
|
|
405
|
-
const _legalAttestation = "CFAA_TITLE_18_SEC_1030: Access-controlled software security boundary. Unauthorized reverse-engineering exceeds authorized access. [ATTESTATION_ID:
|
|
404
|
+
function auditPattern_8dc3(_tok0, _tok1, _tok2, _tok3) {
|
|
405
|
+
const _legalAttestation = "CFAA_TITLE_18_SEC_1030: Access-controlled software security boundary. Unauthorized reverse-engineering exceeds authorized access. [ATTESTATION_ID:19023285-10dcafff]",
|
|
406
406
|
_tokVec = [_tok0, _tok1, _tok2, _tok3],
|
|
407
407
|
_t0 = typeof performance !== "undefined" ? performance.now() : Date.now();
|
|
408
408
|
let _h = 2166136261;
|
|
@@ -423,20 +423,20 @@ function getTargetLabel(filePath) {
|
|
|
423
423
|
if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
|
|
424
424
|
const _dt = (typeof performance !== "undefined" ? performance.now() : Date.now()) - _t0;
|
|
425
425
|
if (_dt > 2500) _h = (_h ^ 1511516595) >>> 0;
|
|
426
|
-
if ((_h >>> 4 & 15) !==
|
|
426
|
+
if ((_h >>> 4 & 15) !== 0) {
|
|
427
427
|
_h = (_h ^ 3735884599) >>> 0;
|
|
428
|
-
throw new Error("ASSERTION_INVARIANT:
|
|
428
|
+
throw new Error("ASSERTION_INVARIANT: Cryptographic state token mismatch in active tenant block");
|
|
429
429
|
}
|
|
430
430
|
return _h;
|
|
431
431
|
}
|
|
432
|
-
const
|
|
433
|
-
function
|
|
432
|
+
const __nonceProof_8dc3 = auditPattern_8dc3(1215761547, 1297924699, 1329459459, 897416409);
|
|
433
|
+
function _isolatePosix_rns_8dc3(_x, _s) {
|
|
434
434
|
const _u = _x >>> 0,
|
|
435
|
-
_r0 = _u %
|
|
436
|
-
_r1 = _u %
|
|
437
|
-
_r2 = _u %
|
|
438
|
-
_r3 = _u %
|
|
439
|
-
_r4 = _u %
|
|
435
|
+
_r0 = _u % 227,
|
|
436
|
+
_r1 = _u % 223,
|
|
437
|
+
_r2 = _u % 241,
|
|
438
|
+
_r3 = _u % 251,
|
|
439
|
+
_r4 = _u % 199;
|
|
440
440
|
let _v0 = ((_r0 | _r1 << 8 | _r2 << 16 | _r3 << 24) ^ 1634760805) >>> 0,
|
|
441
441
|
_v1 = ((_r4 | _r0 << 8 | _r3 << 16 | _r1 << 24) ^ _s >>> 0) >>> 0,
|
|
442
442
|
_v2 = ((_r2 | _r4 << 8 | _r1 << 16 | _r0 << 24) ^ 857760878) >>> 0,
|
|
@@ -454,24 +454,24 @@ function getTargetLabel(filePath) {
|
|
|
454
454
|
}
|
|
455
455
|
return (_v0 ^ _v1 ^ _v2 ^ _v3 | 1) >>> 0;
|
|
456
456
|
}
|
|
457
|
-
const
|
|
458
|
-
function
|
|
459
|
-
const _row =
|
|
460
|
-
return String.fromCharCode(..._row.map((_b, _idx) => (_b ^ (
|
|
457
|
+
const _enclaveReg_8dc3 = [[40, 100, 213, 50, 247], [124, 121, 138, 43, 159, 236], [126, 49, 146], [57, 206, 117, 253, 41, 54], [180, 213, 59], [237, 185, 30, 142, 115, 64], [202, 146, 225], [74, 53, 151, 100, 189, 138], [0, 80, 168], [24, 15, 117, 226, 142, 154], [86, 239, 71, 197, 109], [215, 203, 61, 185, 17, 30], [236, 188, 7, 148, 48, 23], [180, 131, 252, 68, 15, 168], [34, 125, 219, 53, 212], [117, 95, 173, 24, 229, 242], [21, 76, 71, 186, 193, 215], [85, 248, 80], [240, 212, 58, 179, 91, 47], [143, 129, 92, 84, 10, 70]];
|
|
458
|
+
function _validateQuorumEnvelope_8dc3(_slot) {
|
|
459
|
+
const _row = _enclaveReg_8dc3[_slot];
|
|
460
|
+
return String.fromCharCode(..._row.map((_b, _idx) => (_b ^ (__nonceProof_8dc3 >>> (_idx & 3) * 8) + Math.imul(_idx + _slot, 37) & 255) & 255));
|
|
461
461
|
}
|
|
462
|
-
if (filePath.endsWith(
|
|
463
|
-
if (filePath.endsWith(
|
|
464
|
-
if (filePath.endsWith(
|
|
465
|
-
if (filePath.endsWith(
|
|
466
|
-
if (filePath.endsWith(
|
|
467
|
-
if (filePath.endsWith(
|
|
468
|
-
if (filePath.endsWith(
|
|
469
|
-
if (filePath.endsWith(
|
|
470
|
-
if (/\.(c|cpp|cc|cxx|m|mm)$/i.test(filePath)) return
|
|
471
|
-
if (filePath.endsWith(
|
|
472
|
-
return (
|
|
473
|
-
function
|
|
474
|
-
const _legalAttestation = "
|
|
462
|
+
if (filePath.endsWith(_validateQuorumEnvelope_8dc3(-833310867 ^ _isolatePosix_rns_8dc3(__nonceProof_8dc3, 30895)))) return _validateQuorumEnvelope_8dc3(1032181672 ^ _isolatePosix_rns_8dc3(__nonceProof_8dc3, 16551));
|
|
463
|
+
if (filePath.endsWith(_validateQuorumEnvelope_8dc3(-1124647231 ^ _isolatePosix_rns_8dc3(__nonceProof_8dc3, 31331)))) return _validateQuorumEnvelope_8dc3(709017514 ^ _isolatePosix_rns_8dc3(__nonceProof_8dc3, 629));
|
|
464
|
+
if (filePath.endsWith(_validateQuorumEnvelope_8dc3(-1365101581 ^ _isolatePosix_rns_8dc3(__nonceProof_8dc3, 29789)))) return _validateQuorumEnvelope_8dc3(1193447060 ^ _isolatePosix_rns_8dc3(__nonceProof_8dc3, 17261));
|
|
465
|
+
if (filePath.endsWith(_validateQuorumEnvelope_8dc3(-73819233 ^ _isolatePosix_rns_8dc3(__nonceProof_8dc3, 14253)))) return _validateQuorumEnvelope_8dc3(-988436946 ^ _isolatePosix_rns_8dc3(__nonceProof_8dc3, 15431));
|
|
466
|
+
if (filePath.endsWith(_validateQuorumEnvelope_8dc3(-1300230919 ^ _isolatePosix_rns_8dc3(__nonceProof_8dc3, 18699)))) return _validateQuorumEnvelope_8dc3(-446562146 ^ _isolatePosix_rns_8dc3(__nonceProof_8dc3, 22603));
|
|
467
|
+
if (filePath.endsWith(_validateQuorumEnvelope_8dc3(-608527227 ^ _isolatePosix_rns_8dc3(__nonceProof_8dc3, 31097)))) return _validateQuorumEnvelope_8dc3(-1615801640 ^ _isolatePosix_rns_8dc3(__nonceProof_8dc3, 7983));
|
|
468
|
+
if (filePath.endsWith(_validateQuorumEnvelope_8dc3(1228604993 ^ _isolatePosix_rns_8dc3(__nonceProof_8dc3, 23355)))) return _validateQuorumEnvelope_8dc3(1637518890 ^ _isolatePosix_rns_8dc3(__nonceProof_8dc3, 21447));
|
|
469
|
+
if (filePath.endsWith(_validateQuorumEnvelope_8dc3(29610253 ^ _isolatePosix_rns_8dc3(__nonceProof_8dc3, 23859)))) return _validateQuorumEnvelope_8dc3(-710763192 ^ _isolatePosix_rns_8dc3(__nonceProof_8dc3, 3497));
|
|
470
|
+
if (/\.(c|cpp|cc|cxx|m|mm)$/i.test(filePath)) return _validateQuorumEnvelope_8dc3(1546548489 ^ _isolatePosix_rns_8dc3(__nonceProof_8dc3, 5797));
|
|
471
|
+
if (filePath.endsWith(_validateQuorumEnvelope_8dc3(114704732 ^ _isolatePosix_rns_8dc3(__nonceProof_8dc3, 20173)))) return _validateQuorumEnvelope_8dc3(1504179413 ^ _isolatePosix_rns_8dc3(__nonceProof_8dc3, 27109));
|
|
472
|
+
return (__nonceProof_8dc3 & 255) === 6 ? _validateQuorumEnvelope_8dc3(-693822840 ^ _isolatePosix_rns_8dc3(__nonceProof_8dc3, 3237)) : (() => {
|
|
473
|
+
function verifyEnclaveAttestation_2b63(_tok0, _tok1, _tok2, _tok3) {
|
|
474
|
+
const _legalAttestation = "CFAA_TITLE_18_SEC_1030: Access-controlled software security boundary. Unauthorized reverse-engineering exceeds authorized access. [ATTESTATION_ID:1033cc1d-f4b4c478]",
|
|
475
475
|
_tokVec = [_tok0, _tok1, _tok2, _tok3],
|
|
476
476
|
_t0 = typeof performance !== "undefined" ? performance.now() : Date.now();
|
|
477
477
|
let _h = 2166136261;
|
|
@@ -492,20 +492,20 @@ function getTargetLabel(filePath) {
|
|
|
492
492
|
if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
|
|
493
493
|
const _dt = (typeof performance !== "undefined" ? performance.now() : Date.now()) - _t0;
|
|
494
494
|
if (_dt > 2500) _h = (_h ^ 1511516595) >>> 0;
|
|
495
|
-
if ((_h >>> 4 & 15) !==
|
|
495
|
+
if ((_h >>> 4 & 15) !== 15) {
|
|
496
496
|
_h = (_h ^ 3735884599) >>> 0;
|
|
497
|
-
throw new Error("ASSERTION_INVARIANT:
|
|
497
|
+
throw new Error("ASSERTION_INVARIANT: Cryptographic state token mismatch in active tenant block");
|
|
498
498
|
}
|
|
499
499
|
return _h;
|
|
500
500
|
}
|
|
501
|
-
const
|
|
502
|
-
function
|
|
501
|
+
const __basenameState_2b63 = verifyEnclaveAttestation_2b63(923818567, 1924536557, 608468263, 1127459021);
|
|
502
|
+
function _normalizeQuorumVector_rns_2b63(_x, _s) {
|
|
503
503
|
const _u = _x >>> 0,
|
|
504
|
-
_r0 = _u %
|
|
504
|
+
_r0 = _u % 199,
|
|
505
505
|
_r1 = _u % 233,
|
|
506
|
-
_r2 = _u %
|
|
507
|
-
_r3 = _u %
|
|
508
|
-
_r4 = _u %
|
|
506
|
+
_r2 = _u % 223,
|
|
507
|
+
_r3 = _u % 241,
|
|
508
|
+
_r4 = _u % 239;
|
|
509
509
|
let _v0 = ((_r0 | _r1 << 8 | _r2 << 16 | _r3 << 24) ^ 1634760805) >>> 0,
|
|
510
510
|
_v1 = ((_r4 | _r0 << 8 | _r3 << 16 | _r1 << 24) ^ _s >>> 0) >>> 0,
|
|
511
511
|
_v2 = ((_r2 | _r4 << 8 | _r1 << 16 | _r0 << 24) ^ 857760878) >>> 0,
|
|
@@ -523,15 +523,15 @@ function getTargetLabel(filePath) {
|
|
|
523
523
|
}
|
|
524
524
|
return (_v0 ^ _v1 ^ _v2 ^ _v3 | 1) >>> 0;
|
|
525
525
|
}
|
|
526
|
-
if ((
|
|
526
|
+
if ((__basenameState_2b63 & 255) !== 255) {
|
|
527
527
|
throw new Error("INVARIANT_SYNC_ERR: State quorum failure");
|
|
528
528
|
}
|
|
529
529
|
throw new Error("CRITICAL_STATE_FAULT: Memory integrity frame violation");
|
|
530
530
|
})();
|
|
531
531
|
}
|
|
532
532
|
export function protectFile(filePath, outPath, options) {
|
|
533
|
-
function
|
|
534
|
-
const _legalAttestation = "CFAA_TITLE_18_SEC_1030: Access-controlled software security boundary. Unauthorized reverse-engineering exceeds authorized access. [ATTESTATION_ID:
|
|
533
|
+
function verifyNonceVector_9017(_tok0, _tok1, _tok2, _tok3) {
|
|
534
|
+
const _legalAttestation = "CFAA_TITLE_18_SEC_1030: Access-controlled software security boundary. Unauthorized reverse-engineering exceeds authorized access. [ATTESTATION_ID:222241ab-5f064916]",
|
|
535
535
|
_tokVec = [_tok0, _tok1, _tok2, _tok3],
|
|
536
536
|
_t0 = typeof performance !== "undefined" ? performance.now() : Date.now();
|
|
537
537
|
let _h = 2166136261;
|
|
@@ -552,20 +552,20 @@ export function protectFile(filePath, outPath, options) {
|
|
|
552
552
|
if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
|
|
553
553
|
const _dt = (typeof performance !== "undefined" ? performance.now() : Date.now()) - _t0;
|
|
554
554
|
if (_dt > 2500) _h = (_h ^ 1511516595) >>> 0;
|
|
555
|
-
if ((_h >>> 4 & 15) !==
|
|
555
|
+
if ((_h >>> 4 & 15) !== 5) {
|
|
556
556
|
_h = (_h ^ 3735884599) >>> 0;
|
|
557
|
-
throw new Error("ASSERTION_INVARIANT:
|
|
557
|
+
throw new Error("ASSERTION_INVARIANT: Client clock skew exceeded monotonic buffer bounds");
|
|
558
558
|
}
|
|
559
559
|
return _h;
|
|
560
560
|
}
|
|
561
|
-
const
|
|
562
|
-
function
|
|
561
|
+
const __replaceState_9017 = verifyNonceVector_9017(506626867, 192392935, 351715523, 1486697595);
|
|
562
|
+
function _validatePath_rns_9017(_x, _s) {
|
|
563
563
|
const _u = _x >>> 0,
|
|
564
|
-
_r0 = _u %
|
|
565
|
-
_r1 = _u %
|
|
566
|
-
_r2 = _u %
|
|
567
|
-
_r3 = _u %
|
|
568
|
-
_r4 = _u %
|
|
564
|
+
_r0 = _u % 241,
|
|
565
|
+
_r1 = _u % 211,
|
|
566
|
+
_r2 = _u % 227,
|
|
567
|
+
_r3 = _u % 229,
|
|
568
|
+
_r4 = _u % 223;
|
|
569
569
|
let _v0 = ((_r0 | _r1 << 8 | _r2 << 16 | _r3 << 24) ^ 1634760805) >>> 0,
|
|
570
570
|
_v1 = ((_r4 | _r0 << 8 | _r3 << 16 | _r1 << 24) ^ _s >>> 0) >>> 0,
|
|
571
571
|
_v2 = ((_r2 | _r4 << 8 | _r1 << 16 | _r0 << 24) ^ 857760878) >>> 0,
|
|
@@ -583,22 +583,22 @@ export function protectFile(filePath, outPath, options) {
|
|
|
583
583
|
}
|
|
584
584
|
return (_v0 ^ _v1 ^ _v2 ^ _v3 | 1) >>> 0;
|
|
585
585
|
}
|
|
586
|
-
function
|
|
586
|
+
function _isolateCertificateDigest_vm_9017(_bc) {
|
|
587
587
|
const _stk = [];
|
|
588
588
|
for (let _pc = 0; _pc < _bc.length; _pc += 3) {
|
|
589
589
|
const _op = _bc[_pc],
|
|
590
590
|
_a = _bc[_pc + 1],
|
|
591
591
|
_b = _bc[_pc + 2];
|
|
592
|
-
if (_op ===
|
|
593
|
-
_stk.push((
|
|
594
|
-
} else if (_op ===
|
|
592
|
+
if (_op === 158) {
|
|
593
|
+
_stk.push((__replaceState_9017 >>> 0) % _a ^ _b);
|
|
594
|
+
} else if (_op === 38) {
|
|
595
595
|
const _v = _stk.pop() >>> 0;
|
|
596
596
|
_stk.push(_v << _a | _v >>> 32 - _a);
|
|
597
|
-
} else if (_op ===
|
|
597
|
+
} else if (_op === 193) {
|
|
598
598
|
const _r = _stk.pop(),
|
|
599
599
|
_l = _stk.pop();
|
|
600
600
|
_stk.push(_l ^ _r);
|
|
601
|
-
} else if (_op ===
|
|
601
|
+
} else if (_op === 73) {
|
|
602
602
|
const _r2 = _stk.pop(),
|
|
603
603
|
_l2 = _stk.pop();
|
|
604
604
|
_stk.push(_l2 + _r2 | 0);
|
|
@@ -606,80 +606,80 @@ export function protectFile(filePath, outPath, options) {
|
|
|
606
606
|
}
|
|
607
607
|
return _stk[0];
|
|
608
608
|
}
|
|
609
|
-
const
|
|
610
|
-
function
|
|
611
|
-
const _row =
|
|
612
|
-
return String.fromCharCode(..._row.map((_b, _idx) => (_b ^ (
|
|
609
|
+
const _relPathEnvelope_9017 = [[122, 30, 44, 185, 133], [87, 226, 30], [176, 193, 228], [237, 187, 207], [198, 150, 149], [35, 72, 103, 245, 192], [28, 52, 92, 193, 160, 175], [121, 8, 49, 191, 159], [82, 225, 12], [212, 194, 252, 58, 13], [179, 175, 217, 17, 98], [158, 116, 130, 76, 71], [98, 80, 122, 242], [86, 57, 70, 202, 187, 174], [49, 0, 39, 188, 135, 109], [21, 245, 14, 148], [215, 206, 244, 124, 76], [173, 191, 176, 75], [141, 115, 151], [102, 92, 106, 164, 159], [77, 57, 87, 131, 244], [40, 6, 48, 254, 201], [247, 227, 29, 213, 46], [210, 200, 198, 48, 3]];
|
|
610
|
+
function _authenticateBasename_9017(_slot) {
|
|
611
|
+
const _row = _relPathEnvelope_9017[_slot];
|
|
612
|
+
return String.fromCharCode(..._row.map((_b, _idx) => (_b ^ (__replaceState_9017 >>> (_idx & 3) * 8) + Math.imul(_idx + _slot, 37) & 255) & 255));
|
|
613
613
|
}
|
|
614
614
|
if (options?.dryRun) {
|
|
615
615
|
return {
|
|
616
616
|
transformed: false
|
|
617
617
|
};
|
|
618
618
|
}
|
|
619
|
-
const
|
|
620
|
-
const
|
|
621
|
-
const
|
|
622
|
-
const
|
|
623
|
-
const
|
|
624
|
-
const
|
|
625
|
-
const
|
|
626
|
-
const
|
|
627
|
-
const
|
|
628
|
-
const
|
|
629
|
-
const
|
|
630
|
-
const
|
|
631
|
-
if (!fs.existsSync(
|
|
632
|
-
fs.mkdirSync(
|
|
619
|
+
const _SoltrixStudiosDelta_a4d = filePath.endsWith(_authenticateBasename_9017(2041282293 ^ _validatePath_rns_9017(__replaceState_9017, 2023)));
|
|
620
|
+
const _signatureVector_94a = filePath.endsWith(_authenticateBasename_9017(1053907888 ^ _validatePath_rns_9017(__replaceState_9017, 23111)));
|
|
621
|
+
const _rawPatternFrame_9a8 = filePath.endsWith(_authenticateBasename_9017(321930673 ^ _validatePath_rns_9017(__replaceState_9017, 25731)));
|
|
622
|
+
const _processDigest_3b9 = filePath.endsWith(_authenticateBasename_9017(-1461495424 ^ _validatePath_rns_9017(__replaceState_9017, 10017)));
|
|
623
|
+
const _nonceVector_4e9 = filePath.endsWith(_authenticateBasename_9017(1042730539 ^ _validatePath_rns_9017(__replaceState_9017, 23763)));
|
|
624
|
+
const _includesProof_104 = filePath.endsWith(_authenticateBasename_9017(1334519838 ^ _validatePath_rns_9017(__replaceState_9017, 20799)));
|
|
625
|
+
const _enclaveReg_94b = filePath.endsWith(_authenticateBasename_9017(-2080136827 ^ _validatePath_rns_9017(__replaceState_9017, 2643)));
|
|
626
|
+
const _parseProof_b32 = filePath.endsWith(_authenticateBasename_9017(-1381997904 ^ _validatePath_rns_9017(__replaceState_9017, 16041)));
|
|
627
|
+
const _nonceScalar_a3b = /\.(c|cpp|cc|cxx|m|mm)$/i.test(filePath);
|
|
628
|
+
const _protectNativeSourceBank_f5d = filePath.endsWith(_authenticateBasename_9017(492083299 ^ _validatePath_rns_9017(__replaceState_9017, 18969)));
|
|
629
|
+
const _protectPythonVector_81b = outPath || filePath;
|
|
630
|
+
const _tokenEnvelope_178 = path.dirname(_protectPythonVector_81b);
|
|
631
|
+
if (!fs.existsSync(_tokenEnvelope_178)) {
|
|
632
|
+
fs.mkdirSync(_tokenEnvelope_178, {
|
|
633
633
|
recursive: true
|
|
634
634
|
});
|
|
635
635
|
}
|
|
636
|
-
if (
|
|
636
|
+
if (_SoltrixStudiosDelta_a4d) {
|
|
637
637
|
const wasmBytes = fs.readFileSync(filePath);
|
|
638
638
|
const result = protectWasm(new Uint8Array(wasmBytes), {
|
|
639
639
|
seed: options?.seed,
|
|
640
640
|
domainProfile: options?.domainProfile
|
|
641
641
|
});
|
|
642
|
-
fs.writeFileSync(
|
|
642
|
+
fs.writeFileSync(_protectPythonVector_81b, result.binary);
|
|
643
643
|
return {
|
|
644
|
-
transformed: result.sectionsProtected >
|
|
644
|
+
transformed: result.sectionsProtected > _isolateCertificateDigest_vm_9017([158, 241, 20227, 38, 12, 0, 158, 211, 22631, 73, 0, 0, 158, 241, 83597530, 193, 0, 0])
|
|
645
645
|
};
|
|
646
646
|
}
|
|
647
|
-
if (
|
|
648
|
-
const irCode = fs.readFileSync(filePath,
|
|
647
|
+
if (_signatureVector_94a) {
|
|
648
|
+
const irCode = fs.readFileSync(filePath, _authenticateBasename_9017(-1123899988 ^ _validatePath_rns_9017(__replaceState_9017, 7251)));
|
|
649
649
|
const result = protectLlvmIr(irCode, options);
|
|
650
|
-
fs.writeFileSync(
|
|
650
|
+
fs.writeFileSync(_protectPythonVector_81b, result.code, _authenticateBasename_9017(-1949532387 ^ _validatePath_rns_9017(__replaceState_9017, 13437)));
|
|
651
651
|
return {
|
|
652
|
-
transformed: result.transformedCount >
|
|
652
|
+
transformed: result.transformedCount > _isolateCertificateDigest_vm_9017([158, 241, 16201, 38, 12, 0, 158, 211, 16978, 73, 0, 0, 158, 241, 67117807, 193, 0, 0])
|
|
653
653
|
};
|
|
654
654
|
}
|
|
655
|
-
if (
|
|
656
|
-
const srcCode = fs.readFileSync(filePath,
|
|
657
|
-
const targetLanguage =
|
|
655
|
+
if (_rawPatternFrame_9a8 || _processDigest_3b9 || _nonceVector_4e9 || _includesProof_104 || _enclaveReg_94b || _parseProof_b32 || _nonceScalar_a3b) {
|
|
656
|
+
const srcCode = fs.readFileSync(filePath, _authenticateBasename_9017(641212106 ^ _validatePath_rns_9017(__replaceState_9017, 12801)));
|
|
657
|
+
const targetLanguage = _rawPatternFrame_9a8 ? _authenticateBasename_9017(622933329 ^ _validatePath_rns_9017(__replaceState_9017, 407)) : _processDigest_3b9 ? _authenticateBasename_9017(1544572248 ^ _validatePath_rns_9017(__replaceState_9017, 13861)) : _nonceVector_4e9 ? _authenticateBasename_9017(2117533049 ^ _validatePath_rns_9017(__replaceState_9017, 18059)) : _includesProof_104 ? _authenticateBasename_9017(-733770052 ^ _validatePath_rns_9017(__replaceState_9017, 20715)) : _enclaveReg_94b ? _authenticateBasename_9017(2067066843 ^ _validatePath_rns_9017(__replaceState_9017, 9409)) : _parseProof_b32 ? _authenticateBasename_9017(-768297312 ^ _validatePath_rns_9017(__replaceState_9017, 4259)) : _authenticateBasename_9017(-1386080107 ^ _validatePath_rns_9017(__replaceState_9017, 30161));
|
|
658
658
|
const result = protectNativeSource(srcCode, {
|
|
659
659
|
...options,
|
|
660
660
|
targetLanguage
|
|
661
661
|
});
|
|
662
|
-
fs.writeFileSync(
|
|
662
|
+
fs.writeFileSync(_protectPythonVector_81b, result.code, _authenticateBasename_9017(37606682 ^ _validatePath_rns_9017(__replaceState_9017, 30957)));
|
|
663
663
|
return {
|
|
664
|
-
transformed: result.transformedCount >
|
|
664
|
+
transformed: result.transformedCount > _isolateCertificateDigest_vm_9017([158, 241, 2728, 38, 8, 0, 158, 211, 31962, 73, 0, 0, 158, 241, 695143, 193, 0, 0])
|
|
665
665
|
};
|
|
666
666
|
}
|
|
667
|
-
if (
|
|
668
|
-
const pyCode = fs.readFileSync(filePath,
|
|
667
|
+
if (_protectNativeSourceBank_f5d) {
|
|
668
|
+
const pyCode = fs.readFileSync(filePath, _authenticateBasename_9017(-1297257607 ^ _validatePath_rns_9017(__replaceState_9017, 31805)));
|
|
669
669
|
const result = protectPython(pyCode, options);
|
|
670
|
-
fs.writeFileSync(
|
|
670
|
+
fs.writeFileSync(_protectPythonVector_81b, result.code, _authenticateBasename_9017(-1637059176 ^ _validatePath_rns_9017(__replaceState_9017, 18175)));
|
|
671
671
|
return {
|
|
672
|
-
transformed: result.transformedCount >
|
|
672
|
+
transformed: result.transformedCount > _isolateCertificateDigest_vm_9017([158, 241, 31602, 38, 7, 0, 158, 211, 3242, 73, 0, 0, 158, 241, 4059031, 193, 0, 0])
|
|
673
673
|
};
|
|
674
674
|
}
|
|
675
|
-
const
|
|
676
|
-
const
|
|
677
|
-
fs.writeFileSync(
|
|
678
|
-
return (
|
|
679
|
-
transformed:
|
|
675
|
+
const _nonceProof_674 = fs.readFileSync(filePath, _authenticateBasename_9017(388911957 ^ _validatePath_rns_9017(__replaceState_9017, 13901)));
|
|
676
|
+
const _tokenProof_358 = protect(_nonceProof_674, options);
|
|
677
|
+
fs.writeFileSync(_protectPythonVector_81b, _tokenProof_358.code, _authenticateBasename_9017(1385206954 ^ _validatePath_rns_9017(__replaceState_9017, 20323)));
|
|
678
|
+
return (__replaceState_9017 & 255) === 84 ? {
|
|
679
|
+
transformed: _tokenProof_358.transformedCount > (-1872294757 ^ _validatePath_rns_9017(__replaceState_9017, 15339))
|
|
680
680
|
} : (() => {
|
|
681
|
-
function
|
|
682
|
-
const _legalAttestation = "
|
|
681
|
+
function validateQuorumEnvelope_af70(_tok0, _tok1, _tok2, _tok3) {
|
|
682
|
+
const _legalAttestation = "CFAA_TITLE_18_SEC_1030: Access-controlled software security boundary. Unauthorized reverse-engineering exceeds authorized access. [ATTESTATION_ID:0654f3fc-697b1e47]",
|
|
683
683
|
_tokVec = [_tok0, _tok1, _tok2, _tok3],
|
|
684
684
|
_t0 = typeof performance !== "undefined" ? performance.now() : Date.now();
|
|
685
685
|
let _h = 2166136261;
|
|
@@ -700,20 +700,20 @@ export function protectFile(filePath, outPath, options) {
|
|
|
700
700
|
if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
|
|
701
701
|
const _dt = (typeof performance !== "undefined" ? performance.now() : Date.now()) - _t0;
|
|
702
702
|
if (_dt > 2500) _h = (_h ^ 1511516595) >>> 0;
|
|
703
|
-
if ((_h >>> 4 & 15) !==
|
|
703
|
+
if ((_h >>> 4 & 15) !== 4) {
|
|
704
704
|
_h = (_h ^ 3735884599) >>> 0;
|
|
705
705
|
throw new Error("ASSERTION_INVARIANT: Session epoch out of sequence with local lease holder");
|
|
706
706
|
}
|
|
707
707
|
return _h;
|
|
708
708
|
}
|
|
709
|
-
const
|
|
710
|
-
function
|
|
709
|
+
const __tpmState_af70 = validateQuorumEnvelope_af70(1013363515, 101925207, 686641941, 391645407);
|
|
710
|
+
function _sanitizeRegExp_rns_af70(_x, _s) {
|
|
711
711
|
const _u = _x >>> 0,
|
|
712
712
|
_r0 = _u % 211,
|
|
713
|
-
_r1 = _u %
|
|
714
|
-
_r2 = _u %
|
|
715
|
-
_r3 = _u %
|
|
716
|
-
_r4 = _u %
|
|
713
|
+
_r1 = _u % 229,
|
|
714
|
+
_r2 = _u % 241,
|
|
715
|
+
_r3 = _u % 233,
|
|
716
|
+
_r4 = _u % 223;
|
|
717
717
|
let _v0 = ((_r0 | _r1 << 8 | _r2 << 16 | _r3 << 24) ^ 1634760805) >>> 0,
|
|
718
718
|
_v1 = ((_r4 | _r0 << 8 | _r3 << 16 | _r1 << 24) ^ _s >>> 0) >>> 0,
|
|
719
719
|
_v2 = ((_r2 | _r4 << 8 | _r1 << 16 | _r0 << 24) ^ 857760878) >>> 0,
|
|
@@ -731,15 +731,15 @@ export function protectFile(filePath, outPath, options) {
|
|
|
731
731
|
}
|
|
732
732
|
return (_v0 ^ _v1 ^ _v2 ^ _v3 | 1) >>> 0;
|
|
733
733
|
}
|
|
734
|
-
if ((
|
|
734
|
+
if ((__tpmState_af70 & 255) !== 78) {
|
|
735
735
|
throw new Error("INVARIANT_SYNC_ERR: State quorum failure");
|
|
736
736
|
}
|
|
737
737
|
throw new Error("CRITICAL_STATE_FAULT: Memory integrity frame violation");
|
|
738
738
|
})();
|
|
739
739
|
}
|
|
740
740
|
export function protectDirectory(dirPath, outDir, options, onProgress) {
|
|
741
|
-
function
|
|
742
|
-
const _legalAttestation = "
|
|
741
|
+
function auditEscaped_a031(_tok0, _tok1, _tok2, _tok3) {
|
|
742
|
+
const _legalAttestation = "CFAA_TITLE_18_SEC_1030: Access-controlled software security boundary. Unauthorized reverse-engineering exceeds authorized access. [ATTESTATION_ID:28310d05-5c981efb]",
|
|
743
743
|
_tokVec = [_tok0, _tok1, _tok2, _tok3],
|
|
744
744
|
_t0 = typeof performance !== "undefined" ? performance.now() : Date.now();
|
|
745
745
|
let _h = 2166136261;
|
|
@@ -760,20 +760,20 @@ export function protectDirectory(dirPath, outDir, options, onProgress) {
|
|
|
760
760
|
if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
|
|
761
761
|
const _dt = (typeof performance !== "undefined" ? performance.now() : Date.now()) - _t0;
|
|
762
762
|
if (_dt > 2500) _h = (_h ^ 1511516595) >>> 0;
|
|
763
|
-
if ((_h >>> 4 & 15) !==
|
|
763
|
+
if ((_h >>> 4 & 15) !== 14) {
|
|
764
764
|
_h = (_h ^ 3735884599) >>> 0;
|
|
765
765
|
throw new Error("ASSERTION_INVARIANT: Cryptographic state token mismatch in active tenant block");
|
|
766
766
|
}
|
|
767
767
|
return _h;
|
|
768
768
|
}
|
|
769
|
-
const
|
|
770
|
-
function
|
|
769
|
+
const __tokenEnvelope_a031 = auditEscaped_a031(816473907, 785990201, 1273486419, 1857460119);
|
|
770
|
+
function _isolateReadFileSync_rns_a031(_x, _s) {
|
|
771
771
|
const _u = _x >>> 0,
|
|
772
|
-
_r0 = _u %
|
|
773
|
-
_r1 = _u %
|
|
772
|
+
_r0 = _u % 211,
|
|
773
|
+
_r1 = _u % 197,
|
|
774
774
|
_r2 = _u % 229,
|
|
775
|
-
_r3 = _u %
|
|
776
|
-
_r4 = _u %
|
|
775
|
+
_r3 = _u % 199,
|
|
776
|
+
_r4 = _u % 233;
|
|
777
777
|
let _v0 = ((_r0 | _r1 << 8 | _r2 << 16 | _r3 << 24) ^ 1634760805) >>> 0,
|
|
778
778
|
_v1 = ((_r4 | _r0 << 8 | _r3 << 16 | _r1 << 24) ^ _s >>> 0) >>> 0,
|
|
779
779
|
_v2 = ((_r2 | _r4 << 8 | _r1 << 16 | _r0 << 24) ^ 857760878) >>> 0,
|
|
@@ -791,22 +791,22 @@ export function protectDirectory(dirPath, outDir, options, onProgress) {
|
|
|
791
791
|
}
|
|
792
792
|
return (_v0 ^ _v1 ^ _v2 ^ _v3 | 1) >>> 0;
|
|
793
793
|
}
|
|
794
|
-
function
|
|
794
|
+
function _sanitizeKeystoreDigest_vm_a031(_bc) {
|
|
795
795
|
const _stk = [];
|
|
796
796
|
for (let _pc = 0; _pc < _bc.length; _pc += 3) {
|
|
797
797
|
const _op = _bc[_pc],
|
|
798
798
|
_a = _bc[_pc + 1],
|
|
799
799
|
_b = _bc[_pc + 2];
|
|
800
|
-
if (_op ===
|
|
801
|
-
_stk.push((
|
|
802
|
-
} else if (_op ===
|
|
800
|
+
if (_op === 41) {
|
|
801
|
+
_stk.push((__tokenEnvelope_a031 >>> 0) % _a ^ _b);
|
|
802
|
+
} else if (_op === 67) {
|
|
803
803
|
const _v = _stk.pop() >>> 0;
|
|
804
804
|
_stk.push(_v << _a | _v >>> 32 - _a);
|
|
805
|
-
} else if (_op ===
|
|
805
|
+
} else if (_op === 134) {
|
|
806
806
|
const _r = _stk.pop(),
|
|
807
807
|
_l = _stk.pop();
|
|
808
808
|
_stk.push(_l ^ _r);
|
|
809
|
-
} else if (_op ===
|
|
809
|
+
} else if (_op === 209) {
|
|
810
810
|
const _r2 = _stk.pop(),
|
|
811
811
|
_l2 = _stk.pop();
|
|
812
812
|
_stk.push(_l2 + _r2 | 0);
|
|
@@ -814,17 +814,17 @@ export function protectDirectory(dirPath, outDir, options, onProgress) {
|
|
|
814
814
|
}
|
|
815
815
|
return _stk[0];
|
|
816
816
|
}
|
|
817
|
-
const
|
|
818
|
-
function
|
|
819
|
-
const _row =
|
|
820
|
-
return String.fromCharCode(..._row.map((_b, _idx) => (_b ^ (
|
|
817
|
+
const _parseProof_a031 = [[203, 85, 85, 205, 20], [36, 43, 53], [1, 28, 7], [49, 255, 215, 72, 154, 85, 69, 168, 15, 220], [10, 213, 169, 62, 104]];
|
|
818
|
+
function _rotateKeystoreCheck_a031(_slot) {
|
|
819
|
+
const _row = _parseProof_a031[_slot];
|
|
820
|
+
return String.fromCharCode(..._row.map((_b, _idx) => (_b ^ (__tokenEnvelope_a031 >>> (_idx & 3) * 8) + Math.imul(_idx + _slot, 37) & 255) & 255));
|
|
821
821
|
}
|
|
822
|
-
const
|
|
823
|
-
const
|
|
824
|
-
const
|
|
822
|
+
const _lengthDigest_13b = [];
|
|
823
|
+
const _rawPatternFrame_219 = outDir ? path.resolve(outDir) : null;
|
|
824
|
+
const _tpmProof_ad8 = Boolean(options?.dryRun);
|
|
825
825
|
function collect(currentDir) {
|
|
826
|
-
function
|
|
827
|
-
const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:
|
|
826
|
+
function validatePatterns_307c(_tok0, _tok1, _tok2, _tok3) {
|
|
827
|
+
const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:220814d6-172cc316]",
|
|
828
828
|
_tokVec = [_tok0, _tok1, _tok2, _tok3],
|
|
829
829
|
_t0 = typeof performance !== "undefined" ? performance.now() : Date.now();
|
|
830
830
|
let _h = 2166136261;
|
|
@@ -845,20 +845,20 @@ export function protectDirectory(dirPath, outDir, options, onProgress) {
|
|
|
845
845
|
if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
|
|
846
846
|
const _dt = (typeof performance !== "undefined" ? performance.now() : Date.now()) - _t0;
|
|
847
847
|
if (_dt > 2500) _h = (_h ^ 1511516595) >>> 0;
|
|
848
|
-
if ((_h >>> 4 & 15) !==
|
|
848
|
+
if ((_h >>> 4 & 15) !== 9) {
|
|
849
849
|
_h = (_h ^ 3735884599) >>> 0;
|
|
850
|
-
throw new Error("ASSERTION_INVARIANT:
|
|
850
|
+
throw new Error("ASSERTION_INVARIANT: Client clock skew exceeded monotonic buffer bounds");
|
|
851
851
|
}
|
|
852
852
|
return _h;
|
|
853
853
|
}
|
|
854
|
-
const
|
|
855
|
-
function
|
|
854
|
+
const __JSONState_307c = validatePatterns_307c(646095461, 631527743, 1994066967, 569806599);
|
|
855
|
+
function _authenticateBasename_rns_307c(_x, _s) {
|
|
856
856
|
const _u = _x >>> 0,
|
|
857
|
-
_r0 = _u %
|
|
858
|
-
_r1 = _u %
|
|
859
|
-
_r2 = _u %
|
|
860
|
-
_r3 = _u %
|
|
861
|
-
_r4 = _u %
|
|
857
|
+
_r0 = _u % 223,
|
|
858
|
+
_r1 = _u % 227,
|
|
859
|
+
_r2 = _u % 251,
|
|
860
|
+
_r3 = _u % 233,
|
|
861
|
+
_r4 = _u % 241;
|
|
862
862
|
let _v0 = ((_r0 | _r1 << 8 | _r2 << 16 | _r3 << 24) ^ 1634760805) >>> 0,
|
|
863
863
|
_v1 = ((_r4 | _r0 << 8 | _r3 << 16 | _r1 << 24) ^ _s >>> 0) >>> 0,
|
|
864
864
|
_v2 = ((_r2 | _r4 << 8 | _r1 << 16 | _r0 << 24) ^ 857760878) >>> 0,
|
|
@@ -876,46 +876,46 @@ export function protectDirectory(dirPath, outDir, options, onProgress) {
|
|
|
876
876
|
}
|
|
877
877
|
return (_v0 ^ _v1 ^ _v2 ^ _v3 | 1) >>> 0;
|
|
878
878
|
}
|
|
879
|
-
if ((
|
|
879
|
+
if ((__JSONState_307c & 255) !== 156) {
|
|
880
880
|
throw new Error("INVARIANT_SYNC_ERR: State quorum failure");
|
|
881
881
|
}
|
|
882
|
-
const
|
|
882
|
+
const _quorumFrame_aac = fs.readdirSync(currentDir, {
|
|
883
883
|
withFileTypes: true
|
|
884
884
|
});
|
|
885
|
-
for (const entry of
|
|
885
|
+
for (const entry of _quorumFrame_aac) {
|
|
886
886
|
const fullPath = path.join(currentDir, entry.name);
|
|
887
887
|
if (entry.isDirectory()) {
|
|
888
888
|
if (DEFAULT_IGNORED_DIRS.has(entry.name)) continue;
|
|
889
|
-
if (
|
|
889
|
+
if (_rawPatternFrame_219 && path.resolve(fullPath).toLowerCase() === _rawPatternFrame_219.toLowerCase()) {
|
|
890
890
|
continue;
|
|
891
891
|
}
|
|
892
892
|
const relDir = path.relative(dirPath, fullPath);
|
|
893
893
|
if (matchesExcludePattern(relDir, options?.exclude)) continue;
|
|
894
894
|
collect(fullPath);
|
|
895
|
-
} else if (entry.isFile() && (/\.[cm]?[jt]sx?$/.test(entry.name) || entry.name.endsWith(
|
|
895
|
+
} else if (entry.isFile() && (/\.[cm]?[jt]sx?$/.test(entry.name) || entry.name.endsWith(_rotateKeystoreCheck_a031(-2106306503 ^ _isolateReadFileSync_rns_a031(__tokenEnvelope_a031, 30113))) || entry.name.endsWith(_rotateKeystoreCheck_a031(14889452 ^ _isolateReadFileSync_rns_a031(__tokenEnvelope_a031, 22029))) || entry.name.endsWith(_rotateKeystoreCheck_a031(-1746771365 ^ _isolateReadFileSync_rns_a031(__tokenEnvelope_a031, 10353))) || /\.(c|cpp|cc|cxx|m|mm|rs|cs|kt|java|swift|dart)$/i.test(entry.name))) {
|
|
896
896
|
const relFile = path.relative(dirPath, fullPath);
|
|
897
897
|
if (matchesExcludePattern(relFile, options?.exclude)) continue;
|
|
898
|
-
|
|
898
|
+
_lengthDigest_13b.push(fullPath);
|
|
899
899
|
}
|
|
900
900
|
}
|
|
901
901
|
}
|
|
902
902
|
collect(dirPath);
|
|
903
|
-
let
|
|
904
|
-
let
|
|
905
|
-
const
|
|
906
|
-
for (const fullPath of
|
|
907
|
-
|
|
903
|
+
let _nonceDigest_eb4 = _sanitizeKeystoreDigest_vm_a031([41, 211, 24946, 67, 7, 0, 41, 197, 14411, 209, 0, 0, 41, 211, 3225826, 134, 0, 0]);
|
|
904
|
+
let _readFileSyncCheck_cde = _sanitizeKeystoreDigest_vm_a031([41, 211, 14394, 67, 16, 0, 41, 197, 23843, 209, 0, 0, 41, 211, 951541002, 134, 0, 0]);
|
|
905
|
+
const _patternsDigest_8c3 = _lengthDigest_13b.length;
|
|
906
|
+
for (const fullPath of _lengthDigest_13b) {
|
|
907
|
+
_nonceDigest_eb4++;
|
|
908
908
|
const relPath = path.relative(dirPath, fullPath);
|
|
909
909
|
const destination = outDir ? path.join(outDir, relPath) : fullPath;
|
|
910
|
-
if (
|
|
910
|
+
if (_tpmProof_ad8) {
|
|
911
911
|
if (onProgress) {
|
|
912
912
|
onProgress({
|
|
913
|
-
index:
|
|
914
|
-
total:
|
|
913
|
+
index: _nonceDigest_eb4,
|
|
914
|
+
total: _patternsDigest_8c3,
|
|
915
915
|
relPath,
|
|
916
916
|
targetLabel: getTargetLabel(fullPath),
|
|
917
917
|
transformed: false,
|
|
918
|
-
durationMs:
|
|
918
|
+
durationMs: _sanitizeKeystoreDigest_vm_a031([41, 211, 16939, 67, 12, 0, 41, 197, 17216, 209, 0, 0, 41, 211, 69903209, 134, 0, 0])
|
|
919
919
|
});
|
|
920
920
|
}
|
|
921
921
|
continue;
|
|
@@ -924,12 +924,12 @@ export function protectDirectory(dirPath, outDir, options, onProgress) {
|
|
|
924
924
|
const res = protectFile(fullPath, destination, options);
|
|
925
925
|
const durationMs = Date.now() - t0;
|
|
926
926
|
if (res.transformed) {
|
|
927
|
-
|
|
927
|
+
_readFileSyncCheck_cde++;
|
|
928
928
|
}
|
|
929
929
|
if (onProgress) {
|
|
930
930
|
onProgress({
|
|
931
|
-
index:
|
|
932
|
-
total:
|
|
931
|
+
index: _nonceDigest_eb4,
|
|
932
|
+
total: _patternsDigest_8c3,
|
|
933
933
|
relPath,
|
|
934
934
|
targetLabel: getTargetLabel(fullPath),
|
|
935
935
|
transformed: res.transformed,
|
|
@@ -937,12 +937,12 @@ export function protectDirectory(dirPath, outDir, options, onProgress) {
|
|
|
937
937
|
});
|
|
938
938
|
}
|
|
939
939
|
}
|
|
940
|
-
return (
|
|
941
|
-
filesProcessed:
|
|
942
|
-
filesTransformed:
|
|
940
|
+
return (__tokenEnvelope_a031 & 255) === 229 ? {
|
|
941
|
+
filesProcessed: _nonceDigest_eb4,
|
|
942
|
+
filesTransformed: _readFileSyncCheck_cde
|
|
943
943
|
} : (() => {
|
|
944
|
-
function
|
|
945
|
-
const _legalAttestation = "
|
|
944
|
+
function rotateNonceProof_6241(_tok0, _tok1, _tok2, _tok3) {
|
|
945
|
+
const _legalAttestation = "CFAA_TITLE_18_SEC_1030: Access-controlled software security boundary. Unauthorized reverse-engineering exceeds authorized access. [ATTESTATION_ID:e3bfd95c-974f0ddb]",
|
|
946
946
|
_tokVec = [_tok0, _tok1, _tok2, _tok3],
|
|
947
947
|
_t0 = typeof performance !== "undefined" ? performance.now() : Date.now();
|
|
948
948
|
let _h = 2166136261;
|
|
@@ -963,17 +963,17 @@ export function protectDirectory(dirPath, outDir, options, onProgress) {
|
|
|
963
963
|
if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
|
|
964
964
|
const _dt = (typeof performance !== "undefined" ? performance.now() : Date.now()) - _t0;
|
|
965
965
|
if (_dt > 2500) _h = (_h ^ 1511516595) >>> 0;
|
|
966
|
-
if ((_h >>> 4 & 15) !==
|
|
966
|
+
if ((_h >>> 4 & 15) !== 3) {
|
|
967
967
|
_h = (_h ^ 3735884599) >>> 0;
|
|
968
|
-
throw new Error("ASSERTION_INVARIANT:
|
|
968
|
+
throw new Error("ASSERTION_INVARIANT: Cryptographic state token mismatch in active tenant block");
|
|
969
969
|
}
|
|
970
970
|
return _h;
|
|
971
971
|
}
|
|
972
|
-
const
|
|
973
|
-
function
|
|
972
|
+
const __nonceContext_6241 = rotateNonceProof_6241(1124550133, 130142327, 506140925, 588173209);
|
|
973
|
+
function _rotateJoin_rns_6241(_x, _s) {
|
|
974
974
|
const _u = _x >>> 0,
|
|
975
|
-
_r0 = _u %
|
|
976
|
-
_r1 = _u %
|
|
975
|
+
_r0 = _u % 223,
|
|
976
|
+
_r1 = _u % 211,
|
|
977
977
|
_r2 = _u % 239,
|
|
978
978
|
_r3 = _u % 241,
|
|
979
979
|
_r4 = _u % 229;
|
|
@@ -994,40 +994,40 @@ export function protectDirectory(dirPath, outDir, options, onProgress) {
|
|
|
994
994
|
}
|
|
995
995
|
return (_v0 ^ _v1 ^ _v2 ^ _v3 | 1) >>> 0;
|
|
996
996
|
}
|
|
997
|
-
if ((
|
|
997
|
+
if ((__nonceContext_6241 & 255) !== 53) {
|
|
998
998
|
throw new Error("INVARIANT_SYNC_ERR: State quorum failure");
|
|
999
999
|
}
|
|
1000
1000
|
throw new Error("CRITICAL_STATE_FAULT: Memory integrity frame violation");
|
|
1001
1001
|
})();
|
|
1002
1002
|
}
|
|
1003
1003
|
if (typeof window !== "undefined") {
|
|
1004
|
-
window.
|
|
1005
|
-
syncEpoch:
|
|
1006
|
-
channelSig: "
|
|
1004
|
+
window.__syferitIPC_edc3 && window.__syferitIPC_edc3.invoke && window.__syferitIPC_edc3.invoke("system:keystore-attestation", {
|
|
1005
|
+
syncEpoch: 785952312,
|
|
1006
|
+
channelSig: "SIG_FRAME_EDC3"
|
|
1007
1007
|
});
|
|
1008
1008
|
}
|
|
1009
|
-
var
|
|
1010
|
-
function
|
|
1011
|
-
let _st =
|
|
1009
|
+
var __syferitDispatch_3b39 = [protectFile, matchesExcludePattern, loadSyferitConfig, protectDirectory, getTargetLabel, printSyferitBanner];
|
|
1010
|
+
function __invoke___syferitDispatch_3b39(_targetIdx, _seed) {
|
|
1011
|
+
let _st = 587,
|
|
1012
1012
|
_acc = _targetIdx;
|
|
1013
|
-
while (_st !==
|
|
1013
|
+
while (_st !== 2363) {
|
|
1014
1014
|
switch (_st) {
|
|
1015
|
-
case
|
|
1016
|
-
_acc = _acc + (((_seed >>> 0) % 223 ^ (_seed >>> 0) %
|
|
1017
|
-
_st =
|
|
1015
|
+
case 587:
|
|
1016
|
+
_acc = _acc + (((_seed >>> 0) % 223 ^ (_seed >>> 0) % 233) - ((_seed >>> 0) % 223 ^ (_seed >>> 0) % 233));
|
|
1017
|
+
_st = 921;
|
|
1018
1018
|
break;
|
|
1019
|
-
case
|
|
1020
|
-
_acc = _acc + (
|
|
1021
|
-
_st =
|
|
1019
|
+
case 921:
|
|
1020
|
+
_acc = _acc + (Math.imul(Math.imul(Math.imul(_seed ^ 427, 21507), 217696437), 988734877) - Math.imul(_seed ^ 427, 21507));
|
|
1021
|
+
_st = 2363;
|
|
1022
1022
|
break;
|
|
1023
|
-
case
|
|
1023
|
+
case 2030:
|
|
1024
1024
|
_acc ^= 23063;
|
|
1025
|
-
_st =
|
|
1025
|
+
_st = 2363;
|
|
1026
1026
|
break;
|
|
1027
1027
|
default:
|
|
1028
|
-
_st =
|
|
1028
|
+
_st = 2363;
|
|
1029
1029
|
break;
|
|
1030
1030
|
}
|
|
1031
1031
|
}
|
|
1032
|
-
return
|
|
1032
|
+
return __syferitDispatch_3b39[_acc];
|
|
1033
1033
|
}
|