output

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2022 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDirs

func AddDirs(target string, value string, dirs map[string]Asset, mutex *sync.Mutex)

AddDirs adds the target found to the dirs map.

func AddSubs

func AddSubs(target string, value string, subs map[string]Asset, mutex *sync.Mutex)

AddSubs adds the target found to the subs map.

func AppendExtension added in v1.2.2

func AppendExtension(path, extension string) string

AppendExtension appends to the path the given extension.

func AppendOutputToHTML

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

AppendOutputToHTML appends a (html) row in the HTML output file.

func AppendOutputToJSON

func AppendOutputToJSON(output string, key string, record string, filename string)

AppendOutputToJSON appends a (json) row in the JSON output file.

func AppendOutputToTxt

func AppendOutputToTxt(output string, filename string)

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

func BannerHTML(target string, filename string)

BannerHTML writes in the input file the HTML banner.

func CreateOutputFile

func CreateOutputFile(path string) string

CreateOutputFile creates the output file (txt/json/html).

func CreateOutputFolder

func CreateOutputFolder(path string)

CreateOutputFolder creates the output folder.

func Examples

func Examples()

Examples prints some examples.

func FooterHTML

func FooterHTML(filename string)

FooterHTML closes the HTML list.

func FormatIsOk added in v1.2.3

func FormatIsOk(input string) bool

FormatIsOk checks if the specified output format is Ok (txt, html or json).

func HeaderHTML

func HeaderHTML(header string, filename string)

HeaderHTML writes in the (html) output file the header (directories, dns ...).

func Help

func Help()

Help prints in stdout scilla usage.

func Intro

func Intro()

Intro prints the banner when the program starts.

func PresentDirs

func PresentDirs(input string, dirs map[string]Asset, mutex *sync.Mutex) bool

PresentDirs checks if a directory is present inside the dirs map.

func PresentSubs

func PresentSubs(input string, subs map[string]Asset, mutex *sync.Mutex) bool

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

func ReplaceBadCharacterOutput(input string) string

ReplaceBadCharacterOutput replaces slashes with dots.

Types

type Asset

type Asset struct {
	Value   string
	Printed bool
}

Asset gives information about the asset found.

type File added in v1.2.3

type File struct {
	Port      []string            `json:"port,omitempty"`
	DNS       map[string][]string `json:"dns,omitempty"`
	Subdomain []string            `json:"subdomain,omitempty"`
	Dir       []string            `json:"dir,omitempty"`
}

File struct helping json output.

Jump to

Keyboard shortcuts

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