Documentation
¶
Index ¶
- Constants
- 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 CreateOutputFile ¶
CreateOutputFile takes 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 scilla has to overwrite it; if no scilla 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.