Versions in this module Expand all Collapse all v0 v0.19.3 Jun 7, 2023 v0.19.2 Mar 3, 2023 v0.19.1 Dec 23, 2022 v0.19.0 Dec 22, 2022 v0.18.0 Dec 9, 2022 v0.17.0 Aug 12, 2022 v0.16.0 Jun 1, 2022 v0.15.0 May 18, 2022 Changes in this version + const TimeFormat + const TimeFormatV100 + type ProfilingInformationV100 struct + FreeRAM uintptr + FreeSwap uintptr + LoadAvgFifteenMinutes float64 + LoadAvgFiveMinutes float64 + LoadAvgOneMinute float64 + Time TimeV100 + type ReaderFactory struct + func NewReaderFactory() *ReaderFactory + func (f *ReaderFactory) OpenFile(path string) Reader + func (f *ReaderFactory) SetKeyring(keyring openpgp.EntityList) + func (f *ReaderFactory) SetPassword(password string) type Report + func NewReport() *Report + type ReportWriter struct + func NewReportWriter(archiver archiver.Archiver) *ReportWriter + func (w *ReportWriter) WriteReport(rprt *Report) (err error) + type ScanningStatisticsV100 struct + End TimeV100 + NumberOfFileBytesScanned uint64 + NumberOfFilesScanned uint64 + NumberOfMemoryBytesScanned uint64 + NumberOfProcessesScanned uint64 + NumberOfSegmentsScanned uint64 + ProfilingInformation []*ProfilingInformationV100 + Start TimeV100 type Time + func NewTime(t time.Time) Time + type TimeV100 struct + func (t *TimeV100) UnmarshalJSON(b []byte) error v0.14.0 Jan 13, 2022 v0.13.0 Jan 6, 2022 Changes in this version + const FileScansFileName + const Format + const MemoryScansFileName + const MetaFileName + const ProcessesFileName + const RulesFileName + const ScanningStatisticsFileName + const SystemInfoFileName + var FormatVersion = version.Version + var MetaV1Schema = fmt.Sprintf(schemaURLFormat, "1.0.0", "meta.schema.json") + func ReadArmoredKeyring(path string) (openpgp.KeyRing, error) + type File struct + FilePath string + MD5Sum string + SHA256Sum string + type FileReader struct + func (rdr *FileReader) Close() error + func (rdr *FileReader) OpenFileScans() (io.ReadCloser, error) + func (rdr *FileReader) OpenMemoryScans() (io.ReadCloser, error) + func (rdr *FileReader) OpenMeta() (io.ReadCloser, error) + func (rdr *FileReader) OpenProcesses() (io.ReadCloser, error) + func (rdr *FileReader) OpenStatistics() (io.ReadCloser, error) + func (rdr *FileReader) OpenSystemInformation() (io.ReadCloser, error) + func (rdr *FileReader) SetKeyring(keyring openpgp.KeyRing) + func (rdr *FileReader) SetPassword(password string) + type FileScan struct + Error interface{} + File *File + Matches []*Match + type Match struct + Namespace string + Rule string + Strings []*MatchString + type MatchString struct + Base uint64 + Name string + Offset uint64 + type MemoryScan struct + Error interface{} + Matches []*Match + MemorySegment uintptr + PID int + type MemorySegmentInfo struct + AllocatedPermissions procio.Permissions + BaseAddress uintptr + CurrentPermissions procio.Permissions + MappedFile *File + ParentBaseAddress uintptr + RSS uintptr + Size uintptr + State procio.State + Type procio.SegmentType + type MetaInformation struct + FormatVersion version.Version + SchemaURLs map[string]string + YapscanVersion version.Version + func GetMetaInformation() *MetaInformation + type Parser struct + func NewParser() *Parser + func (p *Parser) Parse(rdr Reader) (*Report, error) + type ProcessInfo struct + Bitness arch.Bitness + ExecutableMD5 string + ExecutablePath string + ExecutableSHA256 string + MemorySegments []*MemorySegmentInfo + PID int + Username string + type ProfilingInformation struct + FreeRAM uintptr + FreeSwap uintptr + LoadAvgFifteenMinutes float64 + LoadAvgFiveMinutes float64 + LoadAvgOneMinute float64 + Time Time + type Reader interface + OpenFileScans func() (io.ReadCloser, error) + OpenMemoryScans func() (io.ReadCloser, error) + OpenMeta func() (io.ReadCloser, error) + OpenProcesses func() (io.ReadCloser, error) + OpenStatistics func() (io.ReadCloser, error) + OpenSystemInformation func() (io.ReadCloser, error) + SetKeyring func(keyring openpgp.KeyRing) + SetPassword func(password string) + func NewFileReader(path string) Reader + type Report struct + FileScans []*FileScan + MemoryScans []*MemoryScan + Meta *MetaInformation + Processes []*ProcessInfo + Stats *ScanningStatistics + SystemInfo *SystemInfo + type ScanningStatistics struct + End Time + NumberOfFileBytesScanned uint64 + NumberOfFilesScanned uint64 + NumberOfMemoryBytesScanned uint64 + NumberOfProcessesScanned uint64 + NumberOfSegmentsScanned uint64 + ProfilingInformation []*ProfilingInformation + Start Time + type SystemInfo struct + Hostname string + IPs []string + NumCPUs int + OSArch arch.T + OSFlavour string + OSName string + OSVersion string + TotalRAM uintptr + TotalSwap uintptr + type Time struct + func Now() Time + func (t *Time) UnmarshalJSON(b []byte) error + func (t Time) MarshalJSON() ([]byte, error) + type Validator struct + func NewOfflineValidator(schemaRootPath string) *Validator + func NewOnlineValidator(schemaRootPath string) *Validator + func (v *Validator) ValidateReport(rdr Reader) error