Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Protocol: AMQP 0.9.1 #426

Merged
merged 13 commits into from
Jun 5, 2024
Merged

New Protocol: AMQP 0.9.1 #426

merged 13 commits into from
Jun 5, 2024

Conversation

developStorm
Copy link
Member

@developStorm developStorm commented May 2, 2024

This PR adds support for scanning AMQP(S) 0.9.1 hosts.

The protocol supports following special flags:

type Flags struct {
zgrab2.BaseFlags
Vhost string `long:"vhost" description:"The vhost to connect to" default:"/"`
AuthUser string `long:"auth-user" description:"Username to use for authentication. Must be used with --auth-pass. No auth is attempted if not provided."`
AuthPass string `long:"auth-pass" description:"Password to use for authentication. Must be used with --auth-user. No auth is attempted if not provided."`
UseTLS bool `long:"use-tls" description:"Use TLS to connect to the server. Note that AMQPS uses a different default port (5671) than AMQP (5672) and you will need to specify that port manually with -p."`
zgrab2.TLSFlags
}

Tested locally against a RabbitMQ server, with and without valid credentials:
image
image

resolves #214.

@developStorm developStorm marked this pull request as ready for review May 15, 2024 07:45
@developStorm developStorm force-pushed the feat/amqp-support branch 3 times, most recently from a3ebe08 to 44bbfee Compare May 22, 2024 22:10
@developStorm developStorm requested review from phillip-stephens and removed request for phillip-stephens June 2, 2024 21:45
Copy link
Contributor

@phillip-stephens phillip-stephens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@developStorm developStorm merged commit 245907d into master Jun 5, 2024
4 checks passed
@developStorm developStorm deleted the feat/amqp-support branch June 5, 2024 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support of amqp protocol
2 participants