output

package
v1.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendOutputToHTML

func AppendOutputToHTML(output string, status string, filename string, isLink bool)

AppendOutputToHTML appends the output to html file.

func AppendOutputToTxt

func AppendOutputToTxt(output string, filename string)

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 Beautify

func Beautify()

Beautify prints the banner + version.

func EncapsulateCustomGreen

func EncapsulateCustomGreen(alert string, inp string)

EncapsulateCustomGreen takes as input a string and print it with the green color.

func EncapsulateCustomRed

func EncapsulateCustomRed(alert string, inp string)

EncapsulateCustomRed takes as input a string and print it with the red color.

func EncapsulateCustomYellow

func EncapsulateCustomYellow(alert string, inp string)

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 FooterHTML

func FooterHTML(filename string)

FooterHTML appends the footer.

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

func HeaderHTML(header string, filename string)

HeaderHTML appends the html header.

func PrintExamples

func PrintExamples()

PrintExamples prints some examples.

func PrintHelp

func PrintHelp()

PrintHelp prints the help.

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 MatcherResult struct {
	Name  string `json:"name"`
	Match string `json:"match"`
}

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL