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

- 清理SSH、MySQL、FTP、ActiveMQ插件的exploiter.go为最小实现 - 移除所有未使用的利用功能代码和依赖 - 仅保留基础结构以维持接口兼容性 - 只有Redis插件保留完整的参数驱动利用功能
37 lines
1.0 KiB
Go
37 lines
1.0 KiB
Go
package activemq
|
||
|
||
import (
|
||
"context"
|
||
|
||
"github.com/shadow1ng/fscan/common"
|
||
"github.com/shadow1ng/fscan/plugins/base"
|
||
)
|
||
|
||
// ActiveMQExploiter ActiveMQ利用器实现 - 最小化版本,不提供利用功能
|
||
type ActiveMQExploiter struct {
|
||
*base.BaseExploiter
|
||
}
|
||
|
||
// NewActiveMQExploiter 创建ActiveMQ利用器
|
||
func NewActiveMQExploiter() *ActiveMQExploiter {
|
||
exploiter := &ActiveMQExploiter{
|
||
BaseExploiter: base.NewBaseExploiter("activemq"),
|
||
}
|
||
|
||
// ActiveMQ插件不提供利用功能
|
||
exploiter.setupExploitMethods()
|
||
|
||
return exploiter
|
||
}
|
||
|
||
// setupExploitMethods 设置利用方法
|
||
func (e *ActiveMQExploiter) setupExploitMethods() {
|
||
// ActiveMQ插件暂时不提供利用功能,因为当前实现的都是信息收集类功能
|
||
// 没有实际的GetShell或文件写入等攻击价值
|
||
}
|
||
|
||
// Exploit 利用接口实现 - 空实现
|
||
func (e *ActiveMQExploiter) Exploit(ctx context.Context, info *common.HostInfo, creds *base.Credential) (*base.ExploitResult, error) {
|
||
// ActiveMQ插件不提供利用功能
|
||
return nil, nil
|
||
} |