Skip to content

Commit

Permalink
Fix file path to Zen internals on macOS arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
hansott committed Dec 30, 2024
1 parent 14e62ae commit ddc7910
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aikido_zen/vulnerabilities/sql_injection/get_lib_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ def get_file_name():
"""Gives you the file name for the binary based on platform info"""
os_name = platform.system().lower()
architecture = platform.architecture()[0].lower()
machine = platform.machine().lower()
file_name = "libzen_internals_"

if "aarch64" in architecture:
if "aarch64" in architecture or "arm64" in machine:
file_name += "aarch64-"
elif "64" in architecture:
file_name += "x86_64-"
Expand Down

0 comments on commit ddc7910

Please sign in to comment.