I want to use Frida Stalker for all the threads in the remote process.
The problem is that there are lot of threads in the process so if I tried to use Process.enumerateThreads
to use Stalker.follow
for each one of them the process crashed because that takes lot of time and until that the process is stop. `
I don’t want to handle the crashed (watchdog etc.) Is there another light way , maybe an API without thread id, so I can use Stalker.follow
for all tids ?
Here is the example code
function StalkerExeample()
{
var threadIds = [];
Process.enumerateThreads({
onMatch: function (thread)
{
threadIds.push(thread.id);
console.log("Thread ID: " + thread.id.toString());
},
onComplete: function ()
{
threadIds.forEach(function (threadId)
{
Stalker.follow(threadId,
{
events: {call: true , ret: true, exec: true ,block: true},
onReceive: function (events)
{
console.log("onReceive called.");
},
onCallSummary: function (summary)
{
console.log("onCallSummary called.");
}
});
});
}
});
}
StalkerExeample();