Projects STRLCPY afrog Commits 6d187fc5
🤬
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■ ■
    pkg/core/checker.go
    skipped 120 lines
    121 121   if c.VariableMap["request"] != nil {
    122 122   pocRstTemp.ResultRequest = c.VariableMap["request"].(*proto.Request)
    123 123   }
     124 + if c.VariableMap["fulltarget"] != nil {
     125 + c.Result.FullTarget = c.VariableMap["fulltarget"].(string)
     126 + }
    124 127   c.Result.AllPocResult = append(c.Result.AllPocResult, &pocRstTemp)
    125 128   
    126 129   if rule.StopIfMismatch && !isMatch {
    skipped 109 lines
  • ■ ■ ■ ■ ■
    pkg/core/result.go
    skipped 13 lines
    14 14  type Result struct {
    15 15   IsVul bool
    16 16   Target string
     17 + FullTarget string
    17 18   PocInfo *poc.Poc
    18 19   AllPocResult []*PocResult
    19 20   Output string
    skipped 65 lines
    85 86   fmt.Printf("\r" + log.LogColor.Time(number+" "+utils.GetNowDateTime()) + " " +
    86 87   log.LogColor.Vulner(""+r.PocInfo.Id+"") + " " +
    87 88   log.LogColor.GetColor(r.PocInfo.Info.Severity, ""+
    88  - strings.ToUpper(r.PocInfo.Info.Severity)+"") + " " + r.Target + "\r\n")
     89 + strings.ToUpper(r.PocInfo.Info.Severity)+"") + " " + r.FullTarget + "\r\n")
    89 90  }
    90 91   
    91 92  func (r *Result) Reset() {
    skipped 13 lines
  • ■ ■ ■ ■ ■ ■
    pkg/protocols/http/http.go
    skipped 280 lines
    281 281   protoRequest.Body = []byte(rule.Request.Body)
    282 282   variableMap["request"] = protoRequest
    283 283   
     284 + variableMap["fulltarget"] = fmt.Sprintf("%s://%s%s", protoRequest.Url.Scheme, protoRequest.Url.Host, protoRequest.Url.Path)
     285 + 
    284 286   return err
    285 287  }
    286 288   
    skipped 552 lines
  • ■ ■ ■ ■ ■ ■
    pkg/protocols/raw/http.go
    skipped 130 lines
    131 131   tempResultRequest.ContentType = tempResultRequest.Headers["content-type"]
    132 132   variableMap["request"] = tempResultRequest
    133 133   
     134 + variableMap["fulltarget"] = fmt.Sprintf("%s://%s%s", tempResultRequest.Url.Scheme, tempResultRequest.Url.Host, tempResultRequest.Url.Path)
     135 + 
    134 136   return err
    135 137  }
    136 138   
    skipped 12 lines
Please wait...
Page is in error, reload to recover