- Added alert configuration management for email and chat notifications, allowing users to set preferences for severity levels, attack types, and notification channels. - Introduced functionality to save, edit, and delete alert configurations, enhancing user control over security notifications. - Implemented a new query to list recent security reports, providing users with quick access to the latest security incidents. - Enhanced the backend schema to support alert configurations and recent report tracking, improving overall security management capabilities.
27 lines
642 B
Bash
Executable File
27 lines
642 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Script para ativar o ambiente virtual para testes de segurança
|
|
# Uso: source ativar_venv.sh
|
|
|
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
VENV_DIR="$SCRIPT_DIR/venv_seguranca"
|
|
|
|
if [ ! -d "$VENV_DIR" ]; then
|
|
echo "📦 Criando ambiente virtual..."
|
|
cd "$SCRIPT_DIR"
|
|
python3 -m venv venv_seguranca
|
|
source venv_seguranca/bin/activate
|
|
pip install requests
|
|
echo "✅ Ambiente virtual criado e dependências instaladas"
|
|
else
|
|
source "$VENV_DIR/bin/activate"
|
|
echo "✅ Ambiente virtual ativado"
|
|
echo "📍 Para executar os testes:"
|
|
echo " python3 teste_seguranca.py"
|
|
fi
|
|
|
|
|
|
|
|
|
|
|