Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tricks to find out if site is written in MVC? [closed]

Anyone know if any easy way to find out if a site is written in mvc?

And to take it a step further, assuming it is mvc to determine which pieces are asp.net forms?

I know just because they do or dont exist it doesn't mean 100% but it would be nice to have some things to look for certain headers that exist, or even existence of boilerplate code

i.e.(just a forms example):

onsubmit="javascript:return WebForm_OnSubmit();
like image 576
Nix Avatar asked Mar 12 '11 14:03

Nix


4 Answers

No, you can't, at least no way that would be reliable, short of emailing the site's developer.

like image 137
Andy Avatar answered Nov 15 '22 04:11

Andy


Unless the site developer has removed it, you get a header on each response that indicates the ASP.NET MVC version. I've tried this on three different sites I have using all three versions of MVC and it always appears.

X-Aspnetmvc-Version:1.0
X-Aspnetmvc-Version:2.0
X-Aspnetmvc-Version:3.0

note: StackOverflow removes all of the ASP.NET injected headers as far as I can tell

like image 33
tvanfosson Avatar answered Nov 15 '22 04:11

tvanfosson


Well, the most obvious clue is that you don't have extensions to urls (like .aspx). Right?

like image 25
Andr Avatar answered Nov 15 '22 06:11

Andr


The <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="" /> tag does not exist :)

like image 22
Mikhail Avatar answered Nov 15 '22 06:11

Mikhail