Files
frida-frida-python/tests/data/__init__.py
T
Ole André Vadla Ravnås 708e9dbc05 tests: Revive unixvictim binaries for Linux/x86*
They're useful for testing 32- and 64-bit builds on the same system.
2022-05-04 20:54:49 +00:00

21 lines
556 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")
elif system == 'Linux' and platform.machine() == 'x86_64':
arch = 'x86_64' if sys.maxsize > 2**32 else 'x86'
target_program = os.path.join(os.path.dirname(__file__), "unixvictim-" + system.lower() + "-" + arch)
else:
target_program = "/bin/cat"
__all__ = ['target_program']