Skip to content

Commit

Permalink
fix: threatbook push too more
Browse files Browse the repository at this point in the history
  • Loading branch information
zema1 committed Apr 16, 2024
1 parent 7429c11 commit 82c4d0c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion grab/threatbook.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,12 @@ func (t *ThreatBookCrawler) GetUpdate(ctx context.Context, pageLimit int) ([]*Vu
}

func (t *ThreatBookCrawler) IsValuable(info *VulnInfo) bool {
return info.Severity == High || info.Severity == Critical
for _, tag := range info.Tags {
if tag == "0day" || tag == "有Poc" || tag == "有漏洞分析" {
return true
}
}
return false
}

type threatBookHomepage struct {
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
)

var log = golog.Child("[main]")
var Version = "v1.8.0"
var Version = "v1.8.1"

func main() {
golog.Default.SetLevel("info")
Expand Down

0 comments on commit 82c4d0c

Please sign in to comment.