mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-18 16:15:26 +00:00
Merge branch 'master' into enumeration-progressbar
This commit is contained in:
commit
ba75e35a4b
14
.github/ISSUE_TEMPLATE/feature_request.md
vendored
Normal file
14
.github/ISSUE_TEMPLATE/feature_request.md
vendored
Normal 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
18
.github/ISSUE_TEMPLATE/issue-report.md
vendored
Normal 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.
|
||||||
@ -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()
|
||||||
|
r.limiter <- struct{}{}
|
||||||
|
wg.Add(1)
|
||||||
|
|
||||||
|
go func(URL string) {
|
||||||
|
defer wg.Done()
|
||||||
|
|
||||||
if err := r.ProcessWorkflow(p, workflow, text); err != nil {
|
if err := r.ProcessWorkflow(p, workflow, text); err != nil {
|
||||||
p.StartStdCapture()
|
p.StartStdCapture()
|
||||||
gologger.Warningf("Could not run workflow for %s: %s\n", text, err)
|
gologger.Warningf("Could not run workflow for %s: %s\n", text, err)
|
||||||
p.StopStdCapture()
|
p.StopStdCapture()
|
||||||
}
|
}
|
||||||
|
<-r.limiter
|
||||||
|
}(text)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wg.Wait()
|
||||||
}
|
}
|
||||||
|
|
||||||
// ProcessWorkflow towards an URL
|
// ProcessWorkflow towards an URL
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user