# cu-security-center **Repository Path**: cuos/cu-security-center ## Basic Information - **Project Name**: cu-security-center - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-12-11 - **Last Updated**: 2025-12-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # CU Security Center 一个基于Python和GTK的安全中心应用程序,采用标签页界面展示多个安全工具插件。 ## 功能特点 - 使用GTK构建的图形用户界面 - 标签页形式展示不同安全工具 - 模块化插件架构,易于扩展 - 简单的Makefile安装和卸载 ## 截图 ![Application Screenshot](screenshot.png) ## 系统要求 - CentOS系统 - Python 3.6+ - GTK+ 3.0 - PyGObject ## 安装依赖 在CentOS上,您需要安装以下依赖: ```bash sudo yum install python3 python3-pip gtk3-devel pygobject3 ``` 然后安装Python依赖: ```bash pip3 install -r requirements.txt ``` ## 安装和运行 ### 使用Makefile安装(推荐) ```bash # 安装应用程序 make install # 运行应用程序 cu-security-center # 卸载应用程序 make uninstall ``` ### 手动运行 ```bash python3 main.py ``` ## 应用结构 ``` cu-security-center/ ├── main.py # 主应用程序入口 ├── plugins/ # 插件目录 │ ├── __init__.py # Python包初始化文件 │ ├── base_plugin.py # 插件基类 │ ├── plugin1.py # 安全扫描插件 │ ├── plugin2.py # 防火墙插件 │ └── plugin3.py # 系统信息插件 ├── requirements.txt # Python依赖列表 └── Makefile # 构建和安装脚本 ``` ## 插件开发 要创建新插件,请遵循以下步骤: 1. 在[plugins](file:///d:/gitea/hepy17/cu-security-center/plugins)目录中创建新的Python文件 2. 继承[BasePlugin](file:///d:/gitea/hepy17/cu-security-center/plugins/base_plugin.py#L9-L22)类 3. 实现[get_name()](file:///d:/gitea/hepy17/cu-security-center/plugins/plugin3.py#L17-L18)和[get_widget()](file:///d:/gitea/hepy17/cu-security-center/plugins/plugin3.py#L20-L52)方法 4. 在[main.py](file:///d:/gitea/hepy17/cu-security-center/main.py)中的插件列表中添加您的插件 示例插件结构: ```python from .base_plugin import BasePlugin class MyPlugin(BasePlugin): def get_name(self): return "我的插件" def get_widget(self): # 创建并返回GTK小部件 label = Gtk.Label(label="这是我的插件界面") return label ``` ## 许可证 MIT License