Skip to content

macOS 15.3.1 [Error: Unable to find executable at '/usr/bin/ls'] #109

@eric-gitta-moore

Description

@eric-gitta-moore

macOS 15.3.1 [Error: Unable to find executable at '/usr/bin/ls']

const frida = require("frida");
const fs = require("fs");
const path = require("path");

async function run() {
  const device = await frida.getLocalDevice();
  const session = await device.spawn([
    "/bin/ls",
  ]);

  const script = await session.createScript(
    fs.readFileSync(path.join(__dirname, "frida-script.js"), "utf-8"),
    { runtime: "v8" }
  );
  script.enableDebugger();
  script.load();
}
run();

but frida -l frida-srcipt.js -f /usr/bin/ls is ok

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions