Chris Nizzardini, Salt Lake City Utah, Web Developer Specializing in LAMP+Ajax Since 2006

My Blog

Here is my awesome blog. You can find information on programming, linux, documentation, tips for code and database optimization, my thoughts and rants, and whatever else I feel like sharing. Feel free to contribute to the blog by posting comments and asking questions.
Linux

probing for service and os types, other nmap related

I often forget how to get the OS type and service type’s of remote servers. Here are a few commands that are quick, easy, and effective.

If curl is installed you can execute curl –head http://www.example.com to return web server and OS information. Note there are two dashes in front of head.

If nmap is installed nmap -p 80 -sV http://www.example.com will return the same information as above. The added benefit of using nmap is that you can change the port number parameter in front of -p to anything (25 for smtp, 21 for ftp, etc).

No related posts.

Leave a Reply