mirror of
https://github.com/shadow1ng/fscan.git
synced 2026-09-25 04:31:52 +08:00
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)
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
package i18n
|
||||
|
||||
import "embed"
|
||||
|
||||
//go:embed locales/*.yaml
|
||||
var localeFS embed.FS
|
||||
@@ -0,0 +1,93 @@
|
||||
package i18n
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"sync"
|
||||
|
||||
"github.com/nicksnyder/go-i18n/v2/i18n"
|
||||
"golang.org/x/text/language"
|
||||
"gopkg.in/yaml.v3"
|
||||
)
|
||||
|
||||
// 支持的语言常量
|
||||
const (
|
||||
LangZH = "zh"
|
||||
LangEN = "en"
|
||||
)
|
||||
|
||||
// 默认配置
|
||||
const (
|
||||
DefaultLanguage = LangZH
|
||||
FallbackLanguage = LangEN
|
||||
)
|
||||
|
||||
var (
|
||||
bundle *i18n.Bundle
|
||||
localizer *i18n.Localizer
|
||||
lang = DefaultLanguage
|
||||
mu sync.RWMutex
|
||||
)
|
||||
|
||||
func init() {
|
||||
bundle = i18n.NewBundle(language.Chinese)
|
||||
bundle.RegisterUnmarshalFunc("yaml", yaml.Unmarshal)
|
||||
|
||||
// 从embed加载翻译文件
|
||||
if _, err := bundle.LoadMessageFileFS(localeFS, "locales/zh.yaml"); err != nil {
|
||||
panic(fmt.Sprintf("failed to load zh.yaml: %v", err))
|
||||
}
|
||||
if _, err := bundle.LoadMessageFileFS(localeFS, "locales/en.yaml"); err != nil {
|
||||
panic(fmt.Sprintf("failed to load en.yaml: %v", err))
|
||||
}
|
||||
|
||||
localizer = i18n.NewLocalizer(bundle, lang, FallbackLanguage)
|
||||
}
|
||||
|
||||
// SetLanguage 设置当前语言
|
||||
func SetLanguage(l string) {
|
||||
mu.Lock()
|
||||
defer mu.Unlock()
|
||||
lang = l
|
||||
localizer = i18n.NewLocalizer(bundle, lang, FallbackLanguage)
|
||||
}
|
||||
|
||||
// GetText 获取国际化文本(无参数)
|
||||
func GetText(key string) string {
|
||||
mu.RLock()
|
||||
loc := localizer
|
||||
mu.RUnlock()
|
||||
|
||||
msg, err := loc.Localize(&i18n.LocalizeConfig{
|
||||
MessageID: key,
|
||||
})
|
||||
if err != nil || msg == "" {
|
||||
return key
|
||||
}
|
||||
return msg
|
||||
}
|
||||
|
||||
// Tr 获取国际化文本并格式化(变参版本)
|
||||
// 参数按顺序映射为 {{.Arg1}}, {{.Arg2}}, ...
|
||||
func Tr(key string, args ...interface{}) string {
|
||||
mu.RLock()
|
||||
loc := localizer
|
||||
mu.RUnlock()
|
||||
|
||||
data := make(map[string]interface{})
|
||||
for i, arg := range args {
|
||||
data[fmt.Sprintf("Arg%d", i+1)] = arg
|
||||
}
|
||||
|
||||
msg, err := loc.Localize(&i18n.LocalizeConfig{
|
||||
MessageID: key,
|
||||
TemplateData: data,
|
||||
})
|
||||
if err != nil || msg == "" {
|
||||
// 回退:尝试用fmt.Sprintf格式化key本身
|
||||
if len(args) > 0 {
|
||||
return fmt.Sprintf(key, args...)
|
||||
}
|
||||
return key
|
||||
}
|
||||
return msg
|
||||
}
|
||||
@@ -0,0 +1,743 @@
|
||||
# fscan English translation file
|
||||
# Contains only actually used messages (115)
|
||||
|
||||
# ========================= Command Line Arguments (71) =========================
|
||||
flag_host:
|
||||
other: "Target host: IP, IP range, IP file, domain"
|
||||
flag_exclude_hosts:
|
||||
other: "Exclude hosts"
|
||||
flag_exclude_hosts_file:
|
||||
other: "Exclude hosts file"
|
||||
flag_ports:
|
||||
other: "Ports: default 1000 common ports"
|
||||
flag_exclude_ports:
|
||||
other: "Exclude ports"
|
||||
flag_hosts_file:
|
||||
other: "Hosts file"
|
||||
flag_ports_file:
|
||||
other: "Ports file"
|
||||
flag_scan_mode:
|
||||
other: "Scan mode: all(all plugins), icmp(alive detection), or specific plugin names"
|
||||
flag_thread_num:
|
||||
other: "Port scan thread count"
|
||||
flag_timeout:
|
||||
other: "Port scan timeout"
|
||||
flag_module_thread_num:
|
||||
other: "Module thread count"
|
||||
flag_global_timeout:
|
||||
other: "Global timeout"
|
||||
flag_disable_ping:
|
||||
other: "Disable ping detection"
|
||||
flag_alive_only:
|
||||
other: "Alive detection only"
|
||||
flag_username:
|
||||
other: "Username"
|
||||
flag_password:
|
||||
other: "Password"
|
||||
flag_add_users:
|
||||
other: "Additional usernames"
|
||||
flag_add_passwords:
|
||||
other: "Additional passwords"
|
||||
flag_users_file:
|
||||
other: "Username dictionary file"
|
||||
flag_passwords_file:
|
||||
other: "Password dictionary file"
|
||||
flag_userpass_file:
|
||||
other: "Username:password pairs file"
|
||||
flag_hash_file:
|
||||
other: "Hash file"
|
||||
flag_hash_value:
|
||||
other: "Hash value"
|
||||
flag_domain:
|
||||
other: "Domain name"
|
||||
flag_ssh_key:
|
||||
other: "SSH private key file"
|
||||
flag_target_url:
|
||||
other: "Target URL"
|
||||
flag_urls_file:
|
||||
other: "URLs file"
|
||||
flag_cookie:
|
||||
other: "HTTP Cookie"
|
||||
flag_web_timeout:
|
||||
other: "Web timeout"
|
||||
flag_max_redirects:
|
||||
other: "Maximum HTTP redirects"
|
||||
flag_http_proxy:
|
||||
other: "HTTP proxy"
|
||||
flag_socks5_proxy:
|
||||
other: "Use SOCKS5 proxy (e.g.: 127.0.0.1:1080)"
|
||||
flag_iface:
|
||||
other: "Specify local interface IP address (VPN scenario, e.g.: 10.8.0.5)"
|
||||
flag_poc_path:
|
||||
other: "POC script path"
|
||||
flag_poc_name:
|
||||
other: "POC name"
|
||||
flag_poc_full:
|
||||
other: "Full POC scan"
|
||||
flag_dns_log:
|
||||
other: "DNS logging"
|
||||
flag_poc_num:
|
||||
other: "POC concurrency"
|
||||
flag_no_poc:
|
||||
other: "Disable POC scan"
|
||||
flag_redis_file:
|
||||
other: "Redis file"
|
||||
flag_redis_shell:
|
||||
other: "Redis Shell"
|
||||
flag_redis_write_path:
|
||||
other: "Redis write path"
|
||||
flag_redis_write_content:
|
||||
other: "Redis write content"
|
||||
flag_redis_write_file:
|
||||
other: "Redis write file"
|
||||
flag_disable_redis:
|
||||
other: "Disable Redis exploitation"
|
||||
flag_disable_brute:
|
||||
other: "Disable brute force"
|
||||
flag_max_retries:
|
||||
other: "Maximum retries"
|
||||
flag_packet_rate_limit:
|
||||
other: "Maximum packets per minute (0 means no limit)"
|
||||
flag_max_packet_count:
|
||||
other: "Maximum total packet count for entire program (0 means no limit)"
|
||||
flag_icmp_rate:
|
||||
other: "ICMP packet rate (ratio to max rate, default 0.1, ~1463 pps)"
|
||||
flag_output_file:
|
||||
other: "Output file"
|
||||
flag_output_format:
|
||||
other: "Output format: txt, json, csv"
|
||||
flag_disable_save:
|
||||
other: "Disable result saving"
|
||||
flag_silent_mode:
|
||||
other: "Silent mode"
|
||||
flag_no_color:
|
||||
other: "Disable color output"
|
||||
flag_log_level:
|
||||
other: "Log level"
|
||||
flag_disable_progress:
|
||||
other: "Disable progress bar"
|
||||
flag_shellcode:
|
||||
other: "Shellcode"
|
||||
flag_reverse_shell_target:
|
||||
other: "Reverse shell target address:port (e.g.: 192.168.1.100:4444)"
|
||||
flag_start_socks5_server:
|
||||
other: "Start SOCKS5 proxy server on port (e.g.: 1080)"
|
||||
flag_forward_shell_port:
|
||||
other: "Start forward shell server on port (e.g.: 4444)"
|
||||
flag_persistence_file:
|
||||
other: "Linux persistence target file path (supports .elf/.sh files)"
|
||||
flag_win_pe_file:
|
||||
other: "Windows persistence target PE file path (supports .exe/.dll files)"
|
||||
flag_keylogger_output:
|
||||
other: "Keylogger output file path"
|
||||
flag_download_url:
|
||||
other: "URL of the file to download"
|
||||
flag_download_path:
|
||||
other: "Save path for downloaded file"
|
||||
flag_language:
|
||||
other: "Language: zh, en"
|
||||
flag_help:
|
||||
other: "Show help information"
|
||||
# ========================= Scan Mode Messages =========================
|
||||
scan_mode_service_selected:
|
||||
other: "Service scan mode selected"
|
||||
scan_mode_alive_selected:
|
||||
other: "Alive detection mode selected"
|
||||
scan_mode_local_selected:
|
||||
other: "Local scan mode selected"
|
||||
scan_mode_web_selected:
|
||||
other: "Web scan mode selected"
|
||||
scan_info_start:
|
||||
other: "Starting information scan"
|
||||
scan_host_start:
|
||||
other: "Starting host scan"
|
||||
scan_vulnerability_start:
|
||||
other: "Starting vulnerability scan"
|
||||
scan_no_service_plugins:
|
||||
other: "No available service plugins found"
|
||||
scan_snmp_udp_ports_added:
|
||||
other: "Detected SNMP port 161, adding UDP ports to scan targets"
|
||||
|
||||
# ========================= Scan Strategy Messages =========================
|
||||
scan_strategy_alive_name:
|
||||
other: "Alive Detection"
|
||||
scan_strategy_alive_desc:
|
||||
other: "Fast detection of host alive status"
|
||||
scan_strategy_local_name:
|
||||
other: "Local Scan"
|
||||
scan_strategy_local_desc:
|
||||
other: "Collect local system information"
|
||||
scan_strategy_service_name:
|
||||
other: "Service Scan"
|
||||
scan_strategy_service_desc:
|
||||
other: "Scan host services and vulnerabilities"
|
||||
scan_strategy_web_name:
|
||||
other: "Web Scan"
|
||||
scan_strategy_web_desc:
|
||||
other: "Scan web application vulnerabilities and information"
|
||||
|
||||
# ========================= Alive Detection Messages =========================
|
||||
scan_alive_start:
|
||||
other: "Starting alive detection"
|
||||
scan_alive_summary_title:
|
||||
other: "Alive Detection Summary"
|
||||
scan_alive_hosts_list:
|
||||
other: "Alive hosts list:"
|
||||
|
||||
# ========================= Progress Messages =========================
|
||||
progress_scanning_description:
|
||||
other: "Scanning Progress"
|
||||
progress_scan_completed:
|
||||
other: "Scan Completed:"
|
||||
concurrency_plugin:
|
||||
other: "Plugins"
|
||||
concurrency_local_plugin:
|
||||
other: "Local Plugins"
|
||||
concurrency_service_plugin:
|
||||
other: "Service Plugins"
|
||||
concurrency_web_plugin:
|
||||
other: "Web Plugins"
|
||||
|
||||
# ========================= Parse Error Messages =========================
|
||||
parse_error_target_empty:
|
||||
other: "Target input is empty"
|
||||
parse_error_no_hosts:
|
||||
other: "No valid target hosts found after parsing"
|
||||
parse_error_empty_input:
|
||||
other: "Input parameters are empty"
|
||||
parse_error_parser_not_init:
|
||||
other: "Parser not initialized"
|
||||
target_local_mode:
|
||||
other: "Local scan mode"
|
||||
param_conflict_ao_icmp_both:
|
||||
other: "Note: Both -ao and -m icmp specified, both enable alive detection mode"
|
||||
|
||||
# ========================= Parser Messages =========================
|
||||
parser_empty_input:
|
||||
other: "Input parameters are empty"
|
||||
parser_file_scan_failed:
|
||||
other: "File scan failed"
|
||||
parser_username_invalid_chars:
|
||||
other: "Username contains invalid characters"
|
||||
parser_password_empty:
|
||||
other: "Empty passwords not allowed"
|
||||
parser_hash_empty:
|
||||
other: "Hash value is empty"
|
||||
parser_hash_invalid_format:
|
||||
other: "Invalid hash format, requires 32-character hexadecimal"
|
||||
|
||||
# ========================= Config Messages =========================
|
||||
config_web_timeout_warning:
|
||||
other: "Web timeout is larger than normal timeout, may cause unexpected behavior"
|
||||
|
||||
# ========================= Plugin Scan Messages (with parameters) =========================
|
||||
scan_plugin_not_found:
|
||||
other: "No plugin found for scan type {{.Arg1}}, skipped"
|
||||
|
||||
# ========================= SSH Plugin Messages =========================
|
||||
ssh_key_auth_success:
|
||||
other: "SSH key authentication successful: {{.Arg1}} [{{.Arg2}}]"
|
||||
ssh_pwd_auth_success:
|
||||
other: "SSH password authentication successful: {{.Arg1}} [{{.Arg2}}:{{.Arg3}}]"
|
||||
ssh_key_read_failed:
|
||||
other: "Failed to read SSH private key: {{.Arg1}}"
|
||||
ssh_service_identified:
|
||||
other: "SSH service identified: {{.Arg1}} - {{.Arg2}}"
|
||||
|
||||
# ========================= Redis Plugin Messages =========================
|
||||
redis_unauth_success:
|
||||
other: "Redis unauthorized access: {{.Arg1}}"
|
||||
redis_service_identified:
|
||||
other: "Redis service identified: {{.Arg1}} - {{.Arg2}}"
|
||||
|
||||
# ========================= ICMP Messages =========================
|
||||
trying_no_listen_icmp:
|
||||
other: "Trying no-listen ICMP detection"
|
||||
insufficient_privileges:
|
||||
other: "Insufficient privileges for raw ICMP detection"
|
||||
switching_to_ping:
|
||||
other: "Switching to ping command mode"
|
||||
icmp_listen_failed:
|
||||
other: "ICMP listen failed: {{.Arg1}}"
|
||||
icmp_connect_failed:
|
||||
other: "ICMP connect failed: {{.Arg1}}"
|
||||
icmp_listener_panic:
|
||||
other: "ICMP listener goroutine panic: {{.Arg1}}"
|
||||
host_alive:
|
||||
other: "{{.Arg1}} alive (protocol: {{.Arg2}})"
|
||||
proxy_mode_disable_icmp:
|
||||
other: "Proxy mode detected, disabling ICMP scan"
|
||||
segment_16_alive:
|
||||
other: "/16 segment {{.Arg1}} alive: {{.Arg2}}"
|
||||
segment_24_alive:
|
||||
other: "/24 segment {{.Arg1}} alive: {{.Arg2}}"
|
||||
|
||||
# ========================= Alive Scan Stats Messages =========================
|
||||
parse_target_failed:
|
||||
other: "Parse target failed: {{.Arg1}}"
|
||||
alive_scan_start_single:
|
||||
other: "Starting alive scan: {{.Arg1}}"
|
||||
alive_scan_start_multi:
|
||||
other: "Starting alive scan: {{.Arg1}} targets (first: {{.Arg2}})"
|
||||
alive_total_hosts:
|
||||
other: "Total hosts: {{.Arg1}}"
|
||||
alive_hosts_count:
|
||||
other: "Alive hosts: {{.Arg1}}"
|
||||
alive_dead_hosts:
|
||||
other: "Dead hosts: {{.Arg1}}"
|
||||
alive_success_rate:
|
||||
other: "Success rate: {{.Arg1}}"
|
||||
alive_scan_duration:
|
||||
other: "Scan duration: {{.Arg1}}"
|
||||
alive_host_item:
|
||||
other: " [{{.Arg1}}] {{.Arg2}}"
|
||||
|
||||
# ========================= Scanner Messages =========================
|
||||
http_client_init_failed:
|
||||
other: "HTTP client initialization failed: {{.Arg1}}"
|
||||
active_reverse_shell:
|
||||
other: "Active reverse shell detected, keeping program running..."
|
||||
active_socks5_proxy:
|
||||
other: "Active SOCKS5 proxy detected, keeping program running..."
|
||||
active_forward_shell:
|
||||
other: "Active forward shell detected, keeping program running..."
|
||||
press_ctrl_c_exit:
|
||||
other: "Press Ctrl+C to exit"
|
||||
received_exit_signal:
|
||||
other: "Received exit signal, shutting down..."
|
||||
scan_task_complete:
|
||||
other: "Scan task complete, duration {{.Arg1}}, scanned {{.Arg2}} targets"
|
||||
plugin_panic:
|
||||
other: "Plugin {{.Arg1}} panic while scanning {{.Arg2}}:{{.Arg3}}: {{.Arg4}}"
|
||||
plugin_scan_error:
|
||||
other: "Plugin scan error {{.Arg1}}:{{.Arg2}} - {{.Arg3}}"
|
||||
|
||||
# ========================= Port Scan Messages =========================
|
||||
invalid_port:
|
||||
other: "Invalid port: {{.Arg1}}"
|
||||
port_scan_start:
|
||||
other: "Starting port scan, {{.Arg1}} tasks, estimated {{.Arg2}} seconds ({{.Arg3}} minutes)"
|
||||
thread_pool_create_failed:
|
||||
other: "Failed to create thread pool: {{.Arg1}}"
|
||||
port_scan_complete:
|
||||
other: "Scan complete, found {{.Arg1}} open ports"
|
||||
scan_failure_rate_high:
|
||||
other: "Scan failure rate too high: {{.Arg1}} ({{.Arg2}}/{{.Arg3}} failed)"
|
||||
scan_failure_reason:
|
||||
other: "Possible reason: Thread count too high causing resource exhaustion"
|
||||
scan_reduce_threads_suggestion:
|
||||
other: "Suggestion: Reduce thread count (current {{.Arg1}}) to 50-100, or increase system ulimit"
|
||||
scan_partial_failure:
|
||||
other: "Partial port scan failure: {{.Arg1}} ({{.Arg2}}/{{.Arg3}})"
|
||||
scan_reduce_threads_accuracy:
|
||||
other: "Suggestion: Reduce thread count (current {{.Arg1}}) to improve accuracy"
|
||||
resource_exhausted_warning:
|
||||
other: "Resource exhausted errors {{.Arg1}} times, suggest reducing thread count (-t) or increase ulimit"
|
||||
port_open:
|
||||
other: "Port open {{.Arg1}}"
|
||||
port_open_http:
|
||||
other: "Port open {{.Arg1}} [http](HTTP probe)"
|
||||
|
||||
# ========================= Local Scan Messages =========================
|
||||
local_plugin_info:
|
||||
other: "Local plugin: {{.Arg1}}"
|
||||
local_plugin_not_specified:
|
||||
other: "Local plugin: Not specified"
|
||||
local_plugin_not_found:
|
||||
other: "Error: Local plugin '{{.Arg1}}' does not exist or is not available on current platform"
|
||||
|
||||
# ========================= Service Scan Messages =========================
|
||||
service_plugin_info:
|
||||
other: "Service plugins: {{.Arg1}}"
|
||||
service_plugin_custom:
|
||||
other: "Service plugins: Custom specified ({{.Arg1}})"
|
||||
service_plugin_none:
|
||||
other: "Service plugins: None available"
|
||||
port_out_of_range:
|
||||
other: "Port out of range: {{.Arg1}} (valid range: 1-65535)"
|
||||
invalid_target_format:
|
||||
other: "Invalid target format: {{.Arg1}}"
|
||||
host_port_invalid:
|
||||
other: "Host {{.Arg1}} port format invalid: {{.Arg2}}"
|
||||
host_port_out_of_range:
|
||||
other: "Host {{.Arg1}} port out of range: {{.Arg2}} (valid range: 1-65535)"
|
||||
alive_hosts_count_info:
|
||||
other: "Alive hosts count: {{.Arg1}}"
|
||||
alive_ports_count:
|
||||
other: "Alive ports count: {{.Arg1}}"
|
||||
|
||||
# ========================= Web Scan Messages =========================
|
||||
http_proxy_config_error:
|
||||
other: "HTTP proxy configuration error: {{.Arg1}}"
|
||||
socks5_not_supported_web:
|
||||
other: "Web detection does not support SOCKS5 proxy, recommend using HTTP proxy (-proxy)"
|
||||
url_parse_failed:
|
||||
other: "Failed to parse URL: {{.Arg1}} - {{.Arg2}}"
|
||||
invalid_scan_target:
|
||||
other: "Invalid scan target"
|
||||
poc_load_failed:
|
||||
other: "POC load failed, cannot execute scan"
|
||||
|
||||
# ========================= Base Scan Strategy Messages =========================
|
||||
plugins_custom_specified:
|
||||
other: "{{.Arg1}}: Custom specified ({{.Arg2}})"
|
||||
plugins_info:
|
||||
other: "{{.Arg1}}: {{.Arg2}}"
|
||||
plugins_none:
|
||||
other: "{{.Arg1}}: None available"
|
||||
start_local_scan:
|
||||
other: "Starting local scan"
|
||||
start_service_scan:
|
||||
other: "Starting service scan"
|
||||
start_web_scan:
|
||||
other: "Starting web scan"
|
||||
start_scan:
|
||||
other: "Starting scan"
|
||||
|
||||
# ========================= Service Plugin Messages =========================
|
||||
# Format: {service}_{type} - type: credential/unauth/service/vuln
|
||||
ldap_credential:
|
||||
other: "LDAP {{.Arg1}} {{.Arg2}}:{{.Arg3}}"
|
||||
ldap_service:
|
||||
other: "LDAP {{.Arg1}} {{.Arg2}}"
|
||||
kafka_credential:
|
||||
other: "Kafka {{.Arg1}} {{.Arg2}}:{{.Arg3}}"
|
||||
kafka_service:
|
||||
other: "Kafka {{.Arg1}} {{.Arg2}}"
|
||||
ftp_service:
|
||||
other: "FTP {{.Arg1}} {{.Arg2}}"
|
||||
rdp_service:
|
||||
other: "RDP {{.Arg1}} {{.Arg2}}"
|
||||
activemq_credential:
|
||||
other: "ActiveMQ {{.Arg1}} {{.Arg2}}:{{.Arg3}}"
|
||||
activemq_service:
|
||||
other: "ActiveMQ {{.Arg1}} {{.Arg2}}"
|
||||
telnet_credential:
|
||||
other: "Telnet {{.Arg1}} {{.Arg2}}:{{.Arg3}}"
|
||||
telnet_service:
|
||||
other: "Telnet {{.Arg1}} {{.Arg2}}"
|
||||
cassandra_credential:
|
||||
other: "Cassandra {{.Arg1}} {{.Arg2}}:{{.Arg3}}"
|
||||
cassandra_service:
|
||||
other: "Cassandra {{.Arg1}} {{.Arg2}}"
|
||||
cassandra_unauth:
|
||||
other: "Cassandra {{.Arg1}} No authentication required"
|
||||
vnc_unauth:
|
||||
other: "VNC {{.Arg1}} Unauthorized access"
|
||||
vnc_credential:
|
||||
other: "VNC {{.Arg1}} Password: {{.Arg2}}"
|
||||
smtp_credential:
|
||||
other: "SMTP {{.Arg1}} {{.Arg2}}:{{.Arg3}}"
|
||||
smtp_service:
|
||||
other: "SMTP {{.Arg1}} {{.Arg2}}"
|
||||
mongodb_unauth:
|
||||
other: "MongoDB {{.Arg1}} Unauthorized access"
|
||||
mongodb_credential:
|
||||
other: "MongoDB {{.Arg1}} {{.Arg2}}:{{.Arg3}}"
|
||||
mongodb_auth_required:
|
||||
other: "MongoDB {{.Arg1}} Authentication required"
|
||||
elasticsearch_credential:
|
||||
other: "Elasticsearch {{.Arg1}} {{.Arg2}}:{{.Arg3}}"
|
||||
elasticsearch_service:
|
||||
other: "Elasticsearch {{.Arg1}} {{.Arg2}}"
|
||||
mysql_credential:
|
||||
other: "MySQL {{.Arg1}} {{.Arg2}}:{{.Arg3}}"
|
||||
mysql_service:
|
||||
other: "MySQL {{.Arg1}} {{.Arg2}}"
|
||||
memcached_unauth:
|
||||
other: "Memcached {{.Arg1}} Unauthorized access"
|
||||
memcached_service:
|
||||
other: "Memcached {{.Arg1}} {{.Arg2}}"
|
||||
rsync_credential:
|
||||
other: "Rsync {{.Arg1}} {{.Arg2}}:{{.Arg3}}"
|
||||
rsync_service:
|
||||
other: "Rsync {{.Arg1}} {{.Arg2}}"
|
||||
oracle_credential:
|
||||
other: "Oracle {{.Arg1}} {{.Arg2}}:{{.Arg3}}"
|
||||
oracle_service:
|
||||
other: "Oracle {{.Arg1}} {{.Arg2}}"
|
||||
oracle_default_account:
|
||||
other: "Oracle {{.Arg1}} Default account: {{.Arg2}}:{{.Arg3}}"
|
||||
postgresql_credential:
|
||||
other: "PostgreSQL {{.Arg1}} {{.Arg2}}:{{.Arg3}}"
|
||||
postgresql_service:
|
||||
other: "PostgreSQL {{.Arg1}} {{.Arg2}}"
|
||||
postgresql_vuln:
|
||||
other: "PostgreSQL {{.Arg1}} {{.Arg2}}"
|
||||
smb_service:
|
||||
other: "SMB {{.Arg1}} {{.Arg2}}"
|
||||
rabbitmq_credential:
|
||||
other: "RabbitMQ {{.Arg1}} {{.Arg2}}:{{.Arg3}}"
|
||||
rabbitmq_service:
|
||||
other: "RabbitMQ {{.Arg1}} {{.Arg2}}"
|
||||
neo4j_unauth:
|
||||
other: "Neo4j {{.Arg1}} Unauthorized access"
|
||||
neo4j_credential:
|
||||
other: "Neo4j {{.Arg1}} {{.Arg2}}:{{.Arg3}}"
|
||||
neo4j_service:
|
||||
other: "Neo4j {{.Arg1}} {{.Arg2}}"
|
||||
mssql_credential:
|
||||
other: "MSSQL {{.Arg1}} {{.Arg2}}:{{.Arg3}}"
|
||||
mssql_service:
|
||||
other: "MSSQL {{.Arg1}} {{.Arg2}}"
|
||||
|
||||
# ========================= Vulnerability Detection Messages =========================
|
||||
smbghost_vuln:
|
||||
other: "SMB Ghost {{.Arg1}} CVE-2020-0796 Vulnerable"
|
||||
ms17010_start:
|
||||
other: "MS17-010 exploitation started: {{.Arg1}}"
|
||||
ms17010_complete:
|
||||
other: "MS17-010 exploitation completed: {{.Arg1}}"
|
||||
ms17010_shellcode_complete:
|
||||
other: "{{.Arg1}} MS17-010 exploitation completed (Shellcode length: {{.Arg2}})"
|
||||
ms17010_protocol_decrypt_error:
|
||||
other: "Protocol request decryption error: {{.Arg1}}"
|
||||
ms17010_protocol_decode_error:
|
||||
other: "Protocol request decoding error: {{.Arg1}}"
|
||||
ms17010_session_decrypt_error:
|
||||
other: "Session request decryption error: {{.Arg1}}"
|
||||
ms17010_session_decode_error:
|
||||
other: "Session request decoding error: {{.Arg1}}"
|
||||
ms17010_connect_decrypt_error:
|
||||
other: "Connection request decryption error: {{.Arg1}}"
|
||||
ms17010_connect_decode_error:
|
||||
other: "Connection request decoding error: {{.Arg1}}"
|
||||
ms17010_pipe_decrypt_error:
|
||||
other: "Pipe request decryption error: {{.Arg1}}"
|
||||
ms17010_pipe_decode_error:
|
||||
other: "Pipe request decoding error: {{.Arg1}}"
|
||||
|
||||
# ========================= Redis Plugin Messages =========================
|
||||
redis_reconnect_failed:
|
||||
other: "Failed to reconnect to Redis: {{.Arg1}}"
|
||||
redis_config_failed:
|
||||
other: "Failed to get Redis config: {{.Arg1}}"
|
||||
redis_write_failed:
|
||||
other: "File write failed: {{.Arg1}}"
|
||||
redis_write_success:
|
||||
other: "Successfully wrote file: {{.Arg1}}"
|
||||
redis_read_failed:
|
||||
other: "Failed to read local file: {{.Arg1}}"
|
||||
redis_file_write_success:
|
||||
other: "Successfully wrote content of {{.Arg1}} to {{.Arg2}}"
|
||||
redis_ssh_key_failed:
|
||||
other: "SSH key write failed: {{.Arg1}}"
|
||||
redis_ssh_key_success:
|
||||
other: "SSH key written successfully"
|
||||
redis_cron_failed:
|
||||
other: "Cron job write failed: {{.Arg1}}"
|
||||
redis_cron_success:
|
||||
other: "Cron job written successfully"
|
||||
redis_restore_failed:
|
||||
other: "Failed to restore database config: {{.Arg1}}"
|
||||
|
||||
# ========================= Local Plugin Messages =========================
|
||||
# Cron task persistence
|
||||
crontask_success:
|
||||
other: "Cron task persistence completed: {{.Arg1}} methods succeeded"
|
||||
|
||||
# Keylogger
|
||||
keylogger_success:
|
||||
other: "Keylogging completed, captured {{.Arg1}} keyboard events"
|
||||
keylogger_save_failed:
|
||||
other: "Failed to save keylog: {{.Arg1}}"
|
||||
keylogger_no_input:
|
||||
other: "No keyboard input captured"
|
||||
|
||||
# Environment info
|
||||
envinfo_sensitive:
|
||||
other: "Found sensitive environment variable: {{.Arg1}}"
|
||||
|
||||
# Windows WMI
|
||||
winwmi_success:
|
||||
other: "Windows WMI event subscription persistence completed: {{.Arg1}} items"
|
||||
|
||||
# Cleaner
|
||||
cleaner_success:
|
||||
other: "Trace cleaning completed: {{.Arg1}} files, {{.Arg2}} system entries"
|
||||
cleaner_history_found:
|
||||
other: "Found history file: {{.Arg1}} (requires manual cleanup)"
|
||||
|
||||
# Downloader
|
||||
downloader_success:
|
||||
other: "File download completed: {{.Arg1}} -> {{.Arg2}} (size: {{.Arg3}} bytes)"
|
||||
|
||||
# Forward shell
|
||||
forwardshell_complete:
|
||||
other: "Forward shell service completed - port: {{.Arg1}}"
|
||||
forwardshell_started:
|
||||
other: "Forward shell server started on 0.0.0.0:{{.Arg1}}"
|
||||
forwardshell_accept_failed:
|
||||
other: "Failed to accept connection: {{.Arg1}}"
|
||||
forwardshell_client_connected:
|
||||
other: "Client connected from: {{.Arg1}}"
|
||||
forwardshell_read_failed:
|
||||
other: "Failed to read client command: {{.Arg1}}"
|
||||
|
||||
# AV detection
|
||||
avdetect_load_failed:
|
||||
other: "Failed to load AV database: {{.Arg1}}"
|
||||
avdetect_loaded:
|
||||
other: "Loaded {{.Arg1}} AV product info"
|
||||
avdetect_found:
|
||||
other: "Detected AV: {{.Arg1}} ({{.Arg2}} processes)"
|
||||
avdetect_process:
|
||||
other: " - {{.Arg1}}"
|
||||
|
||||
# Windows startup folder
|
||||
winstartup_success:
|
||||
other: "Windows startup folder persistence completed: {{.Arg1}} methods"
|
||||
|
||||
# File info
|
||||
fileinfo_sensitive:
|
||||
other: "Found sensitive file: {{.Arg1}}"
|
||||
fileinfo_potential:
|
||||
other: "Found potentially sensitive file: {{.Arg1}}"
|
||||
|
||||
# DC info
|
||||
dcinfo_not_joined:
|
||||
other: "Current computer is not joined to a domain"
|
||||
dcinfo_success:
|
||||
other: "Domain controller info collection completed: {{.Arg1}} categories succeeded"
|
||||
|
||||
# Windows service
|
||||
winservice_success:
|
||||
other: "Windows service persistence completed: {{.Arg1}} items"
|
||||
|
||||
# Shell environment
|
||||
shellenv_success:
|
||||
other: "Shell environment persistence completed: {{.Arg1}} methods succeeded"
|
||||
|
||||
# LD_PRELOAD
|
||||
ldpreload_success:
|
||||
other: "LD_PRELOAD persistence completed: {{.Arg1}} methods succeeded"
|
||||
|
||||
# SOCKS5 proxy
|
||||
socks5_starting:
|
||||
other: "Starting SOCKS5 proxy on port {{.Arg1}}"
|
||||
socks5_complete:
|
||||
other: "SOCKS5 proxy completed - port: {{.Arg1}}"
|
||||
socks5_started:
|
||||
other: "SOCKS5 proxy server started on 127.0.0.1:{{.Arg1}}"
|
||||
socks5_cancelled:
|
||||
other: "SOCKS5 proxy server cancelled by context"
|
||||
socks5_accept_failed:
|
||||
other: "Failed to accept connection: {{.Arg1}}"
|
||||
socks5_handshake_failed:
|
||||
other: "SOCKS5 handshake failed: {{.Arg1}}"
|
||||
socks5_request_failed:
|
||||
other: "SOCKS5 request handling failed: {{.Arg1}}"
|
||||
socks5_connected:
|
||||
other: "SOCKS5 proxy connection established"
|
||||
|
||||
# Reverse shell
|
||||
reverseshell_complete:
|
||||
other: "Reverse shell completed - target: {{.Arg1}}"
|
||||
reverseshell_connected:
|
||||
other: "Reverse shell connected to {{.Arg1}}:{{.Arg2}}"
|
||||
|
||||
# Systemd service
|
||||
systemdservice_success:
|
||||
other: "Systemd service persistence completed: {{.Arg1}} methods succeeded"
|
||||
|
||||
# System info
|
||||
systeminfo_start:
|
||||
other: "Starting system information collection"
|
||||
systeminfo_os:
|
||||
other: "Operating System: {{.Arg1}}"
|
||||
systeminfo_arch:
|
||||
other: "Architecture: {{.Arg1}}"
|
||||
systeminfo_cpu:
|
||||
other: "CPU Cores: {{.Arg1}}"
|
||||
systeminfo_hostname:
|
||||
other: "Hostname: {{.Arg1}}"
|
||||
systeminfo_user:
|
||||
other: "Current User: {{.Arg1}}"
|
||||
systeminfo_homedir:
|
||||
other: "Home Directory: {{.Arg1}}"
|
||||
systeminfo_workdir:
|
||||
other: "Working Directory: {{.Arg1}}"
|
||||
systeminfo_tempdir:
|
||||
other: "Temp Directory: {{.Arg1}}"
|
||||
systeminfo_pathcount:
|
||||
other: "PATH entries: {{.Arg1}}"
|
||||
systeminfo_winver:
|
||||
other: "Windows Version: {{.Arg1}}"
|
||||
systeminfo_domain:
|
||||
other: "User Domain: {{.Arg1}}"
|
||||
systeminfo_kernel:
|
||||
other: "System Kernel: {{.Arg1}}"
|
||||
systeminfo_distro:
|
||||
other: "Distribution: {{.Arg1}}"
|
||||
systeminfo_distro_exists:
|
||||
other: "Distribution: /etc/os-release exists"
|
||||
systeminfo_whoami:
|
||||
other: "Current User (whoami): {{.Arg1}}"
|
||||
|
||||
# Windows scheduled task
|
||||
winschtask_success:
|
||||
other: "Windows scheduled task persistence completed: {{.Arg1}} items"
|
||||
|
||||
# Windows registry
|
||||
winregistry_success:
|
||||
other: "Windows registry persistence completed: {{.Arg1}} items"
|
||||
|
||||
# Minidump
|
||||
minidump_panic:
|
||||
other: "Minidump plugin panic: {{.Arg1}}"
|
||||
minidump_success:
|
||||
other: "Successfully dumped lsass.exe memory to file: {{.Arg1}} (size: {{.Arg2}} bytes)"
|
||||
|
||||
# ========================= WebScan Messages =========================
|
||||
webscan_target_url_failed:
|
||||
other: "Failed to build target URL: {{.Arg1}}"
|
||||
webscan_invalid_url:
|
||||
other: "{{.Arg1}} {{.Arg2}}: {{.Arg3}}"
|
||||
webscan_request_create_failed:
|
||||
other: "Failed to create HTTP request: {{.Arg1}}"
|
||||
webscan_builtin_poc_failed:
|
||||
other: "Failed to load builtin POC directory: {{.Arg1}}"
|
||||
webscan_poc_dir_not_exist:
|
||||
other: "POC directory does not exist: {{.Arg1}}"
|
||||
webscan_poc_dir_walk_failed:
|
||||
other: "Failed to traverse POC directory: {{.Arg1}}"
|
||||
webscan_rule_match_error:
|
||||
other: "Rule match error [{{.Arg1}}]: {{.Arg2}}"
|
||||
webscan_poc_exec_error:
|
||||
other: "POC execution error {{.Arg1}}: {{.Arg2}}"
|
||||
webscan_set_exec_error:
|
||||
other: "Set execution error {{.Arg1}}: {{.Arg2}}"
|
||||
webscan_regex_compile_error:
|
||||
other: "Regex compile error: {{.Arg1}}"
|
||||
webscan_reverse_url_error:
|
||||
other: "Reverse URL parse error: {{.Arg1}}"
|
||||
webscan_cel_syntax_error:
|
||||
other: "CEL syntax error [{{.Arg1}}]: {{.Arg2}}"
|
||||
webscan_cel_init_failed:
|
||||
other: "Failed to initialize base CEL environment: {{.Arg1}}"
|
||||
webscan_request_restricted:
|
||||
other: "POC HTTP request {{.Arg1}} restricted: {{.Arg2}}"
|
||||
webscan_response_parse_failed:
|
||||
other: "Response parse failed: {{.Arg1}}"
|
||||
|
||||
# Main entry
|
||||
param_error:
|
||||
other: "Parameter error: {{.Arg1}}"
|
||||
error_generic:
|
||||
other: "Error: {{.Arg1}}"
|
||||
init_failed:
|
||||
other: "Initialization failed: {{.Arg1}}"
|
||||
poc_load_complete:
|
||||
other: "POC loading complete: Total {{.Arg1}}, Success {{.Arg2}}, Failed {{.Arg3}}"
|
||||
redis_scan_success:
|
||||
other: "Redis {{.Arg1}} {{.Arg2}}"
|
||||
rabbitmq_detected:
|
||||
other: "RabbitMQ {{.Arg1}} {{.Arg2}}"
|
||||
|
||||
# ========================= Web UI Messages =========================
|
||||
web_server_started:
|
||||
other: "Web server started on port: {{.Arg1}}"
|
||||
web_shutting_down:
|
||||
other: "Web server shutting down..."
|
||||
web_mode_not_supported:
|
||||
other: "Web mode not supported in this build, rebuild with: go build -tags web"
|
||||
@@ -0,0 +1,743 @@
|
||||
# fscan 中文翻译文件
|
||||
# 仅包含实际使用的消息(115个)
|
||||
|
||||
# ========================= 命令行参数 (71个) =========================
|
||||
flag_host:
|
||||
other: "目标主机: IP, IP段, IP段文件, 域名"
|
||||
flag_exclude_hosts:
|
||||
other: "排除主机"
|
||||
flag_exclude_hosts_file:
|
||||
other: "排除主机文件"
|
||||
flag_ports:
|
||||
other: "端口: 默认1000个常用端口"
|
||||
flag_exclude_ports:
|
||||
other: "排除端口"
|
||||
flag_hosts_file:
|
||||
other: "主机文件"
|
||||
flag_ports_file:
|
||||
other: "端口文件"
|
||||
flag_scan_mode:
|
||||
other: "扫描模式: all(全部), icmp(存活探测), 或指定插件名称"
|
||||
flag_thread_num:
|
||||
other: "端口扫描线程数"
|
||||
flag_timeout:
|
||||
other: "端口扫描超时时间"
|
||||
flag_module_thread_num:
|
||||
other: "模块线程数"
|
||||
flag_global_timeout:
|
||||
other: "全局超时时间"
|
||||
flag_disable_ping:
|
||||
other: "禁用ping探测"
|
||||
flag_alive_only:
|
||||
other: "仅进行存活探测"
|
||||
flag_username:
|
||||
other: "用户名"
|
||||
flag_password:
|
||||
other: "密码"
|
||||
flag_add_users:
|
||||
other: "额外用户名"
|
||||
flag_add_passwords:
|
||||
other: "额外密码"
|
||||
flag_users_file:
|
||||
other: "用户名字典文件"
|
||||
flag_passwords_file:
|
||||
other: "密码字典文件"
|
||||
flag_userpass_file:
|
||||
other: "用户名:密码对文件"
|
||||
flag_hash_file:
|
||||
other: "哈希文件"
|
||||
flag_hash_value:
|
||||
other: "哈希值"
|
||||
flag_domain:
|
||||
other: "域名"
|
||||
flag_ssh_key:
|
||||
other: "SSH私钥文件"
|
||||
flag_target_url:
|
||||
other: "目标URL"
|
||||
flag_urls_file:
|
||||
other: "URL文件"
|
||||
flag_cookie:
|
||||
other: "HTTP Cookie"
|
||||
flag_web_timeout:
|
||||
other: "Web超时时间"
|
||||
flag_max_redirects:
|
||||
other: "HTTP最大重定向次数"
|
||||
flag_http_proxy:
|
||||
other: "HTTP代理"
|
||||
flag_socks5_proxy:
|
||||
other: "使用SOCKS5代理 (如: 127.0.0.1:1080)"
|
||||
flag_iface:
|
||||
other: "指定本地网卡IP地址 (VPN场景,如: 10.8.0.5)"
|
||||
flag_poc_path:
|
||||
other: "POC脚本路径"
|
||||
flag_poc_name:
|
||||
other: "POC名称"
|
||||
flag_poc_full:
|
||||
other: "全量POC扫描"
|
||||
flag_dns_log:
|
||||
other: "DNS日志记录"
|
||||
flag_poc_num:
|
||||
other: "POC并发数"
|
||||
flag_no_poc:
|
||||
other: "禁用POC扫描"
|
||||
flag_redis_file:
|
||||
other: "Redis文件"
|
||||
flag_redis_shell:
|
||||
other: "Redis Shell"
|
||||
flag_redis_write_path:
|
||||
other: "Redis写入路径"
|
||||
flag_redis_write_content:
|
||||
other: "Redis写入内容"
|
||||
flag_redis_write_file:
|
||||
other: "Redis写入文件"
|
||||
flag_disable_redis:
|
||||
other: "禁用Redis利用"
|
||||
flag_disable_brute:
|
||||
other: "禁用暴力破解"
|
||||
flag_max_retries:
|
||||
other: "最大重试次数"
|
||||
flag_packet_rate_limit:
|
||||
other: "每分钟最大发包次数 (0表示不限制)"
|
||||
flag_max_packet_count:
|
||||
other: "整个程序最大发包总数 (0表示不限制)"
|
||||
flag_icmp_rate:
|
||||
other: "ICMP发包速率 (相对于最大速率的比例,默认0.1,约1463 pps)"
|
||||
flag_output_file:
|
||||
other: "输出文件"
|
||||
flag_output_format:
|
||||
other: "输出格式: txt, json, csv"
|
||||
flag_disable_save:
|
||||
other: "禁用结果保存"
|
||||
flag_silent_mode:
|
||||
other: "静默模式"
|
||||
flag_no_color:
|
||||
other: "禁用颜色输出"
|
||||
flag_log_level:
|
||||
other: "日志级别"
|
||||
flag_disable_progress:
|
||||
other: "禁用进度条"
|
||||
flag_shellcode:
|
||||
other: "Shellcode"
|
||||
flag_reverse_shell_target:
|
||||
other: "反弹Shell目标地址:端口 (如: 192.168.1.100:4444)"
|
||||
flag_start_socks5_server:
|
||||
other: "启动SOCKS5代理服务器端口 (如: 1080)"
|
||||
flag_forward_shell_port:
|
||||
other: "启动正向Shell服务器端口 (如: 4444)"
|
||||
flag_persistence_file:
|
||||
other: "Linux持久化目标文件路径 (支持.elf/.sh文件)"
|
||||
flag_win_pe_file:
|
||||
other: "Windows持久化目标PE文件路径 (支持.exe/.dll文件)"
|
||||
flag_keylogger_output:
|
||||
other: "键盘记录输出文件路径"
|
||||
flag_download_url:
|
||||
other: "要下载的文件URL"
|
||||
flag_download_path:
|
||||
other: "下载文件保存路径"
|
||||
flag_language:
|
||||
other: "语言: zh, en"
|
||||
flag_help:
|
||||
other: "显示帮助信息"
|
||||
# ========================= 扫描模式消息 =========================
|
||||
scan_mode_service_selected:
|
||||
other: "已选择服务扫描模式"
|
||||
scan_mode_alive_selected:
|
||||
other: "已选择存活探测模式"
|
||||
scan_mode_local_selected:
|
||||
other: "已选择本地扫描模式"
|
||||
scan_mode_web_selected:
|
||||
other: "已选择Web扫描模式"
|
||||
scan_info_start:
|
||||
other: "开始信息扫描"
|
||||
scan_host_start:
|
||||
other: "开始主机扫描"
|
||||
scan_vulnerability_start:
|
||||
other: "开始漏洞扫描"
|
||||
scan_no_service_plugins:
|
||||
other: "未找到可用的服务插件"
|
||||
scan_snmp_udp_ports_added:
|
||||
other: "检测到SNMP端口161,添加UDP端口到扫描目标"
|
||||
|
||||
# ========================= 扫描策略消息 =========================
|
||||
scan_strategy_alive_name:
|
||||
other: "存活探测"
|
||||
scan_strategy_alive_desc:
|
||||
other: "快速探测主机存活状态"
|
||||
scan_strategy_local_name:
|
||||
other: "本地扫描"
|
||||
scan_strategy_local_desc:
|
||||
other: "收集本地系统信息"
|
||||
scan_strategy_service_name:
|
||||
other: "服务扫描"
|
||||
scan_strategy_service_desc:
|
||||
other: "扫描主机服务和漏洞"
|
||||
scan_strategy_web_name:
|
||||
other: "Web扫描"
|
||||
scan_strategy_web_desc:
|
||||
other: "扫描Web应用漏洞和信息"
|
||||
|
||||
# ========================= 存活探测消息 =========================
|
||||
scan_alive_start:
|
||||
other: "开始存活探测"
|
||||
scan_alive_summary_title:
|
||||
other: "存活探测结果摘要"
|
||||
scan_alive_hosts_list:
|
||||
other: "存活主机列表:"
|
||||
|
||||
# ========================= 进度消息 =========================
|
||||
progress_scanning_description:
|
||||
other: "扫描进度"
|
||||
progress_scan_completed:
|
||||
other: "扫描完成:"
|
||||
concurrency_plugin:
|
||||
other: "插件"
|
||||
concurrency_local_plugin:
|
||||
other: "本地插件"
|
||||
concurrency_service_plugin:
|
||||
other: "服务插件"
|
||||
concurrency_web_plugin:
|
||||
other: "Web插件"
|
||||
|
||||
# ========================= 解析错误消息 =========================
|
||||
parse_error_target_empty:
|
||||
other: "目标输入为空"
|
||||
parse_error_no_hosts:
|
||||
other: "解析后没有找到有效的目标主机"
|
||||
parse_error_empty_input:
|
||||
other: "输入参数为空"
|
||||
parse_error_parser_not_init:
|
||||
other: "解析器未初始化"
|
||||
target_local_mode:
|
||||
other: "本地扫描模式"
|
||||
param_conflict_ao_icmp_both:
|
||||
other: "提示: 同时指定了 -ao 和 -m icmp,两者功能相同,使用存活探测模式"
|
||||
|
||||
# ========================= 解析器消息 =========================
|
||||
parser_empty_input:
|
||||
other: "输入参数为空"
|
||||
parser_file_scan_failed:
|
||||
other: "文件扫描失败"
|
||||
parser_username_invalid_chars:
|
||||
other: "用户名包含非法字符"
|
||||
parser_password_empty:
|
||||
other: "不允许空密码"
|
||||
parser_hash_empty:
|
||||
other: "哈希值为空"
|
||||
parser_hash_invalid_format:
|
||||
other: "哈希值格式无效,需要32位十六进制字符"
|
||||
|
||||
# ========================= 配置消息 =========================
|
||||
config_web_timeout_warning:
|
||||
other: "Web超时时间大于普通超时时间,可能导致不期望的行为"
|
||||
|
||||
# ========================= 插件扫描消息 (带参数) =========================
|
||||
scan_plugin_not_found:
|
||||
other: "扫描类型 {{.Arg1}} 无对应插件,已跳过"
|
||||
|
||||
# ========================= SSH插件消息 =========================
|
||||
ssh_key_auth_success:
|
||||
other: "SSH密钥认证成功: {{.Arg1}} [{{.Arg2}}]"
|
||||
ssh_pwd_auth_success:
|
||||
other: "SSH密码认证成功: {{.Arg1}} [{{.Arg2}}:{{.Arg3}}]"
|
||||
ssh_key_read_failed:
|
||||
other: "读取SSH私钥失败: {{.Arg1}}"
|
||||
ssh_service_identified:
|
||||
other: "SSH服务识别成功: {{.Arg1}} - {{.Arg2}}"
|
||||
|
||||
# ========================= Redis插件消息 =========================
|
||||
redis_unauth_success:
|
||||
other: "Redis未授权访问: {{.Arg1}}"
|
||||
redis_service_identified:
|
||||
other: "Redis服务识别成功: {{.Arg1}} - {{.Arg2}}"
|
||||
|
||||
# ========================= ICMP相关消息 =========================
|
||||
trying_no_listen_icmp:
|
||||
other: "尝试无监听ICMP探测"
|
||||
insufficient_privileges:
|
||||
other: "权限不足,无法执行原始ICMP探测"
|
||||
switching_to_ping:
|
||||
other: "切换到ping命令模式"
|
||||
icmp_listen_failed:
|
||||
other: "ICMP监听失败: {{.Arg1}}"
|
||||
icmp_connect_failed:
|
||||
other: "ICMP连接失败: {{.Arg1}}"
|
||||
icmp_listener_panic:
|
||||
other: "ICMP监听协程异常: {{.Arg1}}"
|
||||
host_alive:
|
||||
other: "{{.Arg1}} 存活 (协议: {{.Arg2}})"
|
||||
proxy_mode_disable_icmp:
|
||||
other: "检测到代理模式,自动禁用ICMP扫描"
|
||||
segment_16_alive:
|
||||
other: "/16网段 {{.Arg1}} 存活: {{.Arg2}}"
|
||||
segment_24_alive:
|
||||
other: "/24网段 {{.Arg1}} 存活: {{.Arg2}}"
|
||||
|
||||
# ========================= 存活扫描统计消息 =========================
|
||||
parse_target_failed:
|
||||
other: "解析目标失败: {{.Arg1}}"
|
||||
alive_scan_start_single:
|
||||
other: "开始存活扫描: {{.Arg1}}"
|
||||
alive_scan_start_multi:
|
||||
other: "开始存活扫描: {{.Arg1}}个目标 (首个: {{.Arg2}})"
|
||||
alive_total_hosts:
|
||||
other: "总主机数: {{.Arg1}}"
|
||||
alive_hosts_count:
|
||||
other: "存活主机: {{.Arg1}}"
|
||||
alive_dead_hosts:
|
||||
other: "死亡主机: {{.Arg1}}"
|
||||
alive_success_rate:
|
||||
other: "成功率: {{.Arg1}}"
|
||||
alive_scan_duration:
|
||||
other: "扫描耗时: {{.Arg1}}"
|
||||
alive_host_item:
|
||||
other: " [{{.Arg1}}] {{.Arg2}}"
|
||||
|
||||
# ========================= 扫描器消息 =========================
|
||||
http_client_init_failed:
|
||||
other: "HTTP客户端初始化失败: {{.Arg1}}"
|
||||
active_reverse_shell:
|
||||
other: "检测到活跃的反弹Shell,保持程序运行..."
|
||||
active_socks5_proxy:
|
||||
other: "检测到活跃的SOCKS5代理,保持程序运行..."
|
||||
active_forward_shell:
|
||||
other: "检测到活跃的正向Shell,保持程序运行..."
|
||||
press_ctrl_c_exit:
|
||||
other: "按 Ctrl+C 退出程序"
|
||||
received_exit_signal:
|
||||
other: "收到退出信号,正在关闭..."
|
||||
scan_task_complete:
|
||||
other: "扫描任务完成,耗时 {{.Arg1}},已扫描 {{.Arg2}} 个目标"
|
||||
plugin_panic:
|
||||
other: "插件 {{.Arg1}} 扫描 {{.Arg2}}:{{.Arg3}} 时panic: {{.Arg4}}"
|
||||
plugin_scan_error:
|
||||
other: "插件扫描错误 {{.Arg1}}:{{.Arg2}} - {{.Arg3}}"
|
||||
|
||||
# ========================= 端口扫描消息 =========================
|
||||
invalid_port:
|
||||
other: "无效端口: {{.Arg1}}"
|
||||
port_scan_start:
|
||||
other: "开始端口扫描,共 {{.Arg1}} 个任务,预计耗时 {{.Arg2}} 秒({{.Arg3}} 分钟)"
|
||||
thread_pool_create_failed:
|
||||
other: "创建线程池失败: {{.Arg1}}"
|
||||
port_scan_complete:
|
||||
other: "扫描完成,发现 {{.Arg1}} 个开放端口"
|
||||
scan_failure_rate_high:
|
||||
other: "扫描失败率过高: {{.Arg1}} ({{.Arg2}}/{{.Arg3}}失败)"
|
||||
scan_failure_reason:
|
||||
other: "可能原因: 线程数过高导致资源耗尽"
|
||||
scan_reduce_threads_suggestion:
|
||||
other: "建议: 降低线程数(当前{{.Arg1}})到50-100,或增加系统ulimit"
|
||||
scan_partial_failure:
|
||||
other: "部分端口扫描失败: {{.Arg1}} ({{.Arg2}}/{{.Arg3}})"
|
||||
scan_reduce_threads_accuracy:
|
||||
other: "建议: 降低线程数(当前{{.Arg1}})以提高准确性"
|
||||
resource_exhausted_warning:
|
||||
other: "资源耗尽错误 {{.Arg1}} 次,建议降低线程数(-t)或增加ulimit"
|
||||
port_open:
|
||||
other: "端口开放 {{.Arg1}}"
|
||||
port_open_http:
|
||||
other: "端口开放 {{.Arg1}} [http](HTTP探测)"
|
||||
|
||||
# ========================= 本地扫描消息 =========================
|
||||
local_plugin_info:
|
||||
other: "本地插件: {{.Arg1}}"
|
||||
local_plugin_not_specified:
|
||||
other: "本地插件: 未指定"
|
||||
local_plugin_not_found:
|
||||
other: "错误: 本地插件 '{{.Arg1}}' 不存在或在当前平台不可用"
|
||||
|
||||
# ========================= 服务扫描消息 =========================
|
||||
service_plugin_info:
|
||||
other: "服务插件: {{.Arg1}}"
|
||||
service_plugin_custom:
|
||||
other: "服务插件: 自定义指定 ({{.Arg1}})"
|
||||
service_plugin_none:
|
||||
other: "服务插件: 无可用插件"
|
||||
port_out_of_range:
|
||||
other: "端口超出范围: {{.Arg1}} (有效范围: 1-65535)"
|
||||
invalid_target_format:
|
||||
other: "无效的目标格式: {{.Arg1}}"
|
||||
host_port_invalid:
|
||||
other: "主机 {{.Arg1}} 端口格式非法: {{.Arg2}}"
|
||||
host_port_out_of_range:
|
||||
other: "主机 {{.Arg1}} 端口超出范围: {{.Arg2}} (有效范围: 1-65535)"
|
||||
alive_hosts_count_info:
|
||||
other: "存活主机数: {{.Arg1}}"
|
||||
alive_ports_count:
|
||||
other: "存活端口数: {{.Arg1}}"
|
||||
|
||||
# ========================= Web扫描消息 =========================
|
||||
http_proxy_config_error:
|
||||
other: "HTTP代理配置错误: {{.Arg1}}"
|
||||
socks5_not_supported_web:
|
||||
other: "Web检测暂不支持SOCKS5代理,建议使用HTTP代理(-proxy)"
|
||||
url_parse_failed:
|
||||
other: "解析URL失败: {{.Arg1}} - {{.Arg2}}"
|
||||
invalid_scan_target:
|
||||
other: "无效的扫描目标"
|
||||
poc_load_failed:
|
||||
other: "POC加载失败,无法执行扫描"
|
||||
|
||||
# ========================= 基础扫描策略消息 =========================
|
||||
plugins_custom_specified:
|
||||
other: "{{.Arg1}}: 自定义指定 ({{.Arg2}})"
|
||||
plugins_info:
|
||||
other: "{{.Arg1}}: {{.Arg2}}"
|
||||
plugins_none:
|
||||
other: "{{.Arg1}}: 无可用插件"
|
||||
start_local_scan:
|
||||
other: "开始本地扫描"
|
||||
start_service_scan:
|
||||
other: "开始服务扫描"
|
||||
start_web_scan:
|
||||
other: "开始Web扫描"
|
||||
start_scan:
|
||||
other: "开始扫描"
|
||||
|
||||
# ========================= 服务插件通用消息 =========================
|
||||
# 格式: {service}_{type} - type: credential/unauth/service/vuln
|
||||
ldap_credential:
|
||||
other: "LDAP {{.Arg1}} {{.Arg2}}:{{.Arg3}}"
|
||||
ldap_service:
|
||||
other: "LDAP {{.Arg1}} {{.Arg2}}"
|
||||
kafka_credential:
|
||||
other: "Kafka {{.Arg1}} {{.Arg2}}:{{.Arg3}}"
|
||||
kafka_service:
|
||||
other: "Kafka {{.Arg1}} {{.Arg2}}"
|
||||
ftp_service:
|
||||
other: "FTP {{.Arg1}} {{.Arg2}}"
|
||||
rdp_service:
|
||||
other: "RDP {{.Arg1}} {{.Arg2}}"
|
||||
activemq_credential:
|
||||
other: "ActiveMQ {{.Arg1}} {{.Arg2}}:{{.Arg3}}"
|
||||
activemq_service:
|
||||
other: "ActiveMQ {{.Arg1}} {{.Arg2}}"
|
||||
telnet_credential:
|
||||
other: "Telnet {{.Arg1}} {{.Arg2}}:{{.Arg3}}"
|
||||
telnet_service:
|
||||
other: "Telnet {{.Arg1}} {{.Arg2}}"
|
||||
cassandra_credential:
|
||||
other: "Cassandra {{.Arg1}} {{.Arg2}}:{{.Arg3}}"
|
||||
cassandra_service:
|
||||
other: "Cassandra {{.Arg1}} {{.Arg2}}"
|
||||
cassandra_unauth:
|
||||
other: "Cassandra {{.Arg1}} 无需认证"
|
||||
vnc_unauth:
|
||||
other: "VNC {{.Arg1}} 未授权访问"
|
||||
vnc_credential:
|
||||
other: "VNC {{.Arg1}} 密码: {{.Arg2}}"
|
||||
smtp_credential:
|
||||
other: "SMTP {{.Arg1}} {{.Arg2}}:{{.Arg3}}"
|
||||
smtp_service:
|
||||
other: "SMTP {{.Arg1}} {{.Arg2}}"
|
||||
mongodb_unauth:
|
||||
other: "MongoDB {{.Arg1}} 未授权访问"
|
||||
mongodb_credential:
|
||||
other: "MongoDB {{.Arg1}} {{.Arg2}}:{{.Arg3}}"
|
||||
mongodb_auth_required:
|
||||
other: "MongoDB {{.Arg1}} 需要认证"
|
||||
elasticsearch_credential:
|
||||
other: "Elasticsearch {{.Arg1}} {{.Arg2}}:{{.Arg3}}"
|
||||
elasticsearch_service:
|
||||
other: "Elasticsearch {{.Arg1}} {{.Arg2}}"
|
||||
mysql_credential:
|
||||
other: "MySQL {{.Arg1}} {{.Arg2}}:{{.Arg3}}"
|
||||
mysql_service:
|
||||
other: "MySQL {{.Arg1}} {{.Arg2}}"
|
||||
memcached_unauth:
|
||||
other: "Memcached {{.Arg1}} 未授权访问"
|
||||
memcached_service:
|
||||
other: "Memcached {{.Arg1}} {{.Arg2}}"
|
||||
rsync_credential:
|
||||
other: "Rsync {{.Arg1}} {{.Arg2}}:{{.Arg3}}"
|
||||
rsync_service:
|
||||
other: "Rsync {{.Arg1}} {{.Arg2}}"
|
||||
oracle_credential:
|
||||
other: "Oracle {{.Arg1}} {{.Arg2}}:{{.Arg3}}"
|
||||
oracle_service:
|
||||
other: "Oracle {{.Arg1}} {{.Arg2}}"
|
||||
oracle_default_account:
|
||||
other: "Oracle {{.Arg1}} 默认账户: {{.Arg2}}:{{.Arg3}}"
|
||||
postgresql_credential:
|
||||
other: "PostgreSQL {{.Arg1}} {{.Arg2}}:{{.Arg3}}"
|
||||
postgresql_service:
|
||||
other: "PostgreSQL {{.Arg1}} {{.Arg2}}"
|
||||
postgresql_vuln:
|
||||
other: "PostgreSQL {{.Arg1}} {{.Arg2}}"
|
||||
smb_service:
|
||||
other: "SMB {{.Arg1}} {{.Arg2}}"
|
||||
rabbitmq_credential:
|
||||
other: "RabbitMQ {{.Arg1}} {{.Arg2}}:{{.Arg3}}"
|
||||
rabbitmq_service:
|
||||
other: "RabbitMQ {{.Arg1}} {{.Arg2}}"
|
||||
neo4j_unauth:
|
||||
other: "Neo4j {{.Arg1}} 未授权访问"
|
||||
neo4j_credential:
|
||||
other: "Neo4j {{.Arg1}} {{.Arg2}}:{{.Arg3}}"
|
||||
neo4j_service:
|
||||
other: "Neo4j {{.Arg1}} {{.Arg2}}"
|
||||
mssql_credential:
|
||||
other: "MSSQL {{.Arg1}} {{.Arg2}}:{{.Arg3}}"
|
||||
mssql_service:
|
||||
other: "MSSQL {{.Arg1}} {{.Arg2}}"
|
||||
|
||||
# ========================= 漏洞检测消息 =========================
|
||||
smbghost_vuln:
|
||||
other: "SMB Ghost {{.Arg1}} CVE-2020-0796 漏洞存在"
|
||||
ms17010_start:
|
||||
other: "MS17-010利用开始: {{.Arg1}}"
|
||||
ms17010_complete:
|
||||
other: "MS17-010利用完成: {{.Arg1}}"
|
||||
ms17010_shellcode_complete:
|
||||
other: "{{.Arg1}} MS17-010漏洞利用完成 (Shellcode长度: {{.Arg2}})"
|
||||
ms17010_protocol_decrypt_error:
|
||||
other: "协议请求解密错误: {{.Arg1}}"
|
||||
ms17010_protocol_decode_error:
|
||||
other: "协议请求解码错误: {{.Arg1}}"
|
||||
ms17010_session_decrypt_error:
|
||||
other: "会话请求解密错误: {{.Arg1}}"
|
||||
ms17010_session_decode_error:
|
||||
other: "会话请求解码错误: {{.Arg1}}"
|
||||
ms17010_connect_decrypt_error:
|
||||
other: "连接请求解密错误: {{.Arg1}}"
|
||||
ms17010_connect_decode_error:
|
||||
other: "连接请求解码错误: {{.Arg1}}"
|
||||
ms17010_pipe_decrypt_error:
|
||||
other: "管道请求解密错误: {{.Arg1}}"
|
||||
ms17010_pipe_decode_error:
|
||||
other: "管道请求解码错误: {{.Arg1}}"
|
||||
|
||||
# ========================= Redis插件消息 =========================
|
||||
redis_reconnect_failed:
|
||||
other: "重新连接Redis失败: {{.Arg1}}"
|
||||
redis_config_failed:
|
||||
other: "获取Redis配置失败: {{.Arg1}}"
|
||||
redis_write_failed:
|
||||
other: "文件写入失败: {{.Arg1}}"
|
||||
redis_write_success:
|
||||
other: "成功写入文件: {{.Arg1}}"
|
||||
redis_read_failed:
|
||||
other: "读取本地文件失败: {{.Arg1}}"
|
||||
redis_file_write_success:
|
||||
other: "成功将文件 {{.Arg1}} 的内容写入到 {{.Arg2}}"
|
||||
redis_ssh_key_failed:
|
||||
other: "SSH密钥写入失败: {{.Arg1}}"
|
||||
redis_ssh_key_success:
|
||||
other: "SSH密钥写入成功"
|
||||
redis_cron_failed:
|
||||
other: "定时任务写入失败: {{.Arg1}}"
|
||||
redis_cron_success:
|
||||
other: "定时任务写入成功"
|
||||
redis_restore_failed:
|
||||
other: "恢复数据库配置失败: {{.Arg1}}"
|
||||
|
||||
# ========================= 本地插件消息 =========================
|
||||
# 计划任务持久化
|
||||
crontask_success:
|
||||
other: "计划任务持久化完成: {{.Arg1}}个方法成功"
|
||||
|
||||
# 键盘记录
|
||||
keylogger_success:
|
||||
other: "键盘记录完成,捕获了 {{.Arg1}} 个键盘事件"
|
||||
keylogger_save_failed:
|
||||
other: "保存键盘记录失败: {{.Arg1}}"
|
||||
keylogger_no_input:
|
||||
other: "没有捕获到键盘输入"
|
||||
|
||||
# 环境变量信息
|
||||
envinfo_sensitive:
|
||||
other: "发现敏感环境变量: {{.Arg1}}"
|
||||
|
||||
# Windows WMI
|
||||
winwmi_success:
|
||||
other: "Windows WMI事件订阅持久化完成: {{.Arg1}}个项目"
|
||||
|
||||
# 痕迹清理
|
||||
cleaner_success:
|
||||
other: "痕迹清理完成: {{.Arg1}}个文件, {{.Arg2}}个系统条目"
|
||||
cleaner_history_found:
|
||||
other: "发现历史文件: {{.Arg1}} (需手动清理相关条目)"
|
||||
|
||||
# 文件下载
|
||||
downloader_success:
|
||||
other: "文件下载完成: {{.Arg1}} -> {{.Arg2}} (大小: {{.Arg3}} bytes)"
|
||||
|
||||
# 正向Shell
|
||||
forwardshell_complete:
|
||||
other: "正向Shell服务完成 - 端口: {{.Arg1}}"
|
||||
forwardshell_started:
|
||||
other: "正向Shell服务器已在 0.0.0.0:{{.Arg1}} 上启动"
|
||||
forwardshell_accept_failed:
|
||||
other: "接受连接失败: {{.Arg1}}"
|
||||
forwardshell_client_connected:
|
||||
other: "客户端连接来自: {{.Arg1}}"
|
||||
forwardshell_read_failed:
|
||||
other: "读取客户端命令失败: {{.Arg1}}"
|
||||
|
||||
# AV检测
|
||||
avdetect_load_failed:
|
||||
other: "加载AV数据库失败: {{.Arg1}}"
|
||||
avdetect_loaded:
|
||||
other: "加载了 {{.Arg1}} 个AV产品信息"
|
||||
avdetect_found:
|
||||
other: "检测到AV: {{.Arg1}} ({{.Arg2}}个进程)"
|
||||
avdetect_process:
|
||||
other: " - {{.Arg1}}"
|
||||
|
||||
# Windows启动文件夹
|
||||
winstartup_success:
|
||||
other: "Windows启动文件夹持久化完成: {{.Arg1}}个方法"
|
||||
|
||||
# 文件信息
|
||||
fileinfo_sensitive:
|
||||
other: "发现敏感文件: {{.Arg1}}"
|
||||
fileinfo_potential:
|
||||
other: "发现潜在敏感文件: {{.Arg1}}"
|
||||
|
||||
# 域控信息
|
||||
dcinfo_not_joined:
|
||||
other: "当前计算机未加入域环境"
|
||||
dcinfo_success:
|
||||
other: "域控制器信息收集完成: {{.Arg1}}个类别成功"
|
||||
|
||||
# Windows服务
|
||||
winservice_success:
|
||||
other: "Windows服务持久化完成: {{.Arg1}}个项目"
|
||||
|
||||
# Shell环境变量
|
||||
shellenv_success:
|
||||
other: "Shell环境变量持久化完成: {{.Arg1}}个方法成功"
|
||||
|
||||
# LD_PRELOAD
|
||||
ldpreload_success:
|
||||
other: "LD_PRELOAD持久化完成: {{.Arg1}}个方法成功"
|
||||
|
||||
# SOCKS5代理
|
||||
socks5_starting:
|
||||
other: "在端口 {{.Arg1}} 上启动SOCKS5代理"
|
||||
socks5_complete:
|
||||
other: "SOCKS5代理完成 - 端口: {{.Arg1}}"
|
||||
socks5_started:
|
||||
other: "SOCKS5代理服务器已在 127.0.0.1:{{.Arg1}} 上启动"
|
||||
socks5_cancelled:
|
||||
other: "SOCKS5代理服务器被上下文取消"
|
||||
socks5_accept_failed:
|
||||
other: "接受连接失败: {{.Arg1}}"
|
||||
socks5_handshake_failed:
|
||||
other: "SOCKS5握手失败: {{.Arg1}}"
|
||||
socks5_request_failed:
|
||||
other: "SOCKS5请求处理失败: {{.Arg1}}"
|
||||
socks5_connected:
|
||||
other: "建立SOCKS5代理连接"
|
||||
|
||||
# 反弹Shell
|
||||
reverseshell_complete:
|
||||
other: "反弹Shell完成 - 目标: {{.Arg1}}"
|
||||
reverseshell_connected:
|
||||
other: "反弹Shell已连接到 {{.Arg1}}:{{.Arg2}}"
|
||||
|
||||
# Systemd服务
|
||||
systemdservice_success:
|
||||
other: "系统服务持久化完成: {{.Arg1}}个方法成功"
|
||||
|
||||
# 系统信息
|
||||
systeminfo_start:
|
||||
other: "开始系统信息收集"
|
||||
systeminfo_os:
|
||||
other: "操作系统: {{.Arg1}}"
|
||||
systeminfo_arch:
|
||||
other: "架构: {{.Arg1}}"
|
||||
systeminfo_cpu:
|
||||
other: "CPU核心数: {{.Arg1}}"
|
||||
systeminfo_hostname:
|
||||
other: "主机名: {{.Arg1}}"
|
||||
systeminfo_user:
|
||||
other: "当前用户: {{.Arg1}}"
|
||||
systeminfo_homedir:
|
||||
other: "用户目录: {{.Arg1}}"
|
||||
systeminfo_workdir:
|
||||
other: "工作目录: {{.Arg1}}"
|
||||
systeminfo_tempdir:
|
||||
other: "临时目录: {{.Arg1}}"
|
||||
systeminfo_pathcount:
|
||||
other: "PATH变量条目: {{.Arg1}}个"
|
||||
systeminfo_winver:
|
||||
other: "Windows版本: {{.Arg1}}"
|
||||
systeminfo_domain:
|
||||
other: "用户域: {{.Arg1}}"
|
||||
systeminfo_kernel:
|
||||
other: "系统内核: {{.Arg1}}"
|
||||
systeminfo_distro:
|
||||
other: "发行版: {{.Arg1}}"
|
||||
systeminfo_distro_exists:
|
||||
other: "发行版: /etc/os-release 存在"
|
||||
systeminfo_whoami:
|
||||
other: "当前用户(whoami): {{.Arg1}}"
|
||||
|
||||
# Windows计划任务
|
||||
winschtask_success:
|
||||
other: "Windows计划任务持久化完成: {{.Arg1}}个项目"
|
||||
|
||||
# Windows注册表
|
||||
winregistry_success:
|
||||
other: "Windows注册表持久化完成: {{.Arg1}}个项目"
|
||||
|
||||
# Minidump
|
||||
minidump_panic:
|
||||
other: "minidump插件发生panic: {{.Arg1}}"
|
||||
minidump_success:
|
||||
other: "成功将lsass.exe内存转储到文件: {{.Arg1}} (大小: {{.Arg2}} bytes)"
|
||||
|
||||
# ========================= WebScan消息 =========================
|
||||
webscan_target_url_failed:
|
||||
other: "构建目标URL失败: {{.Arg1}}"
|
||||
webscan_invalid_url:
|
||||
other: "{{.Arg1}} {{.Arg2}}: {{.Arg3}}"
|
||||
webscan_request_create_failed:
|
||||
other: "创建HTTP请求失败: {{.Arg1}}"
|
||||
webscan_builtin_poc_failed:
|
||||
other: "加载内置POC目录失败: {{.Arg1}}"
|
||||
webscan_poc_dir_not_exist:
|
||||
other: "POC目录不存在: {{.Arg1}}"
|
||||
webscan_poc_dir_walk_failed:
|
||||
other: "遍历POC目录失败: {{.Arg1}}"
|
||||
webscan_rule_match_error:
|
||||
other: "规则匹配错误 [{{.Arg1}}]: {{.Arg2}}"
|
||||
webscan_poc_exec_error:
|
||||
other: "执行POC错误 {{.Arg1}}: {{.Arg2}}"
|
||||
webscan_set_exec_error:
|
||||
other: "设置项执行错误 {{.Arg1}}: {{.Arg2}}"
|
||||
webscan_regex_compile_error:
|
||||
other: "正则编译错误: {{.Arg1}}"
|
||||
webscan_reverse_url_error:
|
||||
other: "反连URL解析错误: {{.Arg1}}"
|
||||
webscan_cel_syntax_error:
|
||||
other: "CEL语法错误 [{{.Arg1}}]: {{.Arg2}}"
|
||||
webscan_cel_init_failed:
|
||||
other: "初始化基础CEL环境失败: {{.Arg1}}"
|
||||
webscan_request_restricted:
|
||||
other: "POC HTTP请求 {{.Arg1}} 受限: {{.Arg2}}"
|
||||
webscan_response_parse_failed:
|
||||
other: "响应解析失败: {{.Arg1}}"
|
||||
|
||||
# Main 入口
|
||||
param_error:
|
||||
other: "参数错误: {{.Arg1}}"
|
||||
error_generic:
|
||||
other: "错误: {{.Arg1}}"
|
||||
init_failed:
|
||||
other: "初始化失败: {{.Arg1}}"
|
||||
poc_load_complete:
|
||||
other: "POC加载完成: 总共{{.Arg1}}个,成功{{.Arg2}}个,失败{{.Arg3}}个"
|
||||
redis_scan_success:
|
||||
other: "Redis {{.Arg1}} {{.Arg2}}"
|
||||
rabbitmq_detected:
|
||||
other: "RabbitMQ {{.Arg1}} {{.Arg2}}"
|
||||
|
||||
# ========================= Web UI消息 =========================
|
||||
web_server_started:
|
||||
other: "Web服务器已启动,端口: {{.Arg1}}"
|
||||
web_shutting_down:
|
||||
other: "Web服务器正在关闭..."
|
||||
web_mode_not_supported:
|
||||
other: "当前版本不支持Web模式,请使用 -tags web 重新编译"
|
||||
Reference in New Issue
Block a user