firebird

package module
v0.0.0-...-c1c3219 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: Unlicense Imports: 16 Imported by: 1

README

Firebird logo

Firebird

A fast KiwiFlare solver lib. Still heavily WIP.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrParseFailed = errors.New("Failed to parse challenge from HTML data tags.")

Functions

func Submit

func Submit(hc http.Client, s Solution) (string, error)

Types

type Challenge

type Challenge struct {
	Salt     string // Challenge salt from server.
	Diff     uint32 // Difficulty level.
	Patience uint32 // Time limit for answer in minutes.
	// contains filtered or unexported fields
}

func NewChallenge

func NewChallenge(hc http.Client, host string) (c Challenge, err error)

type Solution

type Solution struct {
	Salt  string
	Hash  []byte
	Nonce uint32
	// contains filtered or unexported fields
}

func Solve

func Solve(ctx context.Context, c Challenge) (Solution, error)

Solve Challenge c. Returns Solution that can be submitted.

Jump to

Keyboard shortcuts

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