mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-18 17:05:29 +00:00
Fixed panic in http executer
This commit is contained in:
parent
8bc9587881
commit
1bb4a2568a
@ -109,9 +109,12 @@ func (r *Request) Compile(options *protocols.ExecuterOptions) error {
|
||||
|
||||
// Requests returns the total number of requests the YAML rule will perform
|
||||
func (r *Request) Requests() int {
|
||||
if len(r.Payloads) > 0 {
|
||||
if r.generator != nil {
|
||||
payloadRequests := r.generator.NewIterator().Total()
|
||||
return len(r.Raw) * payloadRequests
|
||||
}
|
||||
if len(r.Raw) > 0 {
|
||||
return len(r.Raw)
|
||||
}
|
||||
return len(r.Path)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user