Skip to content

Add handling of missing "service" object for port.#12

Open
stefan-wuensch wants to merge 1 commit intolaconicwolf:masterfrom
stefan-wuensch:master
Open

Add handling of missing "service" object for port.#12
stefan-wuensch wants to merge 1 commit intolaconicwolf:masterfrom
stefan-wuensch:master

Conversation

@stefan-wuensch
Copy link
Copy Markdown

If there is no "service" object, this fixes the skipping-over which is completely dropping that open port from the output.

Example:

<ports><extraports state="closed" count="33">
<extrareasons reason="conn-refused" count="33"/>
</extraports>
<port protocol="tcp" portid="80"><state state="open" reason="syn-ack" reason_ttl="0"/><service name="http" method="table" conf="3"/></port>
<port protocol="tcp" portid="4780"><state state="open" reason="syn-ack" reason_ttl="0"/></port>
</ports>

Without my fix, the port 4780 is completely skipped.

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