-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadd_new_modules.sh
More file actions
executable file
·83 lines (75 loc) · 2.39 KB
/
add_new_modules.sh
File metadata and controls
executable file
·83 lines (75 loc) · 2.39 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#!/bin/bash
#
# Add all new Bastion modules to Xcode project
# Auto-generated by Claude
# Date: 2026-01-20
#
set -e
echo "🔧 Adding new modules to Bastion.xcodeproj..."
echo ""
cd /Volumes/Data/xcode/Bastion
# New modules to add
NEW_MODULES=(
"Bastion/Security/ExploitModules/SMBModule.swift"
"Bastion/Security/ExploitModules/DNSModule.swift"
"Bastion/Security/ExploitModules/LDAPModule.swift"
"Bastion/Security/LateralMovementMapper.swift"
"Bastion/Security/VulnerabilityChainer.swift"
"Bastion/Security/MITREATTACKMapper.swift"
"Bastion/Security/RemediationScriptGenerator.swift"
"Bastion/Security/ContinuousMonitor.swift"
"Bastion/Security/AnomalyDetector.swift"
"Bastion/Security/TimelineReconstructor.swift"
)
echo "Files to add:"
for file in "${NEW_MODULES[@]}"; do
if [ -f "$file" ]; then
echo " ✓ $file"
else
echo " ❌ $file (NOT FOUND)"
fi
done
echo ""
echo "Opening Xcode..."
open Bastion.xcodeproj
echo ""
echo "=========================================="
echo "MANUAL STEPS REQUIRED:"
echo "=========================================="
echo ""
echo "In Xcode:"
echo "1. Wait for Xcode to fully load"
echo "2. In Project Navigator, right-click 'Security' folder"
echo "3. Select 'Add Files to \"Bastion\"...'"
echo "4. Navigate to: /Volumes/Data/xcode/Bastion/Bastion/Security/"
echo "5. Select these files:"
echo " - LateralMovementMapper.swift"
echo " - VulnerabilityChainer.swift"
echo " - MITREATTACKMapper.swift"
echo " - RemediationScriptGenerator.swift"
echo " - ContinuousMonitor.swift"
echo " - AnomalyDetector.swift"
echo " - TimelineReconstructor.swift"
echo "6. Click 'Add'"
echo ""
echo "7. Right-click 'Security/ExploitModules' folder"
echo "8. Select 'Add Files to \"Bastion\"...'"
echo "9. Select these files:"
echo " - SMBModule.swift"
echo " - DNSModule.swift"
echo " - LDAPModule.swift"
echo "10. Click 'Add'"
echo ""
echo "11. Press ⌘B to build"
echo ""
echo "=========================================="
echo "DEPENDENCIES TO INSTALL:"
echo "=========================================="
echo ""
echo "brew install sshpass # For SSH password testing"
echo "brew install nmap # For SMB/advanced scanning"
echo "brew install enum4linux # For SMB enumeration (optional)"
echo ""
echo "=========================================="
echo ""
echo "✅ Xcode opened. Follow the manual steps above to add files."