gobustergcs

package
v0.0.0-...-d9f5d15 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GCSError

type GCSError struct {
	Error struct {
		Code    int    `json:"code"`
		Message string `json:"message"`
		Errors  []struct {
			Message      string `json:"message"`
			Reason       string `json:"reason"`
			LocationType string `json:"locationType"`
			Location     string `json:"location"`
		} `json:"errors"`
	} `json:"error"`
}

GCSError represents a returned error from GCS

type GCSListing

type GCSListing struct {
	IsTruncated string `json:"nextPageToken"`
	Items       []struct {
		Name         string `json:"name"`
		LastModified string `json:"updated"`
		Size         string `json:"size"`
	} `json:"items"`
}

GCSListing contains only a subset of returned properties

type GobusterGCS

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

GobusterGCS is the main type to implement the interface

func NewGobusterGCS

func NewGobusterGCS(globalopts *libgobuster.Options, opts *OptionsGCS) (*GobusterGCS, error)

NewGobusterGCS creates a new initialized GobusterGCS

func (*GobusterGCS) AdditionalWords

func (s *GobusterGCS) AdditionalWords(word string) []string

func (*GobusterGCS) GetConfigString

func (s *GobusterGCS) GetConfigString() (string, error)

GetConfigString returns the string representation of the current config

func (*GobusterGCS) Name

func (s *GobusterGCS) Name() string

Name should return the name of the plugin

func (*GobusterGCS) PreRun

func (s *GobusterGCS) PreRun(ctx context.Context, progress *libgobuster.Progress) error

PreRun is the pre run implementation of GobusterS3

func (*GobusterGCS) ProcessWord

func (s *GobusterGCS) ProcessWord(ctx context.Context, word string, progress *libgobuster.Progress) error

ProcessWord is the process implementation of GobusterS3

type OptionsGCS

type OptionsGCS struct {
	libgobuster.BasicHTTPOptions
	MaxFilesToList int
}

OptionsGCS is the struct to hold all options for this plugin

func NewOptionsGCS

func NewOptionsGCS() *OptionsGCS

NewOptionsGCS returns a new initialized OptionsS3

type Result

type Result struct {
	Found      bool
	BucketName string
	Status     string
}

Result represents a single result

func (Result) ResultToString

func (r Result) ResultToString() (string, error)

ResultToString converts the Result to it's textual representation

Jump to

Keyboard shortcuts

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