mirror of
https://github.com/frida/frida-python
synced 2026-06-08 14:16:17 +00:00
98733a3388
Because `/bin/cat` is now considered a system program we are no longer allowed to attach to it using `task_for_pid()`. Bundle our own test program for Mac as a workaround.
15 lines
322 B
Python
15 lines
322 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
import platform
|
|
import os
|
|
|
|
system = platform.system()
|
|
if system == 'Windows':
|
|
target_program = r"C:\Windows\notepad.exe"
|
|
elif system == 'Darwin':
|
|
target_program = os.path.join(os.path.dirname(__file__), "unixvictim-mac")
|
|
else:
|
|
target_program = "/bin/cat"
|
|
|
|
__all__ = ['target_program']
|