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

- 完成Rsync文件同步服务插件迁移 * 实现RSYNCD协议支持和模块列表获取 * 支持匿名访问和认证扫描 * 添加Docker测试环境配置 - 完成SMTP邮件服务插件迁移 * 实现SMTP协议和PLAIN认证支持 * 支持匿名访问检测和弱密码扫描 * 添加Docker测试环境配置 - 更新国际化消息和插件注册机制 - 两个插件均通过完整功能测试验证
31 lines
787 B
Go
31 lines
787 B
Go
package rsync
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/shadow1ng/fscan/common"
|
|
"github.com/shadow1ng/fscan/plugins/base"
|
|
)
|
|
|
|
// RsyncExploiter Rsync利用器实现
|
|
type RsyncExploiter struct{}
|
|
|
|
// NewRsyncExploiter 创建Rsync利用器
|
|
func NewRsyncExploiter() *RsyncExploiter {
|
|
return &RsyncExploiter{}
|
|
}
|
|
|
|
// Exploit 执行Rsync利用
|
|
func (e *RsyncExploiter) Exploit(ctx context.Context, info *common.HostInfo, creds *base.Credential) (*base.ExploitResult, error) {
|
|
return nil, nil
|
|
}
|
|
|
|
// GetExploitMethods 获取可用的利用方法
|
|
func (e *RsyncExploiter) GetExploitMethods() []base.ExploitMethod {
|
|
return []base.ExploitMethod{}
|
|
}
|
|
|
|
// IsExploitSupported 检查是否支持特定的利用类型
|
|
func (e *RsyncExploiter) IsExploitSupported(method base.ExploitType) bool {
|
|
return false
|
|
} |