Made interactsh default, fixed matcher panic

dev
Ice3man543 2021-04-18 17:27:45 +05:30
parent 33bf306f28
commit e8747fc2da
3 changed files with 7 additions and 3 deletions

View File

@ -85,7 +85,7 @@ based on templates offering massive extensibility and ease of use.`)
set.IntVar(&options.PageTimeout, "page-timeout", 20, "Seconds to wait for each page in headless")
set.BoolVarP(&options.NewTemplates, "new-templates", "nt", false, "Only run newly added templates")
set.StringVarP(&options.DiskExportDirectory, "disk-export", "de", "", "Directory on disk to export reports in markdown to")
set.BoolVar(&options.Interactsh, "interactsh", false, "Use interactsh server for blind interaction polling")
set.BoolVar(&options.NoInteractsh, "no-interactsh", false, "Do not use interactsh server for blind interaction polling")
set.StringVar(&options.InteractshURL, "interactsh-url", "https://interact.sh", "Interactsh Server URL")
set.IntVar(&options.InteractionsCacheSize, "interactions-cache-size", 5000, "Number of requests to keep in interactions cache")
set.IntVar(&options.InteractionsEviction, "interactions-eviction", 60, "Number of seconds to wait before evicting requests from cache")

View File

@ -170,6 +170,10 @@ func (c *Client) RequestEvent(interactshURL string, data *RequestData) {
// Used by requests to show result or not depending on presence of interact.sh
// data part matchers.
func HasMatchers(operators *operators.Operators) bool {
if operators == nil {
return false
}
for _, matcher := range operators.Matchers {
if strings.HasPrefix(matcher.Part, "interactsh-") {
return true

View File

@ -123,6 +123,6 @@ type Options struct {
Project bool
// NewTemplates only runs newly added templates from the repository
NewTemplates bool
// Interactsh enables use of interactsh server for interaction polling
Interactsh bool
// NoInteractsh disables use of interactsh server for interaction polling
NoInteractsh bool
}