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

Parse hostname type=user to host_extras #125

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bodik
Copy link

@bodik bodik commented Mar 20, 2021

Hello,

please consider this PR. The changes adds hostname type="user" from the report to NmapHost.host_extra under "user_target_hostname" key.

Such value is important when working with NSE plugins dealing with web services where name-based virtualhosting might apply. In the nmap's output it is the only field of the host, service or script element where one can find at least weak indication of what the original specified target and NSE target was actually used (simples test cases can be made via http-title.nse where the differences of scanning ip, host or vhost cname are easy to spot).

bodik added 2 commits March 18, 2021 00:52
The value is relevant when dealing with NSE outputs for web oriented
services where name-based virtualhosting might apply (nmap/output.cc write_xml_initial_hostinfo).
@bodik bodik requested a review from savon-noir as a code owner March 20, 2021 11:15
@bodik
Copy link
Author

bodik commented Mar 20, 2021

btw turns out that it should partialy solve #103 . it does not honor requested xml dtd, but it's backward compatible with current api

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