cmd

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrPrintHelp = errors.New("print help")

Functions

This section is empty.

Types

type CreateCHCommand

type CreateCHCommand struct {
	ListIDS      bool   `long:"list" short:"l" description:"list all available client hellos"`
	OutDir       string `long:"out" description:"Create all client hellos and save into directory"`
	CreateCHType string `long:"create" short:"c" choice:"jarm" choice:"custom" choice:"random" description:"Generate these Client Hellos"`
	RandomCHs    int    `long:"num-random" description:"Number of Random CHs to generate" default:"100"`
	TmpDir       string `long:"tmp" description:"Temp Direcotry to download IANA parameters for Random CHs"`
}

func (*CreateCHCommand) Execute

func (command *CreateCHCommand) Execute(args []string) error

func (*CreateCHCommand) Run

func (command *CreateCHCommand) Run() error

type CreateCHInputCommand

type CreateCHInputCommand struct {
	ChDir string `long:"ch-dir" short:"d" description:"Directory containing all the Client Hellos"`
	Input string `long:"input" short:"i" description:"Input with IP, domain name tuples" default:"-"`
}

func (*CreateCHInputCommand) Execute

func (command *CreateCHInputCommand) Execute(args []string) error

func (CreateCHInputCommand) PrintCHCrossProduct

func (command CreateCHInputCommand) PrintCHCrossProduct(clientHellos []string, input chan []string, lock *sync.WaitGroup)

func (*CreateCHInputCommand) Run

func (command *CreateCHInputCommand) Run() error

type GenerateFingerprintsCommand

type GenerateFingerprintsCommand struct {
	GoscannerDir     string `long:"scanner-dir" short:"d" description:"Directory containing a Goscanner scan"`
	CHDir            string `long:"ch-dir" short:"c" description:"Directory containing the Client Hellos used for fingerprinting"`
	KeepStatsRequest bool   `long:"keep-sr" short:"k" description:"Do not remove the Status Request extension from the fingerprint"`
	TempDir          string `long:"tmp-dir" short:"T" description:"Temporary directory for sorting"`
}

func (*GenerateFingerprintsCommand) Execute

func (command *GenerateFingerprintsCommand) Execute(args []string) error

func (*GenerateFingerprintsCommand) Run

func (command *GenerateFingerprintsCommand) Run() error

type ScannerCommand

type ScannerCommand interface {
	Run() error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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