This PR aims to bring the possibility to hit multiple HTTP endpoints with --banners for open ports. The multiple endpoints can be specified in command-line with the option --http-url "/endpoint1,/endpoint2,/endpoint3".
It uses the linked-list of banners introduced to try multiple protocols on one port.
In addition, it add an option (--output-probes) to output in some formats the probe used to get a banner. This allows to keep info about what banner corresponds to what probe.
This PR aims to bring the possibility to hit multiple HTTP endpoints with --banners for open ports. The multiple endpoints can be specified in command-line with the option
--http-url "/endpoint1,/endpoint2,/endpoint3"
.It uses the linked-list of banners introduced to try multiple protocols on one port.
In addition, it add an option (
--output-probes
) to output in some formats the probe used to get a banner. This allows to keep info about what banner corresponds to what probe.For example:
In the output XML, we will have two different lines:
In this example, the HTTP
GET
request to/index.html
gives aHTTP 200 OK
while/index.php
gives aHTTP 404 File not found
.Note that without
--output-probes
, masscan output is not modified, which ensures compatibility with current parsing tools.Disclaimers:
Finally, note that @p-l- already drafted the support of this new output format in Ivre (see https://github.com/ivre/ivre/pull/1574).