Added support for custom port specifications #61
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.
by setting the -p as custom and providing a path to a text file on the -l flag we can read custom lists of ports separated by new lines. This is useful when we are testing against non common http ports or ports that are not in the already existing lists. e.g.
$ echo "127.0.0.1" | ./httprobe -p custom -l ./ports.txt -prefer-https http://127.0.0.1:8443
http://127.0.0.1:8442
http://127.0.0.1
Where ports.txt is a file with different ports , one on every line: 80
81
82
83
8440
8441
8442
8443
8444