Merge branch 'master' into enumeration-progressbar

This commit is contained in:
Manuel Bua 2020-07-27 20:45:47 +02:00
commit ba75e35a4b
3 changed files with 48 additions and 5 deletions

View File

@ -0,0 +1,14 @@
---
name: Feature request
about: Suggest an idea for this project
title: "[feature]"
labels: ''
assignees: ''
---
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
**Describe the solution you'd like**
A clear and concise description of what you want to happen.

18
.github/ISSUE_TEMPLATE/issue-report.md vendored Normal file
View File

@ -0,0 +1,18 @@
---
name: Issue report
about: Create a report to help us improve
title: "[issue]"
labels: ''
assignees: ''
---
**Describe the bug**
A clear and concise description of what the bug is.
**Nuclei version**
Please share the version of the nuclei you are running with `nuclei -version`
**Screenshot of the error or bug**
please add the screenshot showing bug or issue you are facing.

View File

@ -458,15 +458,26 @@ func (r *Runner) processTemplateWithList(p *progress.Progress, template *templat
// ProcessWorkflowWithList coming from stdin or list of targets // ProcessWorkflowWithList coming from stdin or list of targets
func (r *Runner) ProcessWorkflowWithList(p *progress.Progress, workflow *workflows.Workflow) { func (r *Runner) ProcessWorkflowWithList(p *progress.Progress, workflow *workflows.Workflow) {
var wg sync.WaitGroup
scanner := bufio.NewScanner(strings.NewReader(r.input)) scanner := bufio.NewScanner(strings.NewReader(r.input))
for scanner.Scan() { for scanner.Scan() {
text := scanner.Text() text := scanner.Text()
if err := r.ProcessWorkflow(p, workflow, text); err != nil { r.limiter <- struct{}{}
p.StartStdCapture() wg.Add(1)
gologger.Warningf("Could not run workflow for %s: %s\n", text, err)
p.StopStdCapture() go func(URL string) {
} defer wg.Done()
if err := r.ProcessWorkflow(p, workflow, text); err != nil {
p.StartStdCapture()
gologger.Warningf("Could not run workflow for %s: %s\n", text, err)
p.StopStdCapture()
}
<-r.limiter
}(text)
} }
wg.Wait()
} }
// ProcessWorkflow towards an URL // ProcessWorkflow towards an URL