One Hat Cyber Team
Your IP :
216.73.216.166
Server IP :
23.137.84.82
Server :
Linux srv25.usacloudserver.us 5.14.0-570.39.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Sep 4 05:08:52 EDT 2025 x86_64
Server Software :
LiteSpeed
PHP Version :
8.1.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
opt
/
cpguard
/
3rdparty
/
lynis
/
include
/
View File Name :
tests_system_integrity
#!/bin/sh ################################################################################# # # Lynis # ------------------ # # Copyright (c) Michael Boelen, CISOfy, and many contributors. # # Website : https://cisofy.com/ # Blog : https://linux-audit.com/ # GitHub : https://github.com/CISOfy/lynis # # Lynis comes with ABSOLUTELY NO WARRANTY. This is free software, and you are # welcome to redistribute it under the terms of the GNU General Public License. # See LICENSE file for usage of this software. # ################################################################################# # AIDECONFIG="" CSF_CONFIG="${ROOTDIR}etc/csf/csf.conf" FILE_INT_TOOL="" FILE_INT_TOOL_FOUND=0 # Boolean, file integrity tool found # ################################################################################# # InsertSection "${SECTION_SYSTEM_INTEGRITY}" Display --indent 2 --text "- Checking file integrity tools" # ################################################################################# # # Test : SINT-7010 # Description : System Integrity Status if [ -x ${ROOTDIR}/usr/bin/csrutil ]; then PREQS_MET="YES"; else PREQS_MET="NO"; SKIPREASON="No CSrutil binary found"; fi Register --test-no SINT-7010 --os MacOS --preqs-met ${PREQS_MET} --skip-reason "${SKIPREASON}" --weight H --network NO --category security --description "System Integrity Status" if [ ${SKIPTEST} -eq 0 ]; then if ${ROOTDIR}usr/bin/csrutil status | ${GREPBINARY} -sq enabled ; then Display --indent 2 --text "- System Integrity Protection (status)" --result "${STATUS_OK}" --color GREEN Report "system_integrity_tool[]=mac-sip" LogText "Result: SIP enabled, OK" AddHP 3 3 else Display --indent 2 --text "- System Integrity Protection (status)" --result "${STATUS_NO}" --color RED LogText "Result: SIP disabled, BAD" AddHP 0 3 fi fi # ################################################################################# # WaitForKeyPress # EOF