mirror of
https://github.com/yyhuni/xingrin.git
synced 2026-02-18 20:33:17 +08:00
- Add user_logger utility for structured scan operation logging - Create scan log views and API endpoints for retrieving scan execution logs - Add scan-log-list component and use-scan-logs hook for frontend log display - Refactor asset search views to remove ArrayField support from pg_ivm IMMV - Update search_service.py to JOIN original tables for array field retrieval - Add system architecture requirements (AMD64/ARM64) to README - Update scan flow handlers to integrate logging system - Enhance scan progress dialog with log viewer integration - Add ANSI log viewer component for formatted log display - Update scan service API to support log retrieval endpoints - Migrate database schema to support new logging infrastructure - Add internationalization strings for scan logs (en/zh) This change improves observability of scan operations and resolves pg_ivm limitations with ArrayField types by fetching array data from original tables via JOIN operations.
41 lines
1.4 KiB
Python
41 lines
1.4 KiB
Python
"""
|
||
扫描模块工具包
|
||
|
||
提供扫描相关的工具函数。
|
||
"""
|
||
|
||
from .directory_cleanup import remove_directory
|
||
from .command_builder import build_scan_command
|
||
from .command_executor import execute_and_wait, execute_stream
|
||
from .wordlist_helpers import ensure_wordlist_local
|
||
from .nuclei_helpers import ensure_nuclei_templates_local
|
||
from .performance import FlowPerformanceTracker, CommandPerformanceTracker
|
||
from .workspace_utils import setup_scan_workspace, setup_scan_directory
|
||
from .user_logger import user_log
|
||
from . import config_parser
|
||
|
||
__all__ = [
|
||
# 目录清理
|
||
'remove_directory',
|
||
# 工作空间
|
||
'setup_scan_workspace', # 创建 Scan 根工作空间
|
||
'setup_scan_directory', # 创建扫描子目录
|
||
# 命令构建
|
||
'build_scan_command', # 扫描工具命令构建(基于 f-string)
|
||
# 命令执行
|
||
'execute_and_wait', # 等待式执行(文件输出)
|
||
'execute_stream', # 流式执行(实时处理)
|
||
# 字典文件
|
||
'ensure_wordlist_local', # 确保本地字典文件(含 hash 校验)
|
||
# Nuclei 模板
|
||
'ensure_nuclei_templates_local', # 确保本地模板(含 commit hash 校验)
|
||
# 性能监控
|
||
'FlowPerformanceTracker', # Flow 性能追踪器(含系统资源采样)
|
||
'CommandPerformanceTracker', # 命令性能追踪器
|
||
# 扫描日志
|
||
'user_log', # 用户可见扫描日志记录
|
||
# 配置解析
|
||
'config_parser',
|
||
]
|
||
|