mirror of
https://github.com/shadow1ng/fscan.git
synced 2025-09-14 14:06:44 +08:00

- 新增IMAP/IMAPS插件支持143和993端口扫描 - 实现TLS/SSL加密连接支持 - 添加IMAP协议专用超时机制(默认超时+5秒) - 支持弱密码暴力破解和服务识别功能 - 完善IMAP相关国际化消息支持 - 兼容新插件架构设计模式
36 lines
888 B
Go
36 lines
888 B
Go
package imap
|
||
|
||
import (
|
||
"context"
|
||
|
||
"github.com/shadow1ng/fscan/common"
|
||
"github.com/shadow1ng/fscan/plugins/base"
|
||
)
|
||
|
||
// IMAPExploiter IMAP利用器实现 - 最小化版本,不提供利用功能
|
||
type IMAPExploiter struct {
|
||
*base.BaseExploiter
|
||
}
|
||
|
||
// NewIMAPExploiter 创建IMAP利用器
|
||
func NewIMAPExploiter() *IMAPExploiter {
|
||
exploiter := &IMAPExploiter{
|
||
BaseExploiter: base.NewBaseExploiter("imap"),
|
||
}
|
||
|
||
// IMAP插件不提供利用功能
|
||
exploiter.setupExploitMethods()
|
||
|
||
return exploiter
|
||
}
|
||
|
||
// setupExploitMethods 设置利用方法
|
||
func (e *IMAPExploiter) setupExploitMethods() {
|
||
// IMAP插件不提供利用功能,仅进行弱密码扫描
|
||
}
|
||
|
||
// Exploit 利用接口实现 - 空实现
|
||
func (e *IMAPExploiter) Exploit(ctx context.Context, info *common.HostInfo, creds *base.Credential) (*base.ExploitResult, error) {
|
||
// IMAP插件不提供利用功能
|
||
return nil, nil
|
||
} |