This commit is contained in:
2025-06-19 14:17:26 +08:00
parent 4e35876dca
commit 0212cba6f3
2 changed files with 13 additions and 19 deletions

View File

@@ -1,9 +1,3 @@
import { log } from "./logger"; // 第一种 import { log } from "./logger"; // 第一种
const listModules = () => { log("Hello Frida!")
Process.enumerateModules().forEach(item => log(JSON.stringify(item,null, 2)))
}
(globalThis as any).listModules = listModules;
listModules()

View File

@@ -1,14 +1,14 @@
{ {
"compilerOptions": { "compilerOptions": {
"target": "es2022", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ "target": "ES2022",
"module": "commonjs", /* Specify what module code is generated. */ "lib": ["ES2022"],
"rootDir": "./src", /* Specify the root folder within your source files. */ "module": "Node16",
"outDir": "./dist", /* Specify an output folder for all emitted files. */ "strict": true,
"esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */ "noEmit": true
"forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
"strict": true, /* Enable all strict type-checking options. */
"skipLibCheck": true /* Skip type checking all .d.ts files. */
}, },
"include": ["src/**/*"], /* Include all files in the 'src' directory */ "include": ["src/**/*"] /* Include all files in the 'src' directory */,
"exclude": ["node_modules", "dist"] /* Exclude the 'node_modules' and 'dist' directories */ "exclude": [
} "node_modules",
"dist"
] /* Exclude the 'node_modules' and 'dist' directories */
}