mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-18 11:45:25 +00:00
* feat http response memory optimization + reuse buffers * update nuclei version * feat: reuse js vm's and compile to programs * fix failing http integration test * remove dead code + add -jsc * feat reuse js vms in pool with concurrency * update comments as per review * bug fix+ update interactsh test to look for dns interaction * try enabling all interactsh integration tests --------- Co-authored-by: mzack <marco.rivoli.nvh@gmail.com>
22 lines
648 B
Go
22 lines
648 B
Go
package httputils
|
|
|
|
import (
|
|
"strings"
|
|
|
|
"github.com/projectdiscovery/nuclei/v3/pkg/types"
|
|
mapsutil "github.com/projectdiscovery/utils/maps"
|
|
)
|
|
|
|
// if template contains more than 1 request and matchers require requestcondition from
|
|
// both requests , then we need to request for event from interactsh even if current request
|
|
// doesnot use interactsh url in it
|
|
func GetInteractshURLSFromEvent(event map[string]interface{}) []string {
|
|
interactshUrls := map[string]struct{}{}
|
|
for k, v := range event {
|
|
if strings.HasPrefix(k, "interactsh-url") {
|
|
interactshUrls[types.ToString(v)] = struct{}{}
|
|
}
|
|
}
|
|
return mapsutil.GetKeys(interactshUrls)
|
|
}
|