How do I get a web servers banner?
I'm writing a little program in java that it's main purpose is to get the banners from servers. It's integrated with a scanner that I made also(for my personal use sorry) the point of grabbing the banners is to make information gathering easier and cutting down on the task of using telnet (which isn't always reliable cause i know good admins like to change them) . Now the trick is that not all servers require you to send data but incase of for example a web server my only way of knowing how to get the server version is by sending a bad request. In case of most apache servers and some IIS Servers this is easy it sends me back output that i can read and search for example.
(my machine)
HTTP/1.1 400 Bad Request
Date: Sun, 31 Aug 2003 18:05:31 GMT
Server: Apache/2.0.47 (Win32)
Content-Length: 407
Connection: close
Content-Type: text/html; charset=iso-8859-1
I would just have to search for the string Server: My Question is , is there any way that you guys know of that doesn't require me to send a bad request and that would work on IIS aswell as APACHE ?