Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for custom port specifications #61

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Stoo0rmq
Copy link

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

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant