monster

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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

func NewCookie

func NewCookie(raw string) *Cookie

Returns a new `Cookie`, which must then be used with `Decode()` and then `Unsign()`.

func (*Cookie) Decode

func (c *Cookie) Decode() (success bool)

Decodes a `Cookie` into its components, trying all of the available decoders. Decode is not thread-safe.

func (*Cookie) Resign

func (c *Cookie) Resign(data string) string

func (*Cookie) Result

func (c *Cookie) Result() (success bool, key []byte, decoder string)

Returns the key and decoder if the cookie was decoded.

func (*Cookie) String

func (c *Cookie) String() (out string)

Returns debug information from decoders.

func (*Cookie) Unsign

func (c *Cookie) Unsign(wl *Wordlist, concurrencyLimit uint64) (key []byte, success bool)

Uses the decoded data from `Decode()` to attempt to unsign the cookie with a given wordlist. Unsign is not thread-safe.

type Wordlist

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

func NewWordlist

func NewWordlist() *Wordlist

func (*Wordlist) Count

func (w *Wordlist) Count() uint64

Load wordlist entries from the provided array of byte arrays.

func (*Wordlist) Entries

func (w *Wordlist) Entries() [][]byte

Load wordlist entries from the provided array of byte arrays.

func (*Wordlist) Load

func (w *Wordlist) Load(path string) error

Load wordlist entries from the provided `path`.

func (*Wordlist) LoadDefault

func (w *Wordlist) LoadDefault() error

Load default wordlist entries

func (*Wordlist) LoadFromArray

func (w *Wordlist) LoadFromArray(arr [][]byte) error

Load wordlist entries from the provided array of byte arrays.

func (*Wordlist) LoadFromString

func (w *Wordlist) LoadFromString(entries string) error

Load wordlist entries from the provided `path`.

Jump to

Keyboard shortcuts

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