fscan/Plugins/services/memcached/exploiter.go

36 lines
969 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package memcached
import (
"context"
"github.com/shadow1ng/fscan/common"
"github.com/shadow1ng/fscan/plugins/base"
)
// MemcachedExploiter Memcached利用器实现 - 最小化版本,不提供利用功能
type MemcachedExploiter struct {
*base.BaseExploiter
}
// NewMemcachedExploiter 创建Memcached利用器
func NewMemcachedExploiter() *MemcachedExploiter {
exploiter := &MemcachedExploiter{
BaseExploiter: base.NewBaseExploiter("memcached"),
}
// Memcached插件不提供利用功能
exploiter.setupExploitMethods()
return exploiter
}
// setupExploitMethods 设置利用方法
func (e *MemcachedExploiter) setupExploitMethods() {
// Memcached插件不提供利用功能仅进行未授权访问检测
}
// Exploit 利用接口实现 - 空实现
func (e *MemcachedExploiter) Exploit(ctx context.Context, info *common.HostInfo, creds *base.Credential) (*base.ExploitResult, error) {
// Memcached插件不提供利用功能
return nil, nil
}