diff --git a/cmd/integration-test/interactsh.go b/cmd/integration-test/interactsh.go index 54871c49..d4cf328b 100644 --- a/cmd/integration-test/interactsh.go +++ b/cmd/integration-test/interactsh.go @@ -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{}}, } diff --git a/pkg/protocols/common/interactsh/interactsh.go b/pkg/protocols/common/interactsh/interactsh.go index 490ae539..b8083598 100644 --- a/pkg/protocols/common/interactsh/interactsh.go +++ b/pkg/protocols/common/interactsh/interactsh.go @@ -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()