Q. How do I fingerprint or identify remove web server a from UNIX / Linux shell prompt?
A. You can use standard utilities such as
a) telnet command
b) curl command
telnet - Identify remote web server
Use telnet to connect to remove web server, enter
$ telnet www.vivekgite.com www
Output:
Trying 74.86.49.130... Connected to www.vivekgite.com. Escape character is '^]'.
Request header, enter the following command and hit [ENTER] key twice:
HEAD / HTTP/1.0
Output:
HTTP/1.0 200 OK
Connection: close
X-Pingback: http://www.cyberciti.biz/tips/xmlrpc.php
Content-Type: text/html; charset=UTF-8
Content-Length: 0
Date: Mon, 28 Jan 2008 08:50:55 GMT
Server: lighttpd
Connection closed by foreign host.
curl - Identify remote web server
Type the command as follows:
$ curl -I http://www.remote-server.com/
$ curl -I http://vivekgite.com/
Output:
HTTP/1.1 200 OK
Content-type: text/html
Content-Length: 0
Date: Mon, 28 Jan 2008 08:53:54 GMT
Server: lighttpd
Want to read Linux tips and tricks, but don't have time to check our blog everyday? Subscribe to our daily email newsletter to make sure you don't miss a single tip/tricks. Subscribe to our weekly newsletter here!
- Email FAQ to a friend
- Printable version
- Rss Feed
- Last Updated: 1-28-08

{ 1 comment… read it below or add one }
Use Hmap for linux users