Files
frida-frida-python/tests/data/__init__.py
T
Ole André Vadla Ravnås 7d57f6807f Use our own test binaries on Linux also
So we can pick the appropriate one based on whether we're running on
a 32- or 64-bit Python interpreter. There's no need for our 32-bit
builds to support injection into 64-bit targets.
2020-04-20 23:13:46 +00:00

19 lines
448 B
Python

# -*- coding: utf-8 -*-
import os
import platform
import sys
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-macos")
else:
arch = "x86_64" if sys.maxsize > 2**32 else "x86"
target_program = os.path.join(os.path.dirname(__file__), "unixvictim-linux-" + arch)
__all__ = ['target_program']