mirror of
https://github.com/shadow1ng/fscan.git
synced 2025-09-14 14:06:44 +08:00

新增功能: - 添加 reverseshell 本地插件,支持 Windows/Linux/macOS 反弹Shell - 新增 -rsh 命令行参数,用于指定反弹目标地址:端口 - 支持自动生成不同平台的反弹Shell命令 - 集成到现有本地插件架构中 代码重构: - 清理旧插件架构文件 (Plugins/*.go) - 统一使用新的模块化插件架构 - 修复 main.go 中的函数调用 - 更新可用插件列表和参数验证 技术细节: - Windows: PowerShell TCP反弹Shell - Linux/macOS: Bash TCP反弹Shell - 支持连接测试和错误处理 - 遵循现有插件架构模式
253 lines
5.7 KiB
Go
253 lines
5.7 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_socks5_proxy": {
|
||
LangZH: "SOCKS5代理",
|
||
LangEN: "SOCKS5 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_disable_redis": {
|
||
LangZH: "禁用Redis扫描",
|
||
LangEN: "Disable Redis scan",
|
||
},
|
||
"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_disable_exploit": {
|
||
LangZH: "禁用利用攻击",
|
||
LangEN: "Disable exploit attacks",
|
||
},
|
||
"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_language": {
|
||
LangZH: "语言: zh, en",
|
||
LangEN: "Language: zh, en",
|
||
},
|
||
"flag_help": {
|
||
LangZH: "显示帮助信息",
|
||
LangEN: "Show help information",
|
||
},
|
||
"flag_version": {
|
||
LangZH: "显示版本信息",
|
||
LangEN: "Show version information",
|
||
},
|
||
} |