mirror of
https://github.com/shadow1ng/fscan.git
synced 2025-09-14 05:56:46 +08:00

- 重命名 Common -> common,WebScan -> webscan,遵循 Go 包命名约定 - 修复模块路径大小写不匹配导致的编译错误 - 清理依赖项,优化 go.mod 文件 - 添加 Docker 测试环境配置文件 - 新增镜像拉取脚本以处理网络超时问题 - 成功编译生成 fscan v2.2.1 可执行文件 该修复解决了 Linux 系统下包名大小写敏感导致的模块解析失败问题。
273 lines
6.5 KiB
Go
273 lines
6.5 KiB
Go
package messages
|
||
|
||
/*
|
||
flag.go - 命令行参数消息
|
||
|
||
包含命令行参数帮助信息等相关的
|
||
国际化消息定义。
|
||
*/
|
||
|
||
// FlagMessages 命令行参数消息
|
||
var FlagMessages = map[string]map[string]string{
|
||
// ========================= Flag参数帮助消息 =========================
|
||
"flag_host": {
|
||
LangZH: "目标主机: IP, IP段, IP段文件, 域名",
|
||
LangEN: "Target host: IP, IP range, IP file, domain",
|
||
},
|
||
"flag_exclude_hosts": {
|
||
LangZH: "排除主机",
|
||
LangEN: "Exclude hosts",
|
||
},
|
||
"flag_ports": {
|
||
LangZH: "端口: 默认1000个常用端口",
|
||
LangEN: "Ports: default 1000 common ports",
|
||
},
|
||
"flag_exclude_ports": {
|
||
LangZH: "排除端口",
|
||
LangEN: "Exclude ports",
|
||
},
|
||
"flag_hosts_file": {
|
||
LangZH: "主机文件",
|
||
LangEN: "Hosts file",
|
||
},
|
||
"flag_ports_file": {
|
||
LangZH: "端口文件",
|
||
LangEN: "Ports file",
|
||
},
|
||
"flag_scan_mode": {
|
||
LangZH: "扫描模式: all(全部), icmp(存活探测), 或指定插件名称",
|
||
LangEN: "Scan mode: all(all plugins), icmp(alive detection), or specific plugin names",
|
||
},
|
||
"flag_thread_num": {
|
||
LangZH: "端口扫描线程数",
|
||
LangEN: "Port scan thread count",
|
||
},
|
||
"flag_timeout": {
|
||
LangZH: "端口扫描超时时间",
|
||
LangEN: "Port scan timeout",
|
||
},
|
||
"flag_module_thread_num": {
|
||
LangZH: "模块线程数",
|
||
LangEN: "Module thread count",
|
||
},
|
||
"flag_global_timeout": {
|
||
LangZH: "全局超时时间",
|
||
LangEN: "Global timeout",
|
||
},
|
||
"flag_live_top": {
|
||
LangZH: "存活主机显示数量",
|
||
LangEN: "Live hosts display count",
|
||
},
|
||
"flag_disable_ping": {
|
||
LangZH: "禁用ping探测",
|
||
LangEN: "Disable ping detection",
|
||
},
|
||
"flag_enable_fingerprint": {
|
||
LangZH: "启用指纹识别",
|
||
LangEN: "Enable fingerprinting",
|
||
},
|
||
"flag_local_mode": {
|
||
LangZH: "本地扫描模式",
|
||
LangEN: "Local scan mode",
|
||
},
|
||
"flag_alive_only": {
|
||
LangZH: "仅进行存活探测",
|
||
LangEN: "Alive detection only",
|
||
},
|
||
"param_conflict_ao_icmp_both": {
|
||
LangZH: "提示: 同时指定了 -ao 和 -m icmp,两者功能相同,使用存活探测模式",
|
||
LangEN: "Note: Both -ao and -m icmp specified, both enable alive detection mode",
|
||
},
|
||
"flag_username": {
|
||
LangZH: "用户名",
|
||
LangEN: "Username",
|
||
},
|
||
"flag_password": {
|
||
LangZH: "密码",
|
||
LangEN: "Password",
|
||
},
|
||
"flag_add_users": {
|
||
LangZH: "额外用户名",
|
||
LangEN: "Additional usernames",
|
||
},
|
||
"flag_add_passwords": {
|
||
LangZH: "额外密码",
|
||
LangEN: "Additional passwords",
|
||
},
|
||
"flag_users_file": {
|
||
LangZH: "用户名字典文件",
|
||
LangEN: "Username dictionary file",
|
||
},
|
||
"flag_passwords_file": {
|
||
LangZH: "密码字典文件",
|
||
LangEN: "Password dictionary file",
|
||
},
|
||
"flag_hash_file": {
|
||
LangZH: "哈希文件",
|
||
LangEN: "Hash file",
|
||
},
|
||
"flag_hash_value": {
|
||
LangZH: "哈希值",
|
||
LangEN: "Hash value",
|
||
},
|
||
"flag_domain": {
|
||
LangZH: "域名",
|
||
LangEN: "Domain name",
|
||
},
|
||
"flag_ssh_key": {
|
||
LangZH: "SSH私钥文件",
|
||
LangEN: "SSH private key file",
|
||
},
|
||
"flag_target_url": {
|
||
LangZH: "目标URL",
|
||
LangEN: "Target URL",
|
||
},
|
||
"flag_urls_file": {
|
||
LangZH: "URL文件",
|
||
LangEN: "URLs file",
|
||
},
|
||
"flag_cookie": {
|
||
LangZH: "HTTP Cookie",
|
||
LangEN: "HTTP Cookie",
|
||
},
|
||
"flag_web_timeout": {
|
||
LangZH: "Web超时时间",
|
||
LangEN: "Web timeout",
|
||
},
|
||
"flag_http_proxy": {
|
||
LangZH: "HTTP代理",
|
||
LangEN: "HTTP proxy",
|
||
},
|
||
"flag_poc_path": {
|
||
LangZH: "POC脚本路径",
|
||
LangEN: "POC script path",
|
||
},
|
||
"flag_poc_name": {
|
||
LangZH: "POC名称",
|
||
LangEN: "POC name",
|
||
},
|
||
"flag_poc_full": {
|
||
LangZH: "全量POC扫描",
|
||
LangEN: "Full POC scan",
|
||
},
|
||
"flag_dns_log": {
|
||
LangZH: "DNS日志记录",
|
||
LangEN: "DNS logging",
|
||
},
|
||
"flag_poc_num": {
|
||
LangZH: "POC并发数",
|
||
LangEN: "POC concurrency",
|
||
},
|
||
"flag_no_poc": {
|
||
LangZH: "禁用POC扫描",
|
||
LangEN: "Disable POC scan",
|
||
},
|
||
"flag_redis_file": {
|
||
LangZH: "Redis文件",
|
||
LangEN: "Redis file",
|
||
},
|
||
"flag_redis_shell": {
|
||
LangZH: "Redis Shell",
|
||
LangEN: "Redis Shell",
|
||
},
|
||
"flag_redis_write_path": {
|
||
LangZH: "Redis写入路径",
|
||
LangEN: "Redis write path",
|
||
},
|
||
"flag_redis_write_content": {
|
||
LangZH: "Redis写入内容",
|
||
LangEN: "Redis write content",
|
||
},
|
||
"flag_redis_write_file": {
|
||
LangZH: "Redis写入文件",
|
||
LangEN: "Redis write file",
|
||
},
|
||
"flag_disable_brute": {
|
||
LangZH: "禁用暴力破解",
|
||
LangEN: "Disable brute force",
|
||
},
|
||
"flag_max_retries": {
|
||
LangZH: "最大重试次数",
|
||
LangEN: "Maximum retries",
|
||
},
|
||
"flag_output_file": {
|
||
LangZH: "输出文件",
|
||
LangEN: "Output file",
|
||
},
|
||
"flag_output_format": {
|
||
LangZH: "输出格式: txt, json, csv",
|
||
LangEN: "Output format: txt, json, csv",
|
||
},
|
||
"flag_disable_save": {
|
||
LangZH: "禁用结果保存",
|
||
LangEN: "Disable result saving",
|
||
},
|
||
"flag_silent_mode": {
|
||
LangZH: "静默模式",
|
||
LangEN: "Silent mode",
|
||
},
|
||
"flag_no_color": {
|
||
LangZH: "禁用颜色输出",
|
||
LangEN: "Disable color output",
|
||
},
|
||
"flag_log_level": {
|
||
LangZH: "日志级别",
|
||
LangEN: "Log level",
|
||
},
|
||
"flag_disable_progress": {
|
||
LangZH: "禁用进度条",
|
||
LangEN: "Disable progress bar",
|
||
},
|
||
"flag_shellcode": {
|
||
LangZH: "Shellcode",
|
||
LangEN: "Shellcode",
|
||
},
|
||
"flag_reverse_shell_target": {
|
||
LangZH: "反弹Shell目标地址:端口 (如: 192.168.1.100:4444)",
|
||
LangEN: "Reverse shell target address:port (e.g.: 192.168.1.100:4444)",
|
||
},
|
||
"flag_socks5_proxy": {
|
||
LangZH: "使用SOCKS5代理 (如: 127.0.0.1:1080)",
|
||
LangEN: "Use SOCKS5 proxy (e.g.: 127.0.0.1:1080)",
|
||
},
|
||
"flag_start_socks5_server": {
|
||
LangZH: "启动SOCKS5代理服务器端口 (如: 1080)",
|
||
LangEN: "Start SOCKS5 proxy server on port (e.g.: 1080)",
|
||
},
|
||
"flag_forward_shell_port": {
|
||
LangZH: "启动正向Shell服务器端口 (如: 4444)",
|
||
LangEN: "Start forward shell server on port (e.g.: 4444)",
|
||
},
|
||
"flag_persistence_file": {
|
||
LangZH: "Linux持久化目标文件路径 (支持.elf/.sh文件)",
|
||
LangEN: "Linux persistence target file path (supports .elf/.sh files)",
|
||
},
|
||
"flag_win_pe_file": {
|
||
LangZH: "Windows持久化目标PE文件路径 (支持.exe/.dll文件)",
|
||
LangEN: "Windows persistence target PE file path (supports .exe/.dll files)",
|
||
},
|
||
"flag_keylogger_output": {
|
||
LangZH: "键盘记录输出文件路径",
|
||
LangEN: "Keylogger output file path",
|
||
},
|
||
"flag_download_url": {
|
||
LangZH: "要下载的文件URL",
|
||
LangEN: "URL of the file to download",
|
||
},
|
||
"flag_download_path": {
|
||
LangZH: "下载文件保存路径",
|
||
LangEN: "Save path for downloaded file",
|
||
},
|
||
"flag_language": {
|
||
LangZH: "语言: zh, en",
|
||
LangEN: "Language: zh, en",
|
||
},
|
||
"flag_help": {
|
||
LangZH: "显示帮助信息",
|
||
LangEN: "Show help information",
|
||
},
|
||
"flag_version": {
|
||
LangZH: "显示版本信息",
|
||
LangEN: "Show version information",
|
||
},
|
||
} |