mirror of https://github.com/daffainfo/nuclei.git
Fix: sometimes dnslog request record is uppercase caused by nuclei templates uneffective (#4697)
* Fix: sometimes dnslog request record is upper caused by cannot validate vuln * convert request to lower for dns only --------- Co-authored-by: daiwei11 <daiwei11@baidu.com> Co-authored-by: Tarun Koyalwar <tarun@projectdiscovery.io> Co-authored-by: Tarun Koyalwar <45962551+tarunKoyalwar@users.noreply.github.com>dev
parent
035db2c15f
commit
c32acd0921
|
@ -5,7 +5,7 @@ import osutils "github.com/projectdiscovery/utils/os"
|
|||
// All Interactsh related testcases
|
||||
var interactshTestCases = []TestCaseInfo{
|
||||
{Path: "protocols/http/interactsh.yaml", TestCase: &httpInteractshRequest{}, DisableOn: func() bool { return osutils.IsWindows() || osutils.IsOSX() }},
|
||||
{Path: "protocols/http/interactsh-stop-at-first-match.yaml", TestCase: &httpInteractshStopAtFirstMatchRequest{}, DisableOn: func() bool { return true }}, // disable this test for now
|
||||
{Path: "protocols/http/default-matcher-condition.yaml", TestCase: &httpDefaultMatcherCondition{}, DisableOn: func() bool { return true }}, // disable this test for now
|
||||
{Path: "protocols/http/interactsh-stop-at-first-match.yaml", TestCase: &httpInteractshStopAtFirstMatchRequest{}, DisableOn: func() bool { return true }},
|
||||
{Path: "protocols/http/default-matcher-condition.yaml", TestCase: &httpDefaultMatcherCondition{}, DisableOn: func() bool { return true }}, // disable this test for now
|
||||
{Path: "protocols/http/interactsh-requests-mc-and.yaml", TestCase: &httpInteractshRequestsWithMCAnd{}},
|
||||
}
|
||||
|
|
|
@ -160,7 +160,11 @@ func (c *Client) processInteractionForRequest(interaction *server.Interaction, d
|
|||
}()
|
||||
data.Event.Lock()
|
||||
data.Event.InternalEvent["interactsh_protocol"] = interaction.Protocol
|
||||
data.Event.InternalEvent["interactsh_request"] = interaction.RawRequest
|
||||
if strings.EqualFold(interaction.Protocol, "dns") {
|
||||
data.Event.InternalEvent["interactsh_request"] = strings.ToLower(interaction.RawRequest)
|
||||
} else {
|
||||
data.Event.InternalEvent["interactsh_request"] = interaction.RawRequest
|
||||
}
|
||||
data.Event.InternalEvent["interactsh_response"] = interaction.RawResponse
|
||||
data.Event.InternalEvent["interactsh_ip"] = interaction.RemoteAddress
|
||||
data.Event.Unlock()
|
||||
|
|
Loading…
Reference in New Issue