fscan/Plugins/services/rabbitmq/exploiter.go
ZacharyZcR 3e71e7e4c9 feat: RabbitMQ消息队列服务插件迁移到新架构完成
- 实现AMQP协议连接器,支持RabbitMQ消息队列服务扫描
- 支持弱密码检测和服务识别功能
- 优先检测默认凭据admin/123456和guest/guest
- 服务识别使用TCP连接检测,避免AMQP协议复杂度
- 简化实现,不提供利用功能,专注于安全扫描
- 集成国际化消息系统
- 测试通过:服务识别和弱密码检测功能
2025-08-09 13:30:24 +08:00

36 lines
963 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 rabbitmq
import (
"context"
"github.com/shadow1ng/fscan/common"
"github.com/shadow1ng/fscan/plugins/base"
)
// RabbitMQExploiter RabbitMQ利用器实现 - 最小化版本,不提供利用功能
type RabbitMQExploiter struct {
*base.BaseExploiter
}
// NewRabbitMQExploiter 创建RabbitMQ利用器
func NewRabbitMQExploiter() *RabbitMQExploiter {
exploiter := &RabbitMQExploiter{
BaseExploiter: base.NewBaseExploiter("rabbitmq"),
}
// RabbitMQ插件不提供利用功能
exploiter.setupExploitMethods()
return exploiter
}
// setupExploitMethods 设置利用方法
func (e *RabbitMQExploiter) setupExploitMethods() {
// RabbitMQ插件不提供利用功能仅进行弱密码扫描和服务识别
}
// Exploit 利用接口实现 - 空实现
func (e *RabbitMQExploiter) Exploit(ctx context.Context, info *common.HostInfo, creds *base.Credential) (*base.ExploitResult, error) {
// RabbitMQ插件不提供利用功能
return nil, nil
}