drkemp187/GhostFlash

GitHub: drkemp187/GhostFlash

GhostFlash 利用 AI 自动为 Flipper Zero、ESP32、HackRF 等网络安全硬件生成自定义固件并完成编译和烧录,解决了安全硬件工具开发门槛高、迭代慢的问题。

Stars: 0 | Forks: 0

``` ██████ ██ ██ ██████ ███████ ████████ ███████ ██ █████ ███████ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ███ ███████ ██ ██ ███████ ██ █████ ██ ███████ ███████ ███████ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██████ ██ ██ ██████ ███████ ██ ██ ███████ ██ ██ ███████ ██ ██ ``` **面向网络安全硬件的 AI 驱动固件与应用生成** [![Stars](https://img.shields.io/github/stars/drkemp187/GhostFlash?style=for-the-badge&color=00ff41)](https://github.com/drkemp187/GhostFlash/stargazers) [![License](https://img.shields.io/badge/license-Tiered-red?style=for-the-badge)](./tiers/README.md) [![Python](https://img.shields.io/badge/python-3.10%2B-blue?style=for-the-badge)](https://python.org) [![Boards](https://img.shields.io/badge/boards-25%2B-green?style=for-the-badge)](./boards/) [![Self-Learning](https://img.shields.io/badge/self--learning-daily-purple?style=for-the-badge)](#scraper-agent)
## 什么是 GhostFlash? GhostFlash 是一个自主的 AI agent,可为网络安全硬件**生成自定义固件和应用程序**——从 Flipper Zero 到 HackRF,再到 ESP32 mesh 节点。只需描述你的需求,插入你的设备,剩下的交由 GhostFlash 处理:检测、代码生成、编译和烧录。 它会**每天**抓取 GitHub 和 GitLab,吸收最新的固件项目、漏洞利用程序和工具,并不断丰富自身的知识库。它每天都在变得更聪明。 ## 支持的硬件 | 类别 | 开发板 / 设备 | |---|---| | **多功能工具** | Flipper Zero, ChameleonUltra | | **WiFi / BLE** | ESP32, ESP8266, ESP32-S3, ESP32-C3 | | **Sub-GHz / RF** | HackRF One, YARD Stick One, CC1101 modules | | **BLE / Zigbee** | nRF52840, nRF24L01, CC2531 | | **RP2040** | Raspberry Pi Pico, Pico W, Waveshare 开发板 | | **Mesh Network** | Meshtastic (T-Beam, T-Echo, Heltec v3) | | **Display / CPI** | Waveshare 电子墨水屏, SSD1306, TFT ST7789 | | **Classic** | Arduino Nano/Uno (ATmega328P), STM32 | | **Advanced** | Proxmark3, OpenWRT 路由器, Raspberry Pi Zero W | ## 核心 Agent ### 1. 设备检测 Agent 通过 USB 插入你的硬件。GhostFlash 会自动识别: - 开发板名称和 variant - 芯片/MCU(例如 `ESP32-S3`, `STM32F4`, `nRF52840`) - Flash 大小、RAM、架构 - 现有固件(如果有) - 可用的烧录方式(`esptool`, `dfu-util`, `openocd`, `qFlipper`) ### 2. 固件生成 Agent 用通俗易懂的语言描述你的使用场景。AI 会生成: - 完整的固件源代码(C/C++, MicroPython, Arduino, Zephyr RTOS) - 构建配置(`CMakeLists.txt`, `platformio.ini`, `Makefile`) - 针对你开发板的具体烧录说明 - 编译后的二进制文件(在受支持的情况下) **示例提示词:** ``` "Build a WiFi deauth tool for ESP32 with OLED display" "Create a Flipper Zero app that clones NFC cards and logs to SD" "Generate Meshtastic mesh node firmware with GPS tracking and encryption" "Write a BLE scanner for nRF52840 that logs to serial" ``` ### 3. 抓取 Agent(每日) 每 24 小时运行一次。自动: - 抓取 GitHub 和 GitLab 上新的固件仓库、工具和漏洞利用程序 - 按开发板、类别和用例进行索引 - 将新知识输入到生成模型中 - 追踪热门项目及 star 增长速度 ### 4. 自学习循环 知识库会持续增长: - 新的仓库 → 解析 → embedding → 存储 - 每次抓取周期都会提升生成质量 - 社区贡献会反馈到模型中 ## 订阅层级 | 层级 | 价格 | 权限 | |---|---|---| | **Ghost Free** | 免费 | 每天 5 次生成,仅限公开工具,社区开发板 | | **Ghost Pro** | $29/月 | 无限次生成,支持所有 25+ 种开发板,编译优先 | | **Ghost Elite** | $99/月 | 攻击性工具,红队 payload,RF 工具,高级 BLE | | **Ghost Black** | $299/月 | 几乎无限制的访问权限,自定义开发板请求,私密 Discord,直接技术支持 | ## 快速开始 ``` # Clone 仓库 git clone https://github.com/drkemp187/GhostFlash.git cd GhostFlash # 安装依赖 pip install -r requirements.txt # 插入你的设备并检测它 python ghostflash.py detect # 生成固件 python ghostflash.py generate --prompt "WiFi scanner with OLED output" --board esp32 # Flash 它 python ghostflash.py flash --board esp32 --port /dev/ttyUSB0 ``` ## 架构 ``` GhostFlash/ ├── agent/ │ ├── core/ # Orchestrator, API key validation, tier enforcement │ ├── device_detect/ # USB detection, chip ID, flash method resolution │ ├── firmware_gen/ # LLM-powered code generation per board/use-case │ ├── scraper/ # Daily GitHub/GitLab scraper + indexer │ └── self_learning/ # Embedding pipeline, knowledge base updater ├── boards/ # Board profiles (chip, arch, flash method, constraints) ├── tiers/ # Tier definitions and access control ├── scripts/ # Flash helpers, build wrappers ├── docs/ # Full documentation └── .github/workflows/ # CI/CD + daily scraper automation ``` ## 免责声明 GhostFlash 是一款供开发者和研究的工具。用户需自行遵守当地法律法规。**Ghost Black** 层级仅限经过验证的安全专业人员和研究人员使用。
为社区而生。由 AI 驱动。游荡在网络中的幽灵。
标签:AI代理, Bash脚本, UML, 代码生成, 固件生成, 域名收集, 提示词注入, 渗透测试工具, 物联网硬件, 网络安全, 逆向工具, 配置审计, 隐私保护