Commit Graph

38 Commits

Author SHA1 Message Date
yyhuni
fbcd13aafc 更新提示 2025-12-16 18:06:22 +08:00
yyhuni
17ff8c3b86 更新部署提示 2025-12-16 17:56:24 +08:00
yyhuni
cf92f99b64 Update README.md 2025-12-16 16:39:48 +08:00
yyhuni
96be0765fa Update README.md 2025-12-16 16:38:48 +08:00
yyhuni
ffc90283f0 更新readme 2025-12-15 12:27:42 +08:00
yyhuni
04f320f823 更新docker-push与github action,防止提交覆盖docker hub版本 2025-12-15 12:18:22 +08:00
yyhuni
0ffab3958d 修复远程worker任务启动问题 2025-12-15 12:09:28 +08:00
yyhuni
da30dcf065 update readme 2025-12-15 11:49:29 +08:00
yyhuni
edc35562c5 固定版本号,防止滚动版本导致旧版本出问题 2025-12-15 11:47:06 +08:00
yyhuni
6dc83445a0 优化截断ui 2025-12-13 19:34:56 +08:00
yyhuni
57584adafd 修复性能日志问题 2025-12-13 18:40:36 +08:00
yyhuni
7594bdef26 修复CreateColumnsProps 中移除了 navigate,但调用方还在传递 2025-12-13 11:58:40 +08:00
yyhuni
1932cde053 优化ui 2025-12-13 11:43:42 +08:00
yyhuni
55e5f244fb 更新Popover ui 2025-12-13 11:41:49 +08:00
yyhuni
208651fd4e 修复:useTargetEndpoints 期望后端返回 endpoints 字段,但后端实际返回的是 results 字段 2025-12-13 10:18:34 +08:00
yyhuni
3bf687cd65 更新性能监控 2025-12-13 10:01:21 +08:00
yyhuni
43e6e00faa 更新负载感知 2025-12-13 09:51:53 +08:00
yyhuni
7aada94d83 增加性能监测 2025-12-13 09:41:37 +08:00
yyhuni
3902df7b52 降低高水位
SCAN_CPU_HIGH = getattr(settings, 'SCAN_CPU_HIGH', 80.0)   # CPU 高水位(百分比)
SCAN_MEM_HIGH = getattr(settings, 'SCAN_MEM_HIGH', 80.0)   # 内存高水位(百分比)
2025-12-13 08:25:48 +08:00
yyhuni
fe40a4dc18 更新 README 中的目标类型和扫描工具说明
- 简化目标管理描述,移除 URL 类型说明
- 将扫描引擎部分扩展为内置扫描工具表格
- 添加 8 个类别的扫描工具列表:子域名爆破、被动发现、端口扫描、站点发现、目录扫描、爬虫、被动URL收集、漏洞扫描
- 列出所有集成的扫描工具(puredns、subfinder、naabu、httpx、ffuf、katana、waymore、nuclei、dalfox 等)
2025-12-13 08:15:59 +08:00
yyhuni
4439efe576 优化 README 中的功能描述和环境要求说明
- 移除漏洞扫描中的"漏洞分级"功能描述
- 将分布式架构中的"智能调度"改为"负载感知调度",更准确描述实时负载监控和任务分发机制
- 简化环境要求部分,将 Docker 版本要求整合为操作系统要求(Ubuntu/Debian)
- 将硬件和磁盘要求合并为单行描述
2025-12-12 23:07:40 +08:00
yyhuni
8ff357b25a 在 README 中添加分布式架构图展示主从节点关系
- 添加 ASCII 艺术风格的系统架构图到 README
- 展示主服务器组件:Next.js 前端、Django 后端、Postgres 数据库、Redis 缓存和任务调度器
- 展示多个 Worker 节点(本地和远程)及其扫描工具(Nuclei、httpx、naabu 等)
- 说明主从节点之间的任务分发和心跳上报机制
2025-12-12 23:03:42 +08:00
yyhuni
d287511753 将 README 中的截图文件移动到 docs/screenshots 子目录
- 将 docs/ 目录下的 5 个截图文件移动到 docs/screenshots/ 子目录
- 更新 README.md 中所有截图引用路径,添加 screenshots/ 前缀
- 包含的截图文件:light.png, dark.png, bubblegum.png, cosmic-night.png, quantum-rose.png
2025-12-12 23:01:04 +08:00
yyhuni
61a500ad10 Add UI theme showcase to README and update GitHub links
- Add light/dark mode toggle demonstration with screenshots in README
- Add multi-theme UI showcase (Bubblegum, Cosmic Night, Quantum Rose) with screenshots
- Remove KNOWN_ISSUES.md documentation file
- Replace IconInnerShadowTop with IconRadar in app sidebar logo
- Update GitHub help link from placeholder to actual repository URL
- Update site header GitHub link to point to xingrin repository
2025-12-12 22:57:01 +08:00
yyhuni
6885fa8715 Remove unused action handlers and imports from endpoint and IP address components
- Remove navigate callback and handleDelete prop from endpoints columns and detail view
- Remove unused EndpointRowActions component and MoreHorizontal, Eye, Trash2 imports from endpoints columns
- Remove unused handleDeleteEndpoint and navigate callbacks from endpoints detail view
- Remove unused DropdownMenu imports and MoreHorizontal, Trash2 imports from IP addresses columns
- Remove unused onViewDetail prop from directories
2025-12-12 22:15:29 +08:00
yyhuni
fb84a3d65f Remove unused view detail handlers and actions from multiple components
- Remove handleView callback and onView action from scheduled scan page and columns
- Remove handleViewDetail callback and onViewDetail prop from directories view and columns
- Remove handleViewDetail callback and onViewDetail prop from subdomains detail view and columns
- Remove handleViewDetail callback and onViewDetail prop from websites view
- Remove unused SubdomainRowActions component and MoreHorizontal, Eye imports
- Remove unused handle
2025-12-12 20:58:54 +08:00
yyhuni
bb90ced642 Add Noto Sans SC local font package to replace system font fallback
- Add @fontsource/noto-sans-sc dependency (weights 400, 500, 700)
- Import Noto Sans SC font files in root layout
- Update fontFamily to prioritize Noto Sans SC before system fonts
- Replace system-ui fallback comment with local font loading description
2025-12-12 20:23:21 +08:00
yyhuni
c660447eca Fix CPU usage calculation to use delta sampling instead of cumulative values
- Replace single-sample CPU calculation with two-sample delta method
- Add 0.5 second sleep between CPU stat samples to calculate actual usage
- Parse all 7 CPU time fields (user, nice, sys, idle, iowait, irq, softirq) from /proc/stat
- Calculate CPU percentage as (1 - idle_diff/total_diff) * 100
- Add zero division protection when total_diff is 0
- Fix incorrect CPU usage reporting caused by using cumulative stat values
2025-12-12 20:19:51 +08:00
yyhuni
b1a48edd40 Add SSL certificate generation step for nginx Docker build in CI workflow
- Add conditional step to generate self-signed SSL certificates before building xingrin-nginx image
- Create docker/nginx/ssl directory and generate privkey.pem and fullchain.pem files
- Use OpenSSL to create 365-day RSA 2048-bit certificate with CN=localhost
- Only execute when building nginx image to avoid unnecessary certificate generation
2025-12-12 19:41:59 +08:00
yyhuni
baa137d232 Add toast notifications for Nuclei repository operations and fix mark all as read for SSE notifications
- Import toast and getErrorMessage in use-nuclei-repos hook
- Add success toast messages for create, update, delete, and refresh repository operations
- Add error toast messages with error details for all repository operations
- Extract markNotificationsAsRead from useNotificationSSE hook in notification drawer
- Call markNotificationsAsRead in markAllAsRead success handler to update SSE notification
2025-12-12 19:36:50 +08:00
yyhuni
d3c002a602 Replace datetime.now() with timezone.now() in notification cleanup method
- Import timezone from django.utils instead of datetime
- Replace datetime.now() with timezone.now() for timezone-aware datetime handling
- Ensure cutoff_date calculation uses Django's timezone utilities for consistency
2025-12-12 19:34:18 +08:00
yyhuni
70cc9ad5c3 Add error_message field to scan history and display in progress dialog
- Add error_message field to ScanHistorySerializer fields list
- Update scheduled scan execution order: calculate next_run_time before triggering scan to prevent duplicate triggers
- Add error handling comment explaining retry behavior for failed scheduled scans
- Add errorMessage field to ScanProgressData and ScanRecord types in frontend
- Display error message in red alert box when scan fails in progress dialog
- Document generic
2025-12-12 19:21:51 +08:00
yyhuni
23059b447d Replace bare except with explicit Exception handling in command executor
- Change `except:` to `except Exception:` in process.kill() error handling (line 145)
- Change `except:` to `except Exception:` in log_file_handle.close() error handling (line 324)
- Add documentation for bare except code style issue in KNOWN_ISSUES.md
2025-12-12 18:39:50 +08:00
yyhuni
22cd7aa7e0 Update type hints and add name retrieval for deletion operations
- Replace `= None` with `| None = None` type hint in scan repository
- Remove unused `get_by_ids` method from target repository
- Add organization name retrieval before soft deletion in organization service
- Add target name retrieval before soft deletion in target service
- Include deleted names in deletion operation return values
2025-12-12 18:36:30 +08:00
yyhuni
06946c57ca Update distributed architecture feature descriptions in README
- Expand Worker node capabilities description with multi-node horizontal scaling
- Add zero-configuration local Docker Worker auto-registration detail
- Add SSH one-click remote VPS deployment feature
- Replace load balancing with intelligent task scheduling to idle nodes
- Add real-time node monitoring (heartbeat, CPU/memory/disk status)
- Add automatic offline detection and reconnection feature
2025-12-12 18:14:55 +08:00
yyhuni
c983f686f7 Remove API endpoint documentation from README
- Delete API interface URL reference (localhost:8888/api/)
- Delete API documentation URL reference (localhost:8888/swagger/)
2025-12-12 18:08:54 +08:00
yyhuni
6ca2ea2e53 Remove outdated project rules and clean up backend guidelines
- Delete obsolete .agent/rules/project.md file
- Remove rule #19 about security vulnerabilities from backend.md
2025-12-12 18:06:57 +08:00
yyhuni
25db990bc3 Initial commit: Xingrin v1.0.0 2025-12-12 18:04:57 +08:00