Building 70 Projects ranging from beginner to advanced so anyone can — learn from, build upon, use as a reference, or even copy directly. Owned by my cybersecurity company 👇
Go aicertificationcloud-engineeringcybercybersecuritycybersecurity-analystcybersecurity-certificationcybersecurity-certificationscybersecurity-educationcybersecurity-jobscybersecurity-portfoliocybersecurity-projectscybersecurity-toolsgrchackinglearningpentestingproject-repositoryprojetcspython
#!/usr/bin/env bash
# ©AngelaMos | 2026
# constants.sh
#
# Global constants and configuration values
#
# Defines the tool version string, CIS benchmark identifier, minimum
# bash version requirement, process exit codes, ANSI terminal color
# escape sequences, audit status labels (PASS/FAIL/WARN/SKIP), the
# default SYSROOT path for live vs test-mode filesystem access, and
# the six CIS section names with their display ordering.
#
# Connects to:
# cisaudit.sh - sourced first, values used by all modules
# lib/utils.sh - ANSI colors used in logging functions
# lib/engine.sh - SECTION_ORDER drives per-section score iteration
declare -gr VERSION="1.0.0"
declare -gr CIS_BENCHMARK="CIS Debian Linux 12 Benchmark v1.1.0"
declare -gr MIN_BASH_VERSION=4
declare -gr EXIT_OK=0
declare -gr EXIT_FAIL=1
declare -gr EXIT_USAGE=2
declare -gr RED='\033[0;31m'
declare -gr GREEN='\033[0;32m'
declare -gr YELLOW='\033[1;33m'
declare -gr CYAN='\033[0;36m'
declare -gr BLUE='\033[0;34m'
declare -gr MAGENTA='\033[0;35m'
declare -gr BOLD='\033[1m'
declare -gr DIM='\033[2m'
declare -gr RESET='\033[0m'
declare -gr STATUS_PASS="PASS"
declare -gr STATUS_FAIL="FAIL"
declare -gr STATUS_WARN="WARN"
declare -gr STATUS_SKIP="SKIP"
declare -g SYSROOT="/"
declare -gr SECTION_INITIAL_SETUP="Initial Setup"
declare -gr SECTION_SERVICES="Services"
declare -gr SECTION_NETWORK="Network Configuration"
declare -gr SECTION_LOGGING="Logging and Auditing"
declare -gr SECTION_ACCESS="Access, Authentication and Authorization"
declare -gr SECTION_MAINTENANCE="System Maintenance"
declare -ga SECTION_ORDER=(
"$SECTION_INITIAL_SETUP"
"$SECTION_SERVICES"
"$SECTION_NETWORK"
"$SECTION_LOGGING"
"$SECTION_ACCESS"
"$SECTION_MAINTENANCE"
)