rctf

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChallengeData

type ChallengeData struct {
	Files       []fileUrl `json:"files"`
	Description string    `json:"description"`
	Author      string    `json:"author"`
	Points      int       `json:"points"`
	ID          string    `json:"id"`
	Name        string    `json:"name"`
	Category    string    `json:"category"`
	Solves      int       `json:"solves"`
}

func (*ChallengeData) DownloadFilesToDir

func (c *ChallengeData) DownloadFilesToDir(dstFolder string) error

DownloadFiles download all file from the challenge to destination folder

func (*ChallengeData) WriteTemplatesToDirDefault

func (c *ChallengeData) WriteTemplatesToDirDefault(dstFolder string) error

Same as WriteTemplatesToDir but use default directory `template`

type Challenges

type Challenges struct {
	Kind    string          `json:"kind"`
	Message string          `json:"message"`
	Data    []ChallengeData `json:"data"`
}

type File

type File struct {
	Name string `json:"name"`
	URL  string `json:"url"`
}

type RCTFScraper

type RCTFScraper struct {
	Token string
	Url   *url.URL
	// contains filtered or unexported fields
}

func Init

func Init(Url string, Token string) (*RCTFScraper, error)

func InitFromUrlToken

func InitFromUrlToken(Url string) (*RCTFScraper, error)

func (*RCTFScraper) GetChalls

func (r *RCTFScraper) GetChalls() (*Challenges, error)

Jump to

Keyboard shortcuts

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