Re: Re: Ann: 6.0.3 Release

"Aengus" <[email protected]>
Newsgroups gmane.comp.web.analog.general
Message-ID <005c01c80d35$c0cdf510$0701a8c0@xppro>
On Friday, October 12, 2007 4:53 PM [EDT],
Aengus <[email protected]> wrote:

> These lines should replace lines 869-874 in the original tree.c:
>
>     else if (*(c + 1) == '.' && (*(c + 2) == '2')) {
>       if (strstr(whole, "; x64;") != NULL)
>         *name = "Windows:Windows XP64";
>       else
>       *name = "Windows:Windows Server 2003";
>       }
>     else
>       *name = "Windows:Unknown Windows";
>   }
>   else if (*c =='6')  {
>     if (strstr(whole, "; x64;") != NULL)
>       *name = "Windows:Windows Vista64";
>     else
>       *name = "Windows:Windows Vista";
>     }
>     else if (*c >= '7' && *c <= '9')


Okay, I just downloaded the original source from analog.cx, replaced the 
lines specified above, and compiled the changes.

Using this 3 line logfile:

1.2.3.4 - - [12/Oct/2007:01:25:02 +0000] "GET / HTTP/1.1" 200 16 "-" 
"Mozilla/5.0 (Windows; U; Windows NT 5.2 x64; en-US; rv:1.9a1) 
Gecko/20060214 Firefox"
1.2.3.4 - - [12/Oct/2007:01:25:02 +0000] "GET / HTTP/1.1" 200 16 "-" 
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; Win64; x64; SV1; .NET 
CLR 2.0.50727)"
1.2.3.4 - - [12/Oct/2007:01:25:02 +0000] "GET / HTTP/1.1" 200 16 "-" 
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Win64; x64; .NET CLR 
2.0.50727; SLCC1)"

(I got these browser strings from google - I couldn't find any x64 users in 
my own logs).

I got this OS Report:

no.: reqs: pages: OS
---: ----: -----: --
  1:    3:     3: Windows
   :    1:     1:   Windows Vista64
   :    1:     1:   Windows Server 2003
   :    1:     1:   Windows XP64

Note that I tested for  the presence of "; x64;" so the first string, from 
the 64-bit version of Firefox, was not identified as running on an x64 OS, 
but was identified as Windows Server 2003 (from the NT 5.2 part of the 
string). As far as I know, there is no way to tell whether it was really 
running on Windows Server 2003, or Windows XP64, and as far as I can tell, 
it doesn't really make any difference.

I'm doing this as a purely academic exercise, and don't intend to distribute 
the executable that I created.

Aengus 

+------------------------------------------------------------------------
|  TO UNSUBSCRIBE from this list:
|    http://lists.meer.net/mailman/listinfo/analog-help
|
|  Analog Documentation: http://analog.cx/docs/Readme.html
|  List archives:  http://www.analog.cx/docs/mailing.html#listarchives
|  Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
+------------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.