Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

Commit

Permalink
🔨 Matching request method for detect CVE threat
Browse files Browse the repository at this point in the history
  • Loading branch information
dwisiswant0 committed Nov 26, 2020
1 parent dcda25f commit 1279e5e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pkg/teler/teler.go
Expand Up @@ -100,14 +100,10 @@ func Analyze(options *common.Options, logs *gonx.Entry) (bool, map[string]string

for _, r := range cve.GetArray("requests") {
method := string(r.GetStringBytes("method"))
if method != "GET" {
if method != log["request_method"] {
continue
}

// if log["request_method"] != method {
// continue
// }

// for _, m := range r.GetArray("matchers") {
// for _, s := range m.GetArray("status") {
// if log["status"] == s.String() {
Expand Down

0 comments on commit 1279e5e

Please sign in to comment.