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
Featured Articles:
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- My 10 UNIX Command Line Mistakes
- 10 Greatest Open Source Software Of 2009
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- Top 20 OpenSSH Server Best Security Practices
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Linux Video Editor Software
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
- Download PDF version
- Printable version
- Comment RSS feed
- Last Updated: 01/28/08



{ 2 comments… read them below or add one }
Use Hmap for linux users
WOW! telnet works most of the time.
does anyone know how I can block suck requests that give away important info about my server, as I believe that would usually be the first place to start a hack or attack.