| 66 | ) |
| 67 | |
| 68 | type scanner struct { |
| 69 | c *yara.Compiler |
| 70 | rules *yara.Rules |
| 71 | config config.Config |
| 72 | |
| 73 | psnap ps.Snapshotter |
| 74 | |
| 75 | rwxs map[uint32]va.Address // contains scanned and matched RWX process allocations |
| 76 | mmaps map[uint32]va.Address // contains scanned and matched suspicious memory mappings |
| 77 | } |
| 78 | |
| 79 | // NewScanner creates a new YARA scanner. |
| 80 | func NewScanner(psnap ps.Snapshotter, config config.Config) (Scanner, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected