Skip to content

Commit 51993c8

Browse files
committed
chore: add warning when using frida server mode
1 parent 2952684 commit 51993c8

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

src/server/utils/frida.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import { libraryFile, resourceFile, resourcesDir, safeFileExists } from "@server
1111
import Logger from "@shared/logger";
1212
import { DEFAULT_UPLOAD_FOLDER, RESOURCES } from "@server/config";
1313
import { ManagerSingleton } from "@server/manager";
14+
import { sleep } from "@shared/helpers";
1415

1516
const require = createRequire(import.meta.url);
1617

@@ -108,6 +109,17 @@ export const loadFridaLibrary = async (): Promise<FridaLibrary> => {
108109
};
109110

110111
export const setupFrida = async () => {
112+
Logger.warn(`
113+
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
114+
┃ Frida Server mode is enabled ┃
115+
┃ ┃
116+
┃ This mode is powerful, but less isolated than Gadget mode. ┃
117+
┃ Make sure you understand the security implications before ┃
118+
┃ continuing. Use it only on devices and environments you trust. ┃
119+
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
120+
`);
121+
await sleep(5000);
122+
111123
Logger.info("Downloading Frida Server for the attached device");
112124
const singleton = ManagerSingleton.getInstance();
113125
const adb = await singleton.getAdb();

0 commit comments

Comments
 (0)