Skip to content

Commit

Permalink
update yaya and fix API
Browse files Browse the repository at this point in the history
  • Loading branch information
cooperq committed Jun 29, 2020
1 parent 1939d8b commit 3b58584
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Automatically curate open source yara rules and run scans

## Installation
`go get github.com/cooperq/yaya`

`go install github.com/cooperq/yaya`

### Dependencies
Expand All @@ -14,6 +15,9 @@ Yaya depends on the following packages outside the standard library:
* https://github.com/hillu/go-yara
* https://github.com/jinzhu/gorm

You must also install the yara4 C libraries. We reccomend you install these from source:
https://yara.readthedocs.io/en/stable/gettingstarted.html


## Running
yaya update
Expand Down
3 changes: 2 additions & 1 deletion yaya.go
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,8 @@ func runScan(scanPath string) {
log.Panicf("Failed to compile rules: %s", err)
}
for path, matches := range scanResults {
results, err := rules.ScanFile(path, 0, 0)
var results yara.MatchRules
err := rules.ScanFile(path, 0, 0, &results)
if err != nil {
Warning(err)
}
Expand Down

0 comments on commit 3b58584

Please sign in to comment.