Repository navigation
implement TargetsFile and change logic of Targets - #884
Merged
forgedhallpass merged 8 commits intoAug 4, 2021
Merged
forgedhallpass merged 8 commits into
forgedhallpass merged 8 commits into
Conversation
forgedhallpass
suggested changes
Jul 29, 2021
forgedhallpass
left a comment
Contributor
There was a problem hiding this comment.
If we want to support this, we should rather change the -u, -target flag to accept multiple values (either CSV or by repeating the flag: -u http://host1:port1/path1 -u http://host2:port2/path2)
receive a goflags.StringSlice (`[]string`) as an argument
Contributor
Author
|
Updated |
Ice3man543
approved these changes
Aug 2, 2021
As we are still allowing single input per flag
ehsandeep
approved these changes
Aug 2, 2021
ehsandeep
left a comment
Member
There was a problem hiding this comment.
This PR introduces support for using multiple u/target flag similar to templates flag.
nuclei -u https://example.com -u https://google.com
forgedhallpass
suggested changes
Aug 2, 2021
…le' into impl/targets/targets_to_targetfile
Mzack9999
approved these changes
Aug 4, 2021
forgedhallpass
suggested changes
Aug 4, 2021
forgedhallpass
left a comment
Contributor
There was a problem hiding this comment.
Please fix the minor changes in the comments. The rest looks good 👍
forgedhallpass
approved these changes
Aug 4, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Change the existing flag
listwhich correlates toTargetsthat loads a file full of targets intofilewhich will correlate to a file for theTargetsFileoption.Implement a
[]stringtype for theTargetsoption and use thelistflags to accept comma separated targets