mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-26 01:25:29 +00:00
* Added workflow names based condition * Added conditional filtering to workflow executor * Replaced names with single name stringslice * Added probing for URL + input based on protocol * Remove debug comments * Fixed typo * Fixed failing tests * Fixed workflow matcher condition + tests * Fixed workflow item name * Switch to if-else * Fixed review comment strict * Increase bulk size * Added default port for SSL protocol + misc changes * Fixed failing tests * Fixed misc changes to executer * Fixed failing self-contained and offlinehttp tests * Fixed atomic increment operation * misc update * Fixed failing builds Co-authored-by: sandeep <8293321+ehsandeep@users.noreply.github.com>
20 lines
415 B
Go
20 lines
415 B
Go
package inputs
|
|
|
|
type SimpleInputProvider struct {
|
|
Inputs []string
|
|
}
|
|
|
|
// Count returns the number of items for input provider
|
|
func (s *SimpleInputProvider) Count() int64 {
|
|
return int64(len(s.Inputs))
|
|
}
|
|
|
|
// Scan calls a callback function till the input provider is exhausted
|
|
func (s *SimpleInputProvider) Scan(callback func(value string) bool) {
|
|
for _, v := range s.Inputs {
|
|
if !callback(v) {
|
|
return
|
|
}
|
|
}
|
|
}
|