cmd

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultPatterns = []Pattern{
	{Match: "^.*\\.git", IsRegex: false},
	{Match: "^.*\\.tfstate", IsRegex: true},
	{Match: "^.*\\.env$", IsRegex: true},
	{Match: "^.*\\.xml$", IsRegex: true},
	{Match: "^.*\\.log", IsRegex: true},
	{Match: "^.*\\.swp", IsRegex: true},
	{Match: "^.*\\.sql", IsRegex: true},
	{Match: "^.*\\.zip", IsRegex: true},
	{Match: "^.*\\.pem", IsRegex: true},
	{Match: "^.*\\.conf", IsRegex: true},
	{Match: "^.*\\.ini", IsRegex: true},
	{Match: "^.*\\.bak", IsRegex: true},
	{Match: "^.*\\.xls", IsRegex: true},
	{Match: "^.*\\.txt", IsRegex: true},
	{Match: "^.*\\.csv", IsRegex: true},
	{Match: "^.*\\.db", IsRegex: true},
	{Match: "^.*\\.sqlite", IsRegex: true},
	{Match: "^.*\\tar.gz", IsRegex: true},
	{Match: "^.*\\.properties", IsRegex: true},
	{Match: "^.*\\.dist", IsRegex: true},
	{Match: "^.*\\.cfg", IsRegex: true},
	{Match: "^.*\\.mdb", IsRegex: true},
	{Match: "^.*\\.key", IsRegex: true},
	{Match: "^.*\\.json", IsRegex: true},
	{Match: "^.*\\.htaccess", IsRegex: true},
	{Match: "^.*\\.htpasswd", IsRegex: true},
	{Match: "^.*\\.lock", IsRegex: true},
	{Match: "^.*\\.settings", IsRegex: true},
	{Match: "^.*\\.project", IsRegex: true},
	{Match: "^.*\\.swf", IsRegex: true},
	{Match: "^.*\\.inc", IsRegex: true},
	{Match: "^.*\\tmp", IsRegex: true},
	{Match: "^.*\\temp", IsRegex: true},
	{Match: "^.*\\.html", IsRegex: true},
}

Functions

func DownloadPublicFiles

func DownloadPublicFiles(result Result, s3Client *s3.Client) error

func Execute

func Execute()

func ExportCSV

func ExportCSV(result Result) error

func ExportHTML

func ExportHTML(result Result) error

func ExportJSON

func ExportJSON(result Result) error

Types

type Pattern

type Pattern struct {
	Match         string
	IsRegex       bool
	CompiledRegex *regexp.Regexp
}

func CompilePatterns

func CompilePatterns(patterns []Pattern) []Pattern

type Result

type Result struct {
	BucketName    string   `json:"bucket_name"`
	Region        string   `json:"region"`
	IsPublic      bool     `json:"is_public"`
	Files         []string `json:"files"`
	MatchingFiles []string `json:"matching_files"`
}

Jump to

Keyboard shortcuts

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