Documentation
¶
Index ¶
- Constants
- func CreateHostOutputFolder(host string)
- func CreateIndexOutputFile(filename string)
- func CreateOutputFile(target string, subcommand string, format string) string
- func CreateOutputFolder()
- func ElementExists(path string) (bool, error)
- func ReadEntireFile(inputFile string) []byte
- func ReadFile(inputFile string) []string
- func ReadHTTPRequestFromFile(inputFile string) (*http.Request, error)
- func ReplaceBadCharacterOutput(input string) string
Constants ¶
const ( Permission0755 = 0755 Permission0644 = 0644 )
Variables ¶
This section is empty.
Functions ¶
func CreateHostOutputFolder ¶ added in v1.3.2
func CreateHostOutputFolder(host string)
CreateHostOutputFolder creates the host output folder for the HTTP responses. If it fails exits with an error message.
func CreateIndexOutputFile ¶ added in v1.3.2
func CreateIndexOutputFile(filename string)
CreateIndexOutputFile takes as input the name of the index file. It creates the output folder if needed, then checks if the index output file already exists, if no cariddi creates it. Whenever an instruction fails, it exits with an error message.
func CreateOutputFile ¶
CreateOutputFile takes as input a target (of the attack), a subcommand (PORT-DNS-DIR-SUBDOMAIN-REPORT) and a format (json-html-txt). It creates the output folder if needed, then checks if the output file already exists, if yes asks the user if cariddi has to overwrite it; if no cariddi creates it. Whenever an instruction fails, it exits with an error message.
func CreateOutputFolder ¶
func CreateOutputFolder()
CreateOutputFolder creates the output folder If it fails exits with an error message.
func ElementExists ¶
ElementExists returns whether the given file or directory exists.
func ReadEntireFile ¶
ReadEntireFile returns the content of the inputted file.
func ReadHTTPRequestFromFile ¶
ReadHTTPRequestFromFile reads from a file an HTTP request and returns a *http.Request object.
func ReplaceBadCharacterOutput ¶
ReplaceBadCharacterOutput replaces forward-slashes with dashes (to avoid problems with output folder).
Types ¶
This section is empty.