-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdemo.sh
More file actions
executable file
·32 lines (26 loc) · 939 Bytes
/
demo.sh
File metadata and controls
executable file
·32 lines (26 loc) · 939 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
# PBP Module Demo (non-root safe)
PBP_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
export PBP_ROOT
export PBP_MODULES_DIR="${PBP_ROOT}/modules"
export PBP_STATE_DIR="/tmp/pbp-demo/state"
export PBP_LOG_DIR="/tmp/pbp-demo/log"
export PBP_BACKUP_DIR="/tmp/pbp-demo/backups"
export PBP_REPORT_DIR="/tmp/pbp-demo/reports"
# Setup demo environment
mkdir -p "$PBP_STATE_DIR" "$PBP_LOG_DIR" "$PBP_BACKUP_DIR" "$PBP_REPORT_DIR"
echo "PBP Security Platform Demo"
echo "=========================="
echo
./bin/pbp list
echo
echo "Module details:"
echo
for module in time dns network container audit rootkit recon; do
desc=$(jq -r '.description' "modules/${module}/manifest.json" 2>/dev/null)
deps=$(jq -r '.dependencies | join(", ")' "modules/${module}/manifest.json" 2>/dev/null)
echo "📦 ${module}"
echo " ${desc}"
[[ -n "$deps" && "$deps" != "" ]] && echo " Dependencies: ${deps}"
echo
done