mirror of
https://github.com/shadow1ng/fscan.git
synced 2025-09-14 14:06:44 +08:00
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
|
|
} |