mirror of
https://github.com/shadow1ng/fscan.git
synced 2025-09-14 14:06:44 +08:00
refactor: 移除无效的-noredis参数
- 删除DisableRedis字段定义和flag声明 - 移除相关i18n消息 - 更新PARAMETERS.md文档,删除-noredis参数说明 - 该参数已失效且在代码中无任何实际作用 现在如需禁用Redis扫描,应通过扫描模式或端口排除实现
This commit is contained in:
parent
4473d1a28f
commit
75a056809c
@ -51,7 +51,6 @@ var (
|
|||||||
|
|
||||||
RedisFile string
|
RedisFile string
|
||||||
RedisShell string
|
RedisShell string
|
||||||
DisableRedis bool
|
|
||||||
RedisWritePath string
|
RedisWritePath string
|
||||||
RedisWriteContent string
|
RedisWriteContent string
|
||||||
RedisWriteFile string
|
RedisWriteFile string
|
||||||
@ -217,7 +216,6 @@ func Flag(Info *HostInfo) {
|
|||||||
// ═════════════════════════════════════════════════
|
// ═════════════════════════════════════════════════
|
||||||
flag.StringVar(&RedisFile, "rf", "", i18n.GetText("flag_redis_file"))
|
flag.StringVar(&RedisFile, "rf", "", i18n.GetText("flag_redis_file"))
|
||||||
flag.StringVar(&RedisShell, "rs", "", i18n.GetText("flag_redis_shell"))
|
flag.StringVar(&RedisShell, "rs", "", i18n.GetText("flag_redis_shell"))
|
||||||
flag.BoolVar(&DisableRedis, "noredis", false, i18n.GetText("flag_disable_redis"))
|
|
||||||
flag.StringVar(&RedisWritePath, "rwp", "", i18n.GetText("flag_redis_write_path"))
|
flag.StringVar(&RedisWritePath, "rwp", "", i18n.GetText("flag_redis_write_path"))
|
||||||
flag.StringVar(&RedisWriteContent, "rwc", "", i18n.GetText("flag_redis_write_content"))
|
flag.StringVar(&RedisWriteContent, "rwc", "", i18n.GetText("flag_redis_write_content"))
|
||||||
flag.StringVar(&RedisWriteFile, "rwf", "", i18n.GetText("flag_redis_write_file"))
|
flag.StringVar(&RedisWriteFile, "rwf", "", i18n.GetText("flag_redis_write_file"))
|
||||||
|
@ -86,7 +86,6 @@ type VulnExploitConfig struct {
|
|||||||
// Redis利用
|
// Redis利用
|
||||||
RedisFile string `json:"redis_file"` // Redis利用目标文件
|
RedisFile string `json:"redis_file"` // Redis利用目标文件
|
||||||
RedisShell string `json:"redis_shell"` // Redis反弹Shell命令
|
RedisShell string `json:"redis_shell"` // Redis反弹Shell命令
|
||||||
DisableRedis bool `json:"disable_redis"` // 是否禁用Redis利用测试
|
|
||||||
RedisWritePath string `json:"redis_write_path"` // Redis文件写入路径
|
RedisWritePath string `json:"redis_write_path"` // Redis文件写入路径
|
||||||
RedisWriteContent string `json:"redis_write_content"` // Redis文件写入内容
|
RedisWriteContent string `json:"redis_write_content"` // Redis文件写入内容
|
||||||
RedisWriteFile string `json:"redis_write_file"` // Redis写入的源文件
|
RedisWriteFile string `json:"redis_write_file"` // Redis写入的源文件
|
||||||
|
@ -170,10 +170,6 @@ var FlagMessages = map[string]map[string]string{
|
|||||||
LangZH: "Redis Shell",
|
LangZH: "Redis Shell",
|
||||||
LangEN: "Redis Shell",
|
LangEN: "Redis Shell",
|
||||||
},
|
},
|
||||||
"flag_disable_redis": {
|
|
||||||
LangZH: "禁用Redis扫描",
|
|
||||||
LangEN: "Disable Redis scan",
|
|
||||||
},
|
|
||||||
"flag_redis_write_path": {
|
"flag_redis_write_path": {
|
||||||
LangZH: "Redis写入路径",
|
LangZH: "Redis写入路径",
|
||||||
LangEN: "Redis write path",
|
LangEN: "Redis write path",
|
||||||
|
@ -77,7 +77,6 @@
|
|||||||
| `-rwf` | Redis写入文件 | - | `-rwf /tmp/test.txt` |
|
| `-rwf` | Redis写入文件 | - | `-rwf /tmp/test.txt` |
|
||||||
| `-rwp` | Redis写入路径 | - | `-rwp /var/www/html/` |
|
| `-rwp` | Redis写入路径 | - | `-rwp /var/www/html/` |
|
||||||
| `-rwc` | Redis写入内容 | - | `-rwc "<?php phpinfo(); ?>"` |
|
| `-rwc` | Redis写入内容 | - | `-rwc "<?php phpinfo(); ?>"` |
|
||||||
| `-noredis` | 禁用Redis扫描 | - | `-noredis` |
|
|
||||||
|
|
||||||
### Shell功能
|
### Shell功能
|
||||||
| 参数 | 说明 | 默认值 | 示例 |
|
| 参数 | 说明 | 默认值 | 示例 |
|
||||||
|
Loading…
Reference in New Issue
Block a user