CLI option to also show closed ports#736
Open
fabianbees wants to merge 4 commits intobee-san:masterfrom
Open
Conversation
db1f410 to
64e6ad4
Compare
9b56a19 to
462771a
Compare
Contributor
Author
|
I have rebased the feature onto master. |
01a0d89 to
29b77d6
Compare
Contributor
Author
|
@bee-san Can you please also have a look at this PR? |
29b77d6 to
f76d254
Compare
b04d8f5 to
882789e
Compare
882789e to
498dbf7
Compare
498dbf7 to
e014b0e
Compare
e014b0e to
16f97cd
Compare
16f97cd to
773cc2c
Compare
773cc2c to
5194440
Compare
Owner
|
thanks for this! has a merge conflict :( |
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.
This PR introduces the new CLI option
--closed, which enables the option to also show ports which are closed.From a security perspective, it is very useful information to see whether we got any response at all for a given port, even when the response is a RST (conn-refused).
It can indicate that our request was denied (or specifically blocked by a firewall).
Currently this behavior is behind the
--closedCLI flag and not enabled by default.Nmap, for example, shows closed ports by default.
Regarding the output of the
--closedoption, it mimics the output for open ports, but instead ofOpenit showsClosedright before the IP Address.If the
-g(grepable) option is set, first all open ports are printed for each IPs, then the text closed ports: is printed and the same output is repeated for all closed ports.Here is an example:
And with the -g option: