Documentation ¶
Index ¶
Constants ¶
View Source
const ( UnixPathSeparator = "/" WindowsPathSeparator = "\\" )
Variables ¶
View Source
var Separator = string(os.PathSeparator)
Separator evaluated at runtime
Functions ¶
func IsWindowsOS ¶
func IsWindowsOS() bool
Types ¶
type Catalog ¶
type Catalog struct {
// contains filtered or unexported fields
}
Catalog is a poc catalog helper implementation
func (*Catalog) GetPocPath ¶
GetPocPath parses the specified input template path and returns a compiled list of finished absolute paths to the pocs evaluating any glob patterns or folders provided as in.
func (*Catalog) GetPocsPath ¶
GetPocsPath returns a list of absolute paths for the provided template list.
func (*Catalog) ResolvePath ¶
ResolvePath resolves the path to an absolute one in various ways.
It checks if the filename is an absolute path, looks in the current directory or checking the nuclei pocs directory. If a second path is given, it also tries to find paths relative to that second path.
Click to show internal directories.
Click to hide internal directories.