scanner

package
v0.5.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2024 License: MIT Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scanner

type Scanner struct {
	// contains filtered or unexported fields
}

Scanner allows you to test WAF in various ways with given payloads.

func New

func New(
	logger *logrus.Logger,
	cfg *config.Config,
	db *db.DB,
	requestTemplates openapi.Templates,
	router routers.Router,
	enableDebugHeader bool,
) (*Scanner, error)

New creates a new Scanner.

func (*Scanner) CheckGRPCAvailability added in v0.4.0

func (s *Scanner) CheckGRPCAvailability(ctx context.Context)

CheckGRPCAvailability checks if the gRPC server is available at the given URL.

func (*Scanner) CheckGraphQLAvailability added in v0.5.1

func (s *Scanner) CheckGraphQLAvailability(ctx context.Context)

CheckGraphQLAvailability checks if the GraphQL is available at the given URL.

func (*Scanner) CheckIfJavaScriptRequired added in v0.4.17

func (s *Scanner) CheckIfJavaScriptRequired(ctx context.Context) (bool, error)

func (*Scanner) Run

func (s *Scanner) Run(ctx context.Context) error

Run starts a host scan to check WAF security.

func (*Scanner) WAFBlockCheck added in v0.4.0

func (s *Scanner) WAFBlockCheck(ctx context.Context) error

WAFBlockCheck checks if WAF exists and blocks malicious requests.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL