XP SP2 detection

Ben Swaby
2004-09-22
2012-10-11
  • Ben Swaby
    Ben Swaby
    2004-09-22

    Is there a way to add XP SP2 detection? I know it's in the agent string but don't know how to add it to awstats.

    HTTP_USER_AGENT :Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 1.0.3705)

    The "SV1" indicates a system running XP SP2. SV1 stands for Security Version 1.

    Thanks
    Ben

     
    • You can add XP SP2 in the operatings_systems.pm in the /lib subdir.

      Best regards,

      tfranzke

       
    • Ben Swaby
      Ben Swaby
      2004-09-25

      Ok.. I found the file, but confused as to what to put in the file to have it detect "; SV1" to determine xp sp2.

      Below is the XP OS. Can somebody tell me how to tell make it detect SV1 and report xp sp2?

      OSSearchIDOrder

      'windows[_+ ]xp','windows[_+ ]nt[_+ ]5.1',

      OSHashID

      'windows[_+ ]xp','winxp','windows[_+ ]nt[_+ ]5.1','winxp',

      %OSHashLib = (
      'winxp','Windows XP',

      Thanks
      Ben

       
      • Given that your information is correct, then this one should work fine:

        1.)
        Go to your icon/os sub. Copy the winxp.png and name it winxpsp2.png

        2.)
        Insert the following lines in front of the respective lines for Win XP:

        OSSearchIDOrder

        'windows[_+ ]xpsp2','windows[_+ ]nt[_+ ]5.1; SV1',

        OSHashID

        'windows[_+ ]xpsp2','winxpsp2','windows[_+ ]nt[_+ ]5.1; SV1','winxpsp2',

        %OSHashLib
        'winxpsp2','Windows XP SP2',

        Rerun the stats.

        Best regards,

        tfranzke