Can i detect the operating sistem (Windows 2000, Windows XP, Linux, ...) from the client remote computer?
I want to load one web page from Windows 2000 and another web page if operating sistem is Windows XP!
I've already try [HTTP_USER_AGENT] variabile and for Win 2000
the output is "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322)"
and for Win XP the output is "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)". So, the difference between them is substring: "Windows NT 5.0"/Win 2000 and "Windows NT 5.1"/Win XP. Is this enough!Thank you!
How can I detect the OS version!
You should probably use Javascript. Heres something i found .
The javascript "appVersion" string varies in the way it names operating systems and where it places the name in the string. For example, Microsoft Windows might be called "WinPC", "Win95", "Win98", "WinNT", "Windows NT", "Windows 95", and so on, possibly with variation between upper and lower case. But one thing is fairly certain: anything running Windows has the string "win" somwhere in it (even if there are more letters as well), and a Mac browser always has the string "mac" (even if the full string is "Macintosh").
<script>
version = navigator.appVersion;
if (version.toLowerCase().indexOf("win")!=-1) location = "winpage.htm";
else if (version.toLowerCase().indexOf("mac")!=-1) location = "macpage.htm";
else location = "otherpage.htm";
<script>
If you want to do some seriusly with the detection system, read this:
http://www.insecure.org/nmap/nmap-fingerprinting-article.html
it's from Phrack 54, and written by Fydoor!
Personally i find this technology wery interesting!