ctfd

package
v0.0.0-...-e903210 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(url string, creds *Creds) (*ctfdScraper, error)

Create a new ctfScraper and call Login method

func New

func New(url string, creds *Creds) *ctfdScraper

Create a New ctfScraper

Types

type ChallengeFullInfo

type ChallengeFullInfo struct {
	Id              int
	Name            string
	Description     string
	Category        string
	Tags            []string
	Value           int
	Connection_Info string
	Type            string
	Solves          int
	SolvedByMe      bool
	Files           []fileUrl
}

func (*ChallengeFullInfo) DownloadFilesToDir

func (cfi *ChallengeFullInfo) DownloadFilesToDir(dstFolder string) error

DownloadFiles download all file from the challenge to destination folder

func (*ChallengeFullInfo) WriteTemplatesToDirDefault

func (cfi *ChallengeFullInfo) WriteTemplatesToDirDefault(dstFolder string) error

Same as WriteTemplatesToDir but use default directory `template`

type ChallengeInfo

type ChallengeInfo struct {
	Id           int
	Name         string
	Category     string
	Tags         []interface{}
	Solved_By_Me bool
}

func (*ChallengeInfo) GetFullInfo

func (cis *ChallengeInfo) GetFullInfo() (*ChallengeFullInfo, error)

Get all info of the chall from ctfd plaform

type ChallengesInfo

type ChallengesInfo []*ChallengeInfo

func (ChallengesInfo) Filter

func (ac ChallengesInfo) Filter(f func(chall *ChallengeInfo) bool) []*ChallengeInfo

type Creds

type Creds struct {
	Username string
	Password string
}

Jump to

Keyboard shortcuts

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