mirror of
https://github.com/shadow1ng/fscan.git
synced 2025-09-14 14:06:44 +08:00
25 lines
739 B
Go
25 lines
739 B
Go
package telnet
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/shadow1ng/fscan/common"
|
|
"github.com/shadow1ng/fscan/plugins/base"
|
|
)
|
|
|
|
// TelnetExploiter Telnet服务利用器
|
|
// 遵循新架构设计模式,当前为空实现
|
|
type TelnetExploiter struct{}
|
|
|
|
// NewTelnetExploiter 创建新的Telnet利用器
|
|
func NewTelnetExploiter() *TelnetExploiter {
|
|
return &TelnetExploiter{}
|
|
}
|
|
|
|
// Exploit 执行Telnet服务利用
|
|
// 当前为空实现,遵循其他插件的一致性设计
|
|
func (e *TelnetExploiter) Exploit(ctx context.Context, info *common.HostInfo, creds *base.Credential) (*base.ExploitResult, error) {
|
|
// 空实现 - 遵循新架构中其他服务插件的模式
|
|
// 主要功能集中在连接器和插件主体中实现
|
|
return nil, nil
|
|
} |