Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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
Click to show internal directories.
Click to hide internal directories.