frida-rust icon indicating copy to clipboard operation
frida-rust copied to clipboard

Listing processes from all devices causes accces violation

Open muniategui opened this issue 1 year ago • 0 comments

If you get a handler to device manager, enumerate_all_devices, and then you iterate over the processes of the devices with enumerate_processes, the enumeration will crash in GDB Remote Stub. It also crash with Local Socket. (So probably if the device type is remote enumarate_process cause the acces violation)

let device = device_manager.get_device_by_type(frida::DeviceType::Remote).unwrap();

for process in device.enumerate_processes() {
    println!("Name: {}", process.get_name());
}

The code above will crash with (exit code: 0xc0000005, STATUS_ACCESS_VIOLATION)

Commenting the println! still makes it crashs so my guess is that is the enumerate_processes() crashes on remote devices.

muniategui avatar Sep 06 '24 08:09 muniategui