Skip to content

Commit

Permalink
Add clearer logs about Frida events
Browse files Browse the repository at this point in the history
  • Loading branch information
pimterry committed Jun 11, 2024
1 parent 9d54aef commit 448225e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/interceptors/frida/frida-android-integration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ const ANDROID_ABI_FRIDA_ARCH_MAP = {
} as const;

export async function setupAndroidHost(config: HtkConfig, adbClient: AdbClient, hostId: string) {
console.log(`Installing Android Frida server on ${hostId}...`);
const deviceClient = adbClient.getDevice(hostId);

const deviceProperties = await deviceClient.getProperties();
Expand All @@ -119,6 +120,7 @@ export async function setupAndroidHost(config: HtkConfig, adbClient: AdbClient,
}

export async function launchAndroidHost(adbClient: AdbClient, hostId: string) {
console.log(`Launching Android Frida server on ${hostId}...`);
const deviceClient = adbClient.getDevice(hostId);

const runAsRoot = await getRootCommand(deviceClient);
Expand Down Expand Up @@ -195,6 +197,7 @@ export async function interceptAndroidFridaTarget(
caCertContent: string,
proxyPort: number
) {
console.log(`Intercepting ${appId} via Android Frida on ${hostId}...`);
const deviceClient = adbClient.getDevice(hostId);

await createPersistentReverseTunnel(deviceClient, proxyPort, proxyPort)
Expand Down
1 change: 1 addition & 0 deletions src/interceptors/frida/frida-ios-integration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ export async function interceptIosFridaTarget(
caCertContent: string,
proxyPort: number
) {
console.log(`Intercepting ${appId} via iOS Frida on ${hostId}...`);
const deviceId = await getDeviceId(usbmuxClient, hostId);
const fridaStream = await usbmuxClient.createDeviceTunnel(deviceId, FRIDA_DEFAULT_PORT);

Expand Down
2 changes: 1 addition & 1 deletion src/interceptors/frida/frida-ios-interceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { combineParallelCalls } from '@httptoolkit/util';
import { Interceptor } from "..";
import { HtkConfig } from '../../config';

import { FridaHost, FridaTarget, killProcess } from './frida-integration';
import { FridaTarget, killProcess } from './frida-integration';
import {
getIosFridaHosts,
getIosFridaTargets,
Expand Down

0 comments on commit 448225e

Please sign in to comment.