Documentation
¶
Index ¶
- func CountOffline(path string, concurrency int) (uint32, error)
- func IsFFFDirectory(path string) bool
- func IsKatanaDirectory(path string) bool
- func ParseOffline(path string) (<-chan model.OfflineInput, error)
- func ResolveInput(input string, offlineMode bool) ([]model.Target, error)
- type OfflineFormat
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CountOffline ¶
CountOffline performing a fast pass to count total targets without parsing. It uses concurrency to speed up discovery in large directory structures.
func IsFFFDirectory ¶
IsFFFDirectory checks if a directory matches the fff output structure.
func IsKatanaDirectory ¶
IsKatanaDirectory checks if a directory matches the katana output structure.
func ParseOffline ¶
func ParseOffline(path string) (<-chan model.OfflineInput, error)
ParseOffline dispatches the parsing to the correct handler based on detected format.
Types ¶
type OfflineFormat ¶
type OfflineFormat string
OfflineFormat defines the type of offline input.
const ( // FormatUnknown indicates an unidentified offline format. FormatUnknown OfflineFormat = "unknown" // FormatFFF indicates the fff tool output format. FormatFFF OfflineFormat = "fff" // FormatKatanaDir indicates a directory containing katana response files. FormatKatanaDir OfflineFormat = "katana-dir" // FormatKatanaFile indicates a single katana response file. FormatKatanaFile OfflineFormat = "katana-file" // FormatRawHTTP indicates a raw HTTP response dump. FormatRawHTTP OfflineFormat = "raw-http" // FormatBodyOnly indicates a file treated as a raw response body. FormatBodyOnly OfflineFormat = "body-only" )
func DetectOfflineFormat ¶
func DetectOfflineFormat(path string) OfflineFormat
DetectOfflineFormat identifies the format of the given path (file or directory).
Click to show internal directories.
Click to hide internal directories.