formats

Use Curl to Fetch ASP.NET Version Banner

Published on May 11, 2012, by + in sysadmin, windows.






The version of ASP.NET is sent in a banner with http requests and can be viewed with a curl command. I’ll show you how!


X-AspNet-Version: 2.0.50727


To view this with curl, use tack capital I and fetch any url ending in .aspx. A random url ending in .aspx works as well:


$ curl -I 10.112.12.67/asdfsaf.aspx
HTTP/1.1 404 Not Found
Cache-Control: private
Content-Length: 1507
Content-Type: text/html; charset=utf-8
Server: Microsoft-IIS/7.5
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Fri, 11 May 2012 13:13:50 GMT


Note that ASP.NET 2.x – 3.5 all reflect the same banner. The above example is running ASP.NET 3.5.1.


Thanks Cory!

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Notify me of followup comments via e-mail. You can also subscribe without commenting.

Home sysadmin Use Curl to Fetch ASP.NET Version Banner