Documentation ¶
Index ¶
- func AddDirs(target string, value string, dirs map[string]Asset, mutex *sync.Mutex)
- func AddSubs(target string, value string, subs map[string]Asset, mutex *sync.Mutex)
- func AppendExtension(path, extension string) string
- func AppendOutputToHTML(output string, status string, filename string)
- func AppendOutputToJSON(output string, key string, record string, filename string)
- func AppendOutputToTxt(output string, filename string)
- func AppendWhere(what string, status string, key string, record string, format string, ...)
- func BannerFooterHTML(filename string)
- func BannerHTML(target string, filename string)
- func CreateOutputFile(path string) string
- func CreateOutputFolder(path string)
- func Examples()
- func FooterHTML(filename string)
- func FormatIsOk(input string) bool
- func HeaderHTML(header string, filename string)
- func Help()
- func Intro()
- func PresentDirs(input string, dirs map[string]Asset, mutex *sync.Mutex) bool
- func PresentSubs(input string, subs map[string]Asset, mutex *sync.Mutex) bool
- func PrintDirs(dirs map[string]Asset, ignore []string, ...)
- func PrintSubs(subs map[string]Asset, ignore []string, ...)
- func ReplaceBadCharacterOutput(input string) string
- type Asset
- type File
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendExtension ¶ added in v1.2.2
AppendExtension appends to the path the given extension.
func AppendOutputToHTML ¶
AppendOutputToHTML appends a (html) row in the HTML output file.
func AppendOutputToJSON ¶
AppendOutputToJSON appends a (json) row in the JSON output file.
func AppendOutputToTxt ¶
AppendOutputToTxt appends a (txt) row in the TXT output file.
func AppendWhere ¶
func AppendWhere(what string, status string, key string, record string, format string, outputFile string)
AppendWhere checks which format the output should be (html, json or txt).
func BannerFooterHTML ¶
func BannerFooterHTML(filename string)
BannerFooterHTML writes in the (html) output file the HTML footer.
func BannerHTML ¶
BannerHTML writes in the input file the HTML banner.
func CreateOutputFile ¶
CreateOutputFile creates the output file (txt/json/html).
func CreateOutputFolder ¶
func CreateOutputFolder(path string)
CreateOutputFolder creates the output folder.
func FormatIsOk ¶ added in v1.2.3
FormatIsOk checks if the specified output format is Ok (txt, html or json).
func HeaderHTML ¶
HeaderHTML writes in the (html) output file the header (directories, dns ...).
func PresentDirs ¶
PresentDirs checks if a directory is present inside the dirs map.
func PresentSubs ¶
PresentSubs checks if a subdomain is present inside the subs map.
func PrintDirs ¶
func PrintDirs(dirs map[string]Asset, ignore []string, outputFileJSON, outputFileHTML, outputFileTXT string, mutex *sync.Mutex, plain bool)
PrintDirs prints the results (only the resources not already printed). Also performs the checks based on the response status codes.
func PrintSubs ¶
func PrintSubs(subs map[string]Asset, ignore []string, outputFileJSON, outputFileHTML, outputFileTXT string, mutex *sync.Mutex, plain bool)
PrintSubs prints the results (only the resources not already printed). Also performs the checks based on the response status codes.
func ReplaceBadCharacterOutput ¶
ReplaceBadCharacterOutput replaces slashes with dots.