bugcrowd

package
v2.0.0-...-e55b574 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	USER_AGENT               = "Mozilla/5.0 (X11; Linux x86_64; rv:82.0) Gecko/20100101 Firefox/82.0"
	RATE_LIMIT_SLEEP_SECONDS = 5

	WAF_BANNED_ERROR = "you are temporarily WAF banned, change IP or wait a few hours"
)

Variables

This section is empty.

Functions

func GetProgramHandles

func GetProgramHandles(sessionToken string, engagementType string, pvtOnly bool) ([]string, error)

func GetProgramScope

func GetProgramScope(handle string, categories string, token string) (pData scope.ProgramData, err error)

func Login

func Login(email, password, otpSecret, proxy string) (string, error)

Automated email + password login. 2FA needs to be disabled

Types

type Poller

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

func NewPollerFromToken

func NewPollerFromToken(token string) *Poller

NewPollerFromToken uses an existing _bugcrowd_session token.

func NewPollerPublicOnly

func NewPollerPublicOnly() *Poller

NewPollerPublicOnly creates a poller that fetches only public programs without authentication.

func NewPollerWithLogin

func NewPollerWithLogin(email, password, otpSecret, proxy string) (*Poller, error)

NewPollerWithLogin logs in using email/password and OTP secret to obtain a session token.

func (*Poller) Authenticate

func (p *Poller) Authenticate(ctx context.Context, cfg platforms.AuthConfig) error

func (*Poller) FetchProgramScope

func (p *Poller) FetchProgramScope(ctx context.Context, handle string, opts platforms.PollOptions) (scope.ProgramData, error)

func (*Poller) ListProgramHandles

func (p *Poller) ListProgramHandles(ctx context.Context, opts platforms.PollOptions) ([]string, error)

func (*Poller) Name

func (p *Poller) Name() string

Jump to

Keyboard shortcuts

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