chals

package
v0.0.0-...-0a0123b Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 47 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Chals embed.FS

Functions

func ChalURL

func ChalURL(scheme, compId, chalID, host string) string

TODO breadchris base url should be configured from the environment?

func NewPythonPlugin

func NewPythonPlugin(config Config) (plugin.PythonServiceClient, error)

Types

type Config

type Config struct {
	PythonPluginURL string `yaml:"python_plugin_url"`
	Scheme          string `yaml:"scheme"`
	Secret          string `yaml:"secret"`
}

func NewConfig

func NewConfig(provider config.Provider) (Config, error)

func NewDefaultConfig

func NewDefaultConfig() Config

type Handler

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

func NewHandler

func NewHandler(
	c Config,
	db *db.Service,
	b *bucket.Builder,
	pc plugin.PythonServiceClient,
	manager *shttp.Store,
) *Handler

func (*Handler) Handle

func (s *Handler) Handle() (string, http.Handler)

func (*Handler) NewPCAP

func (s *Handler) NewPCAP(wr io.Writer, p *chalgen.PCAP) error

type MD5Hash

type MD5Hash struct {
	Hash    string
	Content string
}

func GenerateMD5Hashes

func GenerateMD5Hashes(hashes *chalgen.Hashes) []MD5Hash

Directories

Path Synopsis
templ: version: v0.2.543
templ: version: v0.2.543

Jump to

Keyboard shortcuts

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