Documentation ¶
Index ¶
- Variables
- func AddFileToZip(zipWriter *zip.Writer, file *zip.File) error
- func ArchiveVulnerableLog4shell(filePath string) (hasLog4Jar bool, isVuln bool, path string, err error)
- func FixFile(zipPath string, filesToSkip []string)
- func LoggerInit()
- func Printf(text string, args ...interface{})
- func Println(text string)
- func Scan(dirPaths []string) ([]string, error)
- func ScanDir(dirPath string) ([]string, error)
- func ShouldQuietLogging(shouldQuiet bool)
- func Silent()
- func ZipFiles(deleteFilenames []string, filename string, files []*zip.File, ...) error
- type LiveLogger
Constants ¶
This section is empty.
Variables ¶
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 ¶
Adds file to the new zip.
func LoggerInit ¶
func LoggerInit()
func ShouldQuietLogging ¶
func ShouldQuietLogging(shouldQuiet bool)
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)
Click to show internal directories.
Click to hide internal directories.