SiLiN-ua/MooN-Attacks
GitHub: SiLiN-ua/MooN-Attacks
基于 Telegram 频道实时监控的军事威胁情报平台,整合 AI 分析与交互式地图可视化,帮助分析人员快速掌握冲突区域态势。
Stars: 2 | Forks: 1
🌙 MooN Attacks
实时军事威胁情报平台
监控 Telegram 频道 · AI 驱动的分析 · 交互式地图 · 情报报告
## 截图
## 什么是 MooN Attacks?
MooN Attacks 是一个开源的 OSINT 平台,用于通过 Telegram 频道实时监控军事事件。它会自动收集消息,对事件(爆炸、无人机、导弹等)进行分类,将它们标记在交互式地图上,并生成 AI 驱动的情报报告。
## 功能特性
| 功能 | 描述 |
|---------|-------------|
| 🗺️ **实时地图** | 交互式地图上的实时事件标记(支持 RF 领土过滤) |
| 📰 **实时动态** | 按事件类型和城市过滤的按时间顺序排列的动态 |
| 🤖 **AI 报告** | Claude AI 生成包含信息来源的完整情报报告 |
| 📡 **Telegram 监控器** | 同时实时监控多个频道 |
| 📥 **历史加载** | 从 Telegram 加载任意时间范围内的历史消息 |
| 🛣️ **路线追踪** | 跨越多个城市追踪攻击路线 |
| 📊 **导出** | 导出为 Word / HTML / PDF / JSON / CSV |
| 🌙 **启动画面** | 使用 Three.js 制作的 3D 月球动画 |
## 快速开始
### 1. 克隆仓库
```
# 通过 GitHub CLI
gh repo clone SiLiN-ua/MooN-Attacks
# 通过 Git
git clone https://github.com/SiLiN-ua/MooN-Attacks
```
### 2. 安装依赖
```
pip install -r requirements.txt
```
### 3. 配置 API 密钥
```
cp .env.example .env
```
编辑 `.env` 文件并填写您的凭证:
```
TELEGRAM_API_ID=your_api_id
TELEGRAM_API_HASH=your_api_hash
TELEGRAM_PHONE=+380XXXXXXXXX
ANTHROPIC_API_KEY=your_anthropic_api_key
```
### 4. Telegram 身份验证(仅限首次)
```
python auth_telegram.py
```
### 5. 运行
```
python app.py
```
在浏览器中打开:**http://localhost:5001**
## 项目结构
```
MooN-Attacks/
├── app.py # Flask server, API routes, SocketIO
├── auth_telegram.py # Telegram first-time authentication
├── export_channels.py # Utility: export channel list
├── seed_channels.py # Utility: pre-load channel list to DB
├── test_env.py # Utility: verify environment variables
├── requirements.txt # Python dependencies
├── .env.example # Environment template
├── core/
│ ├── db.py # Database models (Peewee + SQLite)
│ ├── filter.py # Military keyword classifier (explosions, drones, missiles…)
│ ├── geo_parser.py # City & coordinate extraction from message text
│ ├── reporter.py # AI report generation (Claude Opus + web search)
│ ├── telegram_monitor.py # Telegram client (Telethon MTProto)
│ └── trajectory.py # Attack route analysis
├── templates/
│ ├── splash.html # Landing page (3D Moon — Three.js)
│ ├── index.html # Main map page (Leaflet.js)
│ ├── feed.html # Live event feed
│ ├── report.html # AI intelligence report viewer
│ └── channel.html # Single channel posts view
└── static/
├── js/main.js # Map logic, export functions
└── css/ # Styles
```
## 工作原理
```
Telegram Channels
↓
Telethon (MTProto) — real-time monitoring or history load
↓
filter.py — keyword classifier (event type)
geo_parser.py — extracts city & coordinates
↓
SQLite Database (Peewee ORM)
↓
┌─────────────────────┐
↓ ↓
Leaflet Map Live Feed
(RF territory) (all events)
↓
Claude AI → Intelligence Report
(web search + source links + analysis)
```
## 页面
| URL | 描述 |
|-----|-------------|
| `/` | 带有月球动画的启动画面 |
| `/map` | 实时交互式地图 |
| `/feed` | 实时事件动态 |
| `/report` | AI 情报报告生成器 |
| `/channel/
` | 特定频道的帖子 |
## 环境要求
- Python 3.10+
- Telegram 账号(用于 MTProto 访问)
- Anthropic API 密钥(Claude)— 用于 AI 报告
- 用于地图瓦片的网络连接(CartoDB)
## 许可证
MIT License — 可免费使用、修改和分发。
由 Yehor Selin (SiLiN) 制作 •
LinkedIn
标签:AI报告, Claude AI, DLL 劫持, ESC4, Flask, HTTP/HTTPS抓包, OSINT, Python, Telegram MTProto, Telegram监控, 事件分类, 交互式地图, 代码示例, 军事情报, 大语言模型, 威胁情报, 安全防护, 实时地图, 实时处理, 库, 应急响应, 开发者工具, 态势感知, 情报平台, 情报收集, 战场监控, 数据分析, 数据导出, 无后门, 漏洞研究, 网络安全, 路线追踪, 逆向工具, 隐私保护