MCPcopy Index your code
hub / github.com/APKLab/APKLab / generateGadgetName

Function generateGadgetName

src/tools/frida.ts:475–478  ·  view source on GitHub ↗

* Generate a random plausible-looking Android library name. * Returns just the base name (without lib prefix or .so suffix). * e.g. "hdprocess", "nativebridge", "artcompiler"

()

Source from the content-addressed store, hash-verified

473 * e.g. "hdprocess", "nativebridge", "artcompiler"
474 */
475function generateGadgetName(): string {
476 const hex = crypto.randomBytes(4).toString("hex");
477 return `ndk_${hex}`;
478}
479
480/**
481 * Patch a smali file to load a native library in onCreate.

Callers 2

injectGadgetFunction · 0.85
frida.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected