Matthew Boyle wrote:
> Sven Klemm wrote:
>> attached is a patch that adds https support to showHTMLTitle. It uses
>> the port number to decide whether ssl is required or not. There is
>> probably a better way to detect whether ssl is needed, but in the soc
>> branch http and https both show up as service "http".
>
> with a "standard" scan, it /should/ identify 443/tcp as "https", and set
> port.service appropriately.
>
> if you also request a version-scan, you get "ssl/http" as the service
> name instead. adding a test for this in the portrule (and modifying
> your patch accordingly), would also allow the script to run when the the
> service is on a non-standard port.
hmm but it didn't in my case I got http otherwise it wouldn't even
execute the action as the portrule only triggers on "http". I did
specify a service scan too.
When I specify a service scan the service is always http in the lua
script no matter whether it's http or https without service scan the
service is http or https. But the service_tunnel field gets set for a
version scan. The attached patch takes this into account and works
for http and https with and without service scan.
Cheers,
Sven
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org
Received on Jun 28 2007