#!/bin/bash # macOS Tool Installation Script # Usage: ./scripts/install-tools-macos.sh install_macos_tools() { echo "đŸ“Ļ Installing comprehensive security toolkit for macOS..." if command -v brew >/dev/null 2>&1; then echo "đŸē Using Homebrew to install security tools..." echo "Installing core network tools..." brew install nmap curl wget git gobuster nikto whatweb sslscan || echo "âš ī¸ Some core tools failed" echo "Installing enumeration tools..." brew install feroxbuster redis-tools smbclient || echo "âš ī¸ Some enum tools failed" echo "Installing additional security tools..." brew install hydra john-jumbo hashcat sqlmap exploitdb binwalk exiftool || echo "âš ī¸ Some additional tools failed" echo "Installing Python security tools via pip..." python3 -m pip install impacket crackmapexec enum4linux-ng 2>/dev/null || echo "âš ī¸ Some Python tools failed" echo "✅ macOS security toolkit installation complete!" echo "📋 Installed tools: nmap, gobuster, nikto, whatweb, sslscan," echo " feroxbuster, redis-tools, smbclient, hydra, john-jumbo," echo " hashcat, sqlmap, exploitdb, binwalk, exiftool, impacket, crackmapexec" else echo "âš ī¸ Homebrew not found. Please install Homebrew first:" echo " /bin/bash -c \"\$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)\"" echo "â„šī¸ Or use Docker setup for full tool support" return 1 fi } # Main execution main() { install_macos_tools } # Run if script is executed directly if [ "${BASH_SOURCE[0]}" = "${0}" ]; then main "$@" fi