Documentation
¶
Index ¶
- Constants
- func GetProgramHandles(sessionToken string, engagementType string, pvtOnly bool) ([]string, error)
- func GetProgramScope(handle string, categories string, token string) (pData scope.ProgramData, err error)
- func Login(email, password, otpSecret, proxy string) (string, error)
- type Poller
- func (p *Poller) Authenticate(ctx context.Context, cfg platforms.AuthConfig) error
- func (p *Poller) FetchProgramScope(ctx context.Context, handle string, opts platforms.PollOptions) (scope.ProgramData, error)
- func (p *Poller) ListProgramHandles(ctx context.Context, opts platforms.PollOptions) ([]string, error)
- func (p *Poller) Name() string
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 GetProgramScope ¶
Types ¶
type Poller ¶
type Poller struct {
// contains filtered or unexported fields
}
func NewPollerFromToken ¶
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 ¶
NewPollerWithLogin logs in using email/password and OTP secret to obtain a session token.
func (*Poller) Authenticate ¶
func (*Poller) FetchProgramScope ¶
func (p *Poller) FetchProgramScope(ctx context.Context, handle string, opts platforms.PollOptions) (scope.ProgramData, error)
func (*Poller) ListProgramHandles ¶
Click to show internal directories.
Click to hide internal directories.