G-mem issue on Mac
I cloned the G-Mem application, and I found out that the program exits when checking whether a specific process is a flash process
int is_flash_process(int pid)
Specifically it exits the program at
ERROR_A:
fprintf(stderr, "Sorry, failed\n");
exit(2);
When I replace the exit(2)
statement with
It does successfully parse all the processes.
Then this check fails:
kret = task_for_pid(mach_task_self_, mPid, &task);
if (kret != KERN_SUCCESS)
{
std::cout << "task_for_pid() failed. kret = " << kret << "\n";
exit(EXIT_FAILURE);
}
Instead I get
#define KERN_FAILURE 5
/* The function could not be performed. A catch-all.
*/
This is likely due to me having SIP on, will try again in a bit with SIP off.
Update: Okay even with SIP disabled the issue persists.
I found the following post on stackoverflow: https://developer.apple.com/forums/thread/701647
It states that for security reasons in later version of MacOS task_for_pid only works for processes that have com.apple.security.get-task-allow set and are running as root, so this applies to the Habbo client.
I am not sure how to set get-task-allow yet.