finder

package
v0.0.0-...-ef4333a Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	WarningLogger *log.Logger
	InfoLogger    *log.Logger
	ErrorLogger   *log.Logger
)
View Source
var Log4jJarFileNames = map[string]bool{
	"log4j-core-2.0-alpha1.jar": true,
	"log4j-core-2.0-alpha2.jar": true,
	"log4j-core-2.0-beta1.jar":  true,
	"log4j-core-2.0-beta2.jar":  true,
	"log4j-core-2.0-beta3.jar":  true,
	"log4j-core-2.0-beta4.jar":  true,
	"log4j-core-2.0-beta5.jar":  true,
	"log4j-core-2.0-beta6.jar":  true,
	"log4j-core-2.0-beta7.jar":  true,
	"log4j-core-2.0-beta8.jar":  true,
	"log4j-core-2.0-beta9.jar":  true,
	"log4j-core-2.0.jar":        true,
	"log4j-core-2.0-rc1.jar":    true,
	"log4j-core-2.0-rc2.jar":    true,
	"log4j-core-2.0.1.jar":      true,
	"log4j-core-2.0.2.jar":      true,
	"log4j-core-2.1.jar":        true,
	"log4j-core-2.2.jar":        true,
	"log4j-core-2.3.jar":        true,
	"log4j-core-2.4.jar":        true,
	"log4j-core-2.4.1.jar":      true,
	"log4j-core-2.5.jar":        true,
	"log4j-core-2.6.jar":        true,
	"log4j-core-2.6.1.jar":      true,
	"log4j-core-2.6.2.jar":      true,
	"log4j-core-2.7.jar":        true,
	"log4j-core-2.8.jar":        true,
	"log4j-core-2.8.1.jar":      true,
	"log4j-core-2.8.2.jar":      true,
	"log4j-core-2.9.0.jar":      true,
	"log4j-core-2.9.1.jar":      true,
	"log4j-core-2.10.0.jar":     true,
	"log4j-core-2.11.0.jar":     true,
	"log4j-core-2.11.1.jar":     true,
	"log4j-core-2.11.2.jar":     true,
	"log4j-core-2.12.0.jar":     true,
	"log4j-core-2.12.1.jar":     true,
	"log4j-core-2.13.0.jar":     true,
	"log4j-core-2.13.1.jar":     true,
	"log4j-core-2.13.2.jar":     true,
	"log4j-core-2.13.3.jar":     true,
	"log4j-core-2.14.0.jar":     true,
	"log4j-core-2.14.1.jar":     true,
	"log4j-core-2.15.0.jar":     true,
}

Functions

func AddFileToZip

func AddFileToZip(zipWriter *zip.Writer, file *zip.File) error

Adds file to the new zip.

func ArchiveVulnerableLog4shell

func ArchiveVulnerableLog4shell(filePath string) (hasLog4Jar bool, isVuln bool, path string, err error)

func FixFile

func FixFile(zipPath string, filesToSkip []string)

func LoggerInit

func LoggerInit()

func Printf

func Printf(text string, args ...interface{})

func Println

func Println(text string)

func Scan

func Scan(dirPaths []string) ([]string, error)

Finds war, ear and jar files and returns their absolute paths.

func ScanDir

func ScanDir(dirPath string) ([]string, error)

func ShouldQuietLogging

func ShouldQuietLogging(shouldQuiet bool)

func Silent

func Silent()

func ZipFiles

func ZipFiles(deleteFilenames []string, filename string, files []*zip.File, zipWriter *zip.Writer) error

ZipFiles compresses one or many files into a single zip archive file. Param 1: filename is the output zip file's name. Param 2: files is a list of files to add to the zip.

Types

type LiveLogger

type LiveLogger struct {
	*goterminal.Writer
}
var IOLogger LiveLogger

func (*LiveLogger) Close

func (l *LiveLogger) Close()

func (*LiveLogger) Init

func (l *LiveLogger) Init()

func (*LiveLogger) Printf

func (l *LiveLogger) Printf(text string, args ...interface{})

func (*LiveLogger) Println

func (l *LiveLogger) Println(text string)

Jump to

Keyboard shortcuts

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