Changeset View
Changeset View
Standalone View
Standalone View
contrib/devtools/symbol-check.py
Show First 20 Lines • Show All 212 Lines • ▼ Show 20 Lines | for dylib in binary.libraries: | ||||
if split[-1] not in MACHO_ALLOWED_LIBRARIES: | if split[-1] not in MACHO_ALLOWED_LIBRARIES: | ||||
print(f'{split[-1]} is not in ALLOWED_LIBRARIES!') | print(f'{split[-1]} is not in ALLOWED_LIBRARIES!') | ||||
ok = False | ok = False | ||||
return ok | return ok | ||||
def check_MACHO_min_os(filename) -> bool: | def check_MACHO_min_os(filename) -> bool: | ||||
binary = lief.parse(filename) | binary = lief.parse(filename) | ||||
return binary.build_version.minos == [10, 14, 0] | return binary.build_version.minos == [10, 15, 0] | ||||
def check_MACHO_sdk(filename) -> bool: | def check_MACHO_sdk(filename) -> bool: | ||||
binary = lief.parse(filename) | binary = lief.parse(filename) | ||||
return binary.build_version.sdk == [10, 15, 6] | return binary.build_version.sdk == [10, 15, 6] | ||||
def check_PE_libraries(filename) -> bool: | def check_PE_libraries(filename) -> bool: | ||||
▲ Show 20 Lines • Show All 67 Lines • Show Last 20 Lines |