Files
fscan/fscan-lab/frontend/src/lib/i18n.ts
T
ZacharyZcR 71b92d4408 feat: v2.1.0 核心重构与功能增强
## 架构重构
- 全局变量消除,迁移至 Config/State 对象
- SMB 插件融合(smb/smb2/smbghost/smbinfo)
- 服务探测重构,实现 Nmap 风格 fallback 机制
- 输出系统重构,TXT 实时刷盘 + 双写机制
- i18n 框架升级至 go-i18n

## 性能优化
- 正则表达式预编译
- 内存优化 map[string]struct{}
- 并发指纹匹配
- SOCKS5 连接复用
- 滑动窗口调度 + 自适应线程池

## 新功能
- Web 管理界面
- 多格式 POC 适配(xray/afrog)
- 增强指纹库(3139条)
- Favicon hash 指纹识别
- 插件选择性编译(Build Tags)
- fscan-lab 靶场环境
- 默认端口扩展(62→133)

## 构建系统
- 添加 no_local tag 支持排除本地插件
- 多版本构建:fscan/fscan-nolocal/fscan-web
- CI 添加 snapshot 模式支持仅测试构建

## Bug 修复
- 修复 120+ 个问题,包括 RDP panic、批量扫描漏报、
  JSON 输出格式、Redis 检测、Context 超时等

## 测试增强
- 单元测试覆盖率 74-100%
- 并发安全测试
- 集成测试(Web/端口/服务/SSH/ICMP)
2026-01-11 20:16:23 +08:00

242 lines
10 KiB
TypeScript

export const translations = {
zh: {
// Navigation
'nav.title': 'fscan Lab',
'nav.subtitle': '内网渗透训练平台',
'nav.dashboard': '控制面板',
'nav.network': '网络拓扑',
'nav.challenges': '挑战列表',
// Dashboard
'dashboard.title': '控制面板',
'dashboard.welcome': '欢迎来到 fscan 内网渗透训练平台',
'dashboard.resetProgress': '重置进度',
'dashboard.resetConfirm': '确定要重置进度吗?这将清除所有已完成的挑战记录。',
'dashboard.totalScore': '总分',
'dashboard.maxScore': '满分',
'dashboard.completedChallenges': '已完成挑战',
'dashboard.completionRate': '完成率',
'dashboard.startTime': '开始时间',
'dashboard.submissions': '提交次数',
'dashboard.successful': '成功',
'dashboard.progress': '完成进度',
'dashboard.progressDesc': '已完成',
'dashboard.progressDesc2': '个挑战',
'dashboard.recentSubmissions': '最近提交',
'dashboard.recentSubmissionsDesc': '最新的 5 次 flag 提交记录',
'dashboard.noSubmissions': '暂无提交记录',
'dashboard.correct': '正确',
'dashboard.incorrect': '错误',
'dashboard.challenge': '挑战',
'dashboard.overview': '挑战概览',
'dashboard.overviewDesc': '按难度分类的挑战统计',
'dashboard.quickStart': '快速开始',
'dashboard.quickStart1': '进入攻击者容器:',
'dashboard.quickStart2': '开始扫描 DMZ 区:',
'dashboard.quickStart3': '在"挑战列表"页面查看所有挑战并提交 flag',
'dashboard.quickStart4': '在"网络拓扑"页面查看网络拓扑和攻击路径',
'dashboard.loading': '加载中...',
// Challenges
'challenges.title': '挑战列表',
'challenges.desc': '完成所有挑战,攻陷整个网络',
'challenges.all': '全部',
'challenges.search': '搜索挑战...',
'challenges.difficulty': '难度',
'challenges.points': '分',
'challenges.network': '网络',
'challenges.targets': '目标',
'challenges.status': '状态',
'challenges.completed': '已完成',
'challenges.locked': '未完成',
'challenges.submitFlag': '提交 Flag',
'challenges.viewHints': '查看提示',
'challenges.hideHints': '隐藏提示',
'challenges.hints': '提示',
'challenges.enterFlag': '输入 flag...',
'challenges.submit': '提交',
'challenges.submitting': '提交中...',
'challenges.noChallenges': '未找到匹配的挑战',
// Topology
'topology.title': '网络拓扑',
'topology.desc': '实时网络拓扑和攻击路径',
'topology.legend': '图例',
'topology.compromised': '已攻陷',
'topology.discovered': '已发现',
'topology.unknown': '未知',
'topology.nodeInfo': '节点信息',
'topology.selectNode': '点击节点查看详细信息',
'topology.name': '名称',
'topology.ip': 'IP 地址',
'topology.services': '服务',
'topology.status': '状态',
// Network Labels
'network.internet': '外网',
'network.dmz': 'DMZ',
'network.office': '办公网',
'network.production': '生产网',
'network.core': '核心网',
// Difficulty
'difficulty.Easy': 'Easy',
'difficulty.Medium': 'Medium',
'difficulty.Hard': 'Hard',
'difficulty.Expert': 'Expert',
// Common
'common.points': '分',
'common.score': '分数',
// Challenge Content
'challenge.1.name': 'DMZ 侦察',
'challenge.1.desc': '扫描 DMZ 区,发现 Web 服务器并获取第一个 flag',
'challenge.2.name': 'FTP 弱密码',
'challenge.2.desc': '通过 FTP 弱密码进入 DMZ 区并获取 SSH 密钥',
'challenge.3.name': 'VPN 网关突破',
'challenge.3.desc': '使用获取的 SSH 密钥连接 VPN 网关进入办公网',
'challenge.4.name': '办公网备份服务器',
'challenge.4.desc': '发现 Rsync 备份服务器并获取敏感文件',
'challenge.5.name': '生产网 Redis 渗透',
'challenge.5.desc': '利用 Redis 弱密码获取 flag 并准备横向移动',
'challenge.6.name': '核心网 MySQL 数据库',
'challenge.6.desc': '爆破 MySQL 数据库获取敏感信息',
'challenge.7.name': '最终目标 - MongoDB',
'challenge.7.desc': '攻陷 MongoDB 获取最终 flag,完成整个网络渗透',
'challenge.8.name': 'Elasticsearch 情报收集',
'challenge.8.desc': '利用 Elasticsearch 未授权访问获取生产网敏感信息',
'challenge.9.name': 'PostgreSQL 数据库渗透',
'challenge.9.desc': '爆破 PostgreSQL 数据库获取业务数据',
'challenge.10.name': 'MSSQL 数据库攻击',
'challenge.10.desc': '攻破 MSSQL 数据库获取企业核心数据',
'challenge.11.name': 'VNC 远程桌面入侵',
'challenge.11.desc': '通过 VNC 弱密码获取办公网主机控制权',
'challenge.12.name': '老旧 Telnet 服务',
'challenge.12.desc': '利用古老的 Telnet 服务获取办公网老旧主机访问权',
'challenge.13.name': '打印机 SMB 共享',
'challenge.13.desc': '发现办公网打印机的 SMB 共享服务,通过弱密码访问共享文件',
},
en: {
// Navigation
'nav.title': 'fscan Lab',
'nav.subtitle': 'Penetration Testing Platform',
'nav.dashboard': 'Dashboard',
'nav.network': 'Network',
'nav.challenges': 'Challenges',
// Dashboard
'dashboard.title': 'Dashboard',
'dashboard.welcome': 'Welcome to fscan Lab',
'dashboard.resetProgress': 'Reset Progress',
'dashboard.resetConfirm': 'Are you sure you want to reset progress? This will clear all completed challenges.',
'dashboard.totalScore': 'Total Score',
'dashboard.maxScore': 'Max',
'dashboard.completedChallenges': 'Completed',
'dashboard.completionRate': 'Completion',
'dashboard.startTime': 'Started',
'dashboard.submissions': 'Submissions',
'dashboard.successful': 'successful',
'dashboard.progress': 'Progress',
'dashboard.progressDesc': 'Completed',
'dashboard.progressDesc2': 'challenges',
'dashboard.recentSubmissions': 'Recent Submissions',
'dashboard.recentSubmissionsDesc': 'Last 5 flag submissions',
'dashboard.noSubmissions': 'No submissions yet',
'dashboard.correct': 'Correct',
'dashboard.incorrect': 'Incorrect',
'dashboard.challenge': 'Challenge',
'dashboard.overview': 'Overview',
'dashboard.overviewDesc': 'Challenges by difficulty',
'dashboard.quickStart': 'Quick Start',
'dashboard.quickStart1': 'Enter attacker container:',
'dashboard.quickStart2': 'Start scanning DMZ:',
'dashboard.quickStart3': 'View all challenges and submit flags in "Challenges" page',
'dashboard.quickStart4': 'View network topology in "Network" page',
'dashboard.loading': 'Loading...',
// Challenges
'challenges.title': 'Challenges',
'challenges.desc': 'Complete all challenges to pwn the network',
'challenges.all': 'All',
'challenges.search': 'Search challenges...',
'challenges.difficulty': 'Difficulty',
'challenges.points': 'pts',
'challenges.network': 'Network',
'challenges.targets': 'Targets',
'challenges.status': 'Status',
'challenges.completed': 'Completed',
'challenges.locked': 'Locked',
'challenges.submitFlag': 'Submit Flag',
'challenges.viewHints': 'View Hints',
'challenges.hideHints': 'Hide Hints',
'challenges.hints': 'Hints',
'challenges.enterFlag': 'Enter flag...',
'challenges.submit': 'Submit',
'challenges.submitting': 'Submitting...',
'challenges.noChallenges': 'No challenges found',
// Topology
'topology.title': 'Network Topology',
'topology.desc': 'Real-time network topology and attack path',
'topology.legend': 'Legend',
'topology.compromised': 'Compromised',
'topology.discovered': 'Discovered',
'topology.unknown': 'Unknown',
'topology.nodeInfo': 'Node Info',
'topology.selectNode': 'Select a node to view details',
'topology.name': 'Name',
'topology.ip': 'IP Address',
'topology.services': 'Services',
'topology.status': 'Status',
// Network Labels
'network.internet': 'Internet',
'network.dmz': 'DMZ',
'network.office': 'Office',
'network.production': 'Production',
'network.core': 'Core',
// Difficulty
'difficulty.Easy': 'Easy',
'difficulty.Medium': 'Medium',
'difficulty.Hard': 'Hard',
'difficulty.Expert': 'Expert',
// Common
'common.points': 'pts',
'common.score': 'score',
// Challenge Content
'challenge.1.name': 'DMZ Reconnaissance',
'challenge.1.desc': 'Scan DMZ network and discover the web server to get the first flag',
'challenge.2.name': 'FTP Weak Password',
'challenge.2.desc': 'Access DMZ through FTP weak password and obtain SSH key',
'challenge.3.name': 'VPN Gateway Breach',
'challenge.3.desc': 'Use SSH key to connect VPN gateway and enter office network',
'challenge.4.name': 'Office Backup Server',
'challenge.4.desc': 'Discover Rsync backup server and obtain sensitive files',
'challenge.5.name': 'Production Redis Attack',
'challenge.5.desc': 'Exploit Redis weak password to get flag and prepare lateral movement',
'challenge.6.name': 'Core MySQL Database',
'challenge.6.desc': 'Brute-force MySQL database to obtain sensitive information',
'challenge.7.name': 'Final Target - MongoDB',
'challenge.7.desc': 'Compromise MongoDB to get the final flag and pwn the entire network',
'challenge.8.name': 'Elasticsearch Intelligence Gathering',
'challenge.8.desc': 'Exploit Elasticsearch unauthorized access to obtain production network sensitive information',
'challenge.9.name': 'PostgreSQL Database Penetration',
'challenge.9.desc': 'Brute-force PostgreSQL database to obtain business data',
'challenge.10.name': 'MSSQL Database Attack',
'challenge.10.desc': 'Compromise MSSQL database to obtain enterprise core data',
'challenge.11.name': 'VNC Remote Desktop Intrusion',
'challenge.11.desc': 'Gain office network host control through VNC weak password',
'challenge.12.name': 'Legacy Telnet Service',
'challenge.12.desc': 'Exploit legacy Telnet service to gain access to old office host',
'challenge.13.name': 'Printer SMB Share',
'challenge.13.desc': 'Discover office printer SMB share service and access shared files via weak credentials',
},
}
export type Language = keyof typeof translations
export type TranslationKey = keyof typeof translations.zh