Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
projectdiscovery
GitHub Repository: projectdiscovery/nuclei
Path: blob/dev/pkg/protocols/http/httputils/misc.go
2072 views
1
package httputils
2
3
import (
4
"strings"
5
6
"github.com/projectdiscovery/nuclei/v3/pkg/types"
7
mapsutil "github.com/projectdiscovery/utils/maps"
8
)
9
10
// if template contains more than 1 request and matchers require requestcondition from
11
// both requests , then we need to request for event from interactsh even if current request
12
// doesnot use interactsh url in it
13
func GetInteractshURLSFromEvent(event map[string]interface{}) []string {
14
interactshUrls := map[string]struct{}{}
15
for k, v := range event {
16
if strings.HasPrefix(k, "interactsh-url") {
17
interactshUrls[types.ToString(v)] = struct{}{}
18
}
19
}
20
return mapsutil.GetKeys(interactshUrls)
21
}
22
23