-2

I am looking for a way to find the os version and model version of the computer my site is being viewed on. jQuery, javascript, html, php, asp... Any language browsers generally support will do. I know it's possible, comex did it for iOS. I think he did:

firmware.indexof("4.0");

But I need the model too, as I said before. That is a veeeeeerrrrrryyyyyy long script that won't work for me anyway. I googled it, but no luck. Thanks in advance!

Zungy
  • 13
  • 9
  • 1
    "I know it's possible, comex did it for iOS." – this does not imply it's possible for anything except iOS. Generally speaking, I really really hope the information you want is *not* available to webpages; consequently, I don't think browsers will let you find it out. – millimoose Feb 04 '12 at 00:52
  • Sorry did not read rest of question. Actually, couldn't you map safari version for iOS? – Zungy Feb 04 '12 at 00:54
  • Why do you need this info anyway? Browser vendor and version should be enough. This type of information shouldn't be available from the browser, it would pose a big risk. – elclanrs Feb 04 '12 at 00:57
  • Why would it be a threat? What difference would it make? – Zungy Feb 04 '12 at 00:58
  • What do you mean exactly by model version? You're expecting to see something like "Dell Optiplex 390", or "HP Envy 14-2002ea"? What about the "no-name" custom rigs that home builders put together? – Trevor Tippins Feb 04 '12 at 00:58
  • Those custom ones could be unknown. And yes, that's what I mean. – Zungy Feb 04 '12 at 00:59
  • 1
    The OS version is in the user agent string. I doubt you can get the model number though. – millimoose Feb 04 '12 at 01:03
  • The threat is in that this helps in identifying the user / device. Browser strings have a fairly low selectivity, but considering that most PC companies have a lot of formal models of computers, the combination of geographic location, user agent, and hardware could let you identify someone to quite a small group of people. – millimoose Feb 04 '12 at 01:05
  • @Inerdial Thx **so** much! Also, I don't need the model number. For example, I need maybe 'Mac PowerPC G4 Panther'. – Zungy Feb 04 '12 at 01:06
  • On Windows machines you *might* be able to instantiate a WMIObject in client-side JavaScript, get that to get the Win32_ComputerSystemProduct and then pass properties back from that. – Trevor Tippins Feb 04 '12 at 01:09
  • @Trevor Tippins Thx! But what about 64-bit – Zungy Feb 04 '12 at 01:11
  • Same thing. It's just the name of the WMI class. – Trevor Tippins Feb 04 '12 at 01:12
  • @Trevor Tippins so it would be Win64_ComputerSystemProduct – Zungy Feb 04 '12 at 01:16
  • No. Just stick with Win32. Read up about WMI Windows Management classes. – Trevor Tippins Feb 04 '12 at 01:19
  • @Trevor Tippins But I'm saying hypothetically if I were to do it it would be that – Zungy Feb 04 '12 at 01:22
  • No. It's just the same thing, even on a Win64 platform - Win32_ComputerSystemProduct. – Trevor Tippins Feb 04 '12 at 01:23

1 Answers1

2

If you expect that your clients will have Flash installed (95%+ of the world does), you can use a Flash movie to check the flash.system.Capabilities object. It has lots of information you might be interested in. If you're trying to find it on an iOS machine, then obviously this won't work since it's not going to have Flash on it.

Zungy
  • 13
  • 9
Jordan
  • 31,971
  • 6
  • 56
  • 67