Fingerprint / Identify Remote Web Server
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
Subscribe to our free e-mail newsletter or RSS feed to get all updates.
You can Email this page to a friend.
Related Linux / UNIX FAQ:
- What are the exit statuses of ssh command?
- How to: Measure the Lateceny and Throughput of Apache / Lighttpd / IIS Webserver
- How to: Transfer MySQL database from one server to another UNIX / Linux server
- Fetch email from a remote server to a local user mailbox
- How To Use SSH in Unix or Linux shell script
Discussion on This FAQ
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Please do not use the comment form to ask for help / question. Ask your question on the excellent Linux tech support forum. Thank you very much for stopping by our site!
Tags: curl command, find remote Web server, find remote Web Service, fingerprint, HEAD / HTTP/1.0, Linux, remote server, request header, server type, telnet command, UNIX, web server ~ Last updated on: January 28, 2008



February 3rd, 2008 at 3:57 am
Use Hmap for linux users