Documentation ¶
Index ¶
- func AppendOutputToHTML(output string, status string, filename string, isLink bool)
- func AppendOutputToTxt(output string, filename string)
- func BannerFooterHTML(filename string)
- func BannerHTML(filename string)
- func Beautify()
- func EncapsulateCustomGreen(alert string, inp string)
- func EncapsulateCustomRed(alert string, inp string)
- func EncapsulateCustomYellow(alert string, inp string)
- func EncapsulateGreen(inp string)
- func EncapsulateRed(inp string)
- func EncapsulateYellow(inp string)
- func FooterHTML(filename string)
- func GetJsonString(r *colly.Response, secrets []scanner.SecretMatched, ...) ([]byte, error)
- func HTMLOutput(flags input.Input, resultFilename string, finalResults []string, ...)
- func HeaderHTML(header string, filename string)
- func PrintExamples()
- func PrintHelp()
- func PrintSimpleOutput(out []string)
- func TxtOutput(flags input.Input, finalResults []string, finalSecret []scanner.SecretMatched, ...)
- type JsonData
- type MatcherResult
- type MatcherResults
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendOutputToHTML ¶
AppendOutputToHTML appends the output to html file.
func AppendOutputToTxt ¶
AppendOutputToTxt opens the output file and append the string taken as input.
func BannerFooterHTML ¶
func BannerFooterHTML(filename string)
BannerFooterHTML appends the final footer.
func BannerHTML ¶
func BannerHTML(filename string)
BannerHTML appends the initial banner to html file.
func EncapsulateCustomGreen ¶
EncapsulateCustomGreen takes as input a string and print it with the green color.
func EncapsulateCustomRed ¶
EncapsulateCustomRed takes as input a string and print it with the red color.
func EncapsulateCustomYellow ¶
EncapsulateCustomYellow takes as input a string and print it with the yellow color.
func EncapsulateGreen ¶
func EncapsulateGreen(inp string)
EncapsulateGreen takes as input a string and print a green prefix.
func EncapsulateRed ¶
func EncapsulateRed(inp string)
EncapsulateRed takes as input a string and print a red prefix.
func EncapsulateYellow ¶
func EncapsulateYellow(inp string)
EncapsulateYellow takes as input a string and print a yellow prefix.
func GetJsonString ¶
func GetJsonString( r *colly.Response, secrets []scanner.SecretMatched, parameters []scanner.Parameter, filetype scanner.FileType, errors []scanner.ErrorMatched, infos []scanner.InfoMatched, ) ([]byte, error)
func HTMLOutput ¶
func HTMLOutput(flags input.Input, resultFilename string, finalResults []string, finalSecret []scanner.SecretMatched, finalEndpoints []scanner.EndpointMatched, finalExtensions []scanner.FileTypeMatched, finalErrors []scanner.ErrorMatched, finalInfos []scanner.InfoMatched)
HtmlOutput it's the wrapper around all the html things. Actually it manages everything related to HTML output.
func HeaderHTML ¶
HeaderHTML appends the html header.
func PrintSimpleOutput ¶
func PrintSimpleOutput(out []string)
PrintSimpleOutput prints line by line.
func TxtOutput ¶
func TxtOutput(flags input.Input, finalResults []string, finalSecret []scanner.SecretMatched, finalEndpoints []scanner.EndpointMatched, finalExtensions []scanner.FileTypeMatched, finalErrors []scanner.ErrorMatched, finalInfos []scanner.InfoMatched)
TxtOutput it's the wrapper around all the txt things. Actually it manages everything related to TXT output.
Types ¶
type JsonData ¶
type JsonData struct { URL string `json:"url"` Method string `json:"method"` StatusCode int `json:"status_code"` Words int `json:"words"` Lines int `json:"lines"` ContentType string `json:"content_type,omitempty"` ContentLength int `json:"content_length,omitempty"` Matches MatcherResults `json:"matches,omitempty"` }
type MatcherResult ¶
type MatcherResults ¶
type MatcherResults struct { FileType scanner.FileType `json:"filetype,omitempty"` Parameters []scanner.Parameter `json:"parameters,omitempty"` Errors []MatcherResult `json:"errors,omitempty"` Infos []MatcherResult `json:"infos,omitempty"` Secrets []MatcherResult `json:"secrets,omitempty"` }