When using the latest version of frida-compile to compile frida-fs on Windows 11, I noticed that Process.platform is incorrectly compiled to "windows". This causes platform detection issues within Frida scripts that rely on distinguishing between windows and linux.
On frida-fs/dist/index.js
var _ReadStream_input, _ReadStream_readRequest, _WriteStream_output, _WriteStream_writeRequest;
import { Buffer } from "buffer";
import fsPath from "path";
import process from "process";
import stream from "stream";
const getWindowsApi = memoize(_getWindowsApi);
const getPosixApi = memoize(_getPosixApi);
const platform = Process.platform;
const pointerSize = Process.pointerSize;
const isWindows = platform === "windows";
frida-compile compile:
var _ReadStream_input, _ReadStream_readRequest, _WriteStream_output, _WriteStream_writeRequest;
import { Buffer } from "buffer";
import fsPath from "path";
import process from "process";
import stream from "stream";
const getWindowsApi = memoize(_getWindowsApi);
const getPosixApi = memoize(_getPosixApi);
const platform = 'windows';
const pointerSize = 8;
const isWindows = platform === "windows";
When using the latest version of frida-compile to compile frida-fs on Windows 11, I noticed that Process.platform is incorrectly compiled to "windows". This causes platform detection issues within Frida scripts that rely on distinguishing between windows and linux.
On frida-fs/dist/index.js
frida-compile compile: