mirror of
https://github.com/shadow1ng/fscan.git
synced 2025-09-14 14:06:44 +08:00
36 lines
903 B
Go
36 lines
903 B
Go
package pop3
|
||
|
||
import (
|
||
"context"
|
||
|
||
"github.com/shadow1ng/fscan/common"
|
||
"github.com/shadow1ng/fscan/plugins/base"
|
||
)
|
||
|
||
// POP3Exploiter POP3利用器实现 - 最小化版本,不提供利用功能
|
||
type POP3Exploiter struct {
|
||
*base.BaseExploiter
|
||
}
|
||
|
||
// NewPOP3Exploiter 创建POP3利用器
|
||
func NewPOP3Exploiter() *POP3Exploiter {
|
||
exploiter := &POP3Exploiter{
|
||
BaseExploiter: base.NewBaseExploiter("pop3"),
|
||
}
|
||
|
||
// POP3插件不提供利用功能
|
||
exploiter.setupExploitMethods()
|
||
|
||
return exploiter
|
||
}
|
||
|
||
// setupExploitMethods 设置利用方法
|
||
func (e *POP3Exploiter) setupExploitMethods() {
|
||
// POP3插件不提供利用功能,仅进行弱密码扫描和服务识别
|
||
}
|
||
|
||
// Exploit 利用接口实现 - 空实现
|
||
func (e *POP3Exploiter) Exploit(ctx context.Context, info *common.HostInfo, creds *base.Credential) (*base.ExploitResult, error) {
|
||
// POP3插件不提供利用功能
|
||
return nil, nil
|
||
} |