checks
Functions:
-
check_amfi_status–Function to check the status of AMFI on current device
-
check_sip_status–Function checking the SIP status system-wide
-
get_platform_details–Function returning the platform details
-
is_amfi_disabled–Function to check if AMFI is disabled
-
is_macos–Function checking if we have a macOS machine
-
is_sip_active–Function to check if SIP is active or not
check_amfi_status
check_amfi_status() -> bool
Function to check the status of AMFI on current device AMFI := Apple Mobile File Integrity UNIX command: nvram -p | grep amfi | wc -l
Returns:
-
bool–True if AMFI device is enabled, False otherwise
check_sip_status
check_sip_status() -> bool
Function checking the SIP status system-wide
Function used (man page): - csrutil: Configure system security policies - csrutil modifies System Integrity Protection settings. Some of the commands require the device to be booted into the Recovery OS. Invoke csrutil with no arguments to see a full usage statement.
Returns:
-
bool–Boolean (True if SIP is active, False otherwise)
get_platform_details
Function returning the platform details
Returns:
-
Dict[str, str | Tuple[int, int, int]]–Dictionary of platform details (os type, architecture, os version)
is_amfi_disabled
is_amfi_disabled() -> bool
Function to check if AMFI is disabled
Returns:
-
bool–True if status of AMFI is disabled
is_sip_active
is_sip_active() -> bool
Function to check if SIP is active or not
Returns:
-
bool–True if SIP is active, False otherwise