Lines 1-40javascript
1import { createProxyServer } from "./libs/httpxy.mjs";
2import { createRequire } from "node:module";
3import { fileURLToPath, pathToFileURL } from "node:url";
4import { createReadStream, readFileSync, readdirSync, unlinkSync } from "node:fs";
5import { fork } from "node:child_process";
6import { randomBytes, randomUUID } from "node:crypto";
HighChild Process
Package source references child process execution.
dist/_chunks/server.mjsView on unpkg · L4 7import { createServer } from "node:http";
8import { extname, join, normalize, sep } from "node:path";
9import { stat } from "node:fs/promises";
10import { loadCode } from "#code";
11var __defProp = Object.defineProperty;
12var __exportAll = (all, no_symbols) => {
14 for (var name in all) __defProp(target, name, {
18 if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
21var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
22if (process.platform === "android") {
MediumDynamic Require
Package source references dynamic require/import behavior.
dist/_chunks/server.mjsView on unpkg · L20 23 if (process.execPath.includes("linker64") || process.execPath.startsWith("/apex/")) {
24 const resolved = process.env.TERMUX_EXEC__PROC_SELF_EXE || "/data/data/com.termux/files/usr/bin/node";
25 Object.defineProperty(process, "execPath", {
HighCross File Remote Execution Context
Source spawns a local helper that also contains network and dynamic execution context; review data flow before blocking.
dist/_chunks/server.mjsView on unpkg · L4 32 const preload = `--require "${fileURLToPath(import.meta.resolve("#android-preload"))}"`;
33 process.env.NODE_OPTIONS = process.env.NODE_OPTIONS ? `${process.env.NODE_OPTIONS} ${preload}` : preload;
34 const _fs = process.getBuiltinModule?.("fs") ?? __require("node:fs");
35 const { syncBuiltinESMExports: _syncESM } = process.getBuiltinModule?.("module") ?? __require("node:module");
36 const TERMUX_EXEC_LIB = "/data/data/com.termux/files/usr/lib/libtermux-exec.so";
38 _fs.accessSync(TERMUX_EXEC_LIB);
39 const _cp = process.getBuiltinModule?.("child_process") ?? __require("node:child_process");
40 const _injectLdPreload = (opts) => {