How to get available physical memory using javascript/VBScript NOT USING WMI ??

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pghantasala
    New Member
    • Sep 2009
    • 2

    How to get available physical memory using javascript/VBScript NOT USING WMI ??

    How to get available physical memory using javascript NOT USING WMI ?? any other way?
    I need to achieve this by using javascript/vbscript and I cannot use WMI. Please let me know the possibilities.
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    I’m not aware that javascript can do that at all.

    Comment

    • sumittyagi
      Recognized Expert New Member
      • Mar 2007
      • 202

      #3
      Question 1:- Why do you want to get available physical memory for the client. I can unerstand if someone wants know physical memory of the server (to know how much space is left to save/process data); But client acts only the role of presentation layer and submiting requests to the server.

      Question 2:- Why a client will allow accessing its physical memory when it knows there are lots of malicious scripts are waiting for such information.

      Question 3:- Why javascript will ask for physical memory when it is a client side scripting language.

      Answer the above three questions and you will get your answer.

      Comment

      • pghantasala
        New Member
        • Sep 2009
        • 2

        #4
        Hi,

        Thanks for the explanation. You are really an expert.

        1.)The requirement was to check if the user is a particular domain, physical memory, IP address, etc. This helps the end users to know in which domain they are. Moreover, they come to know the available physical memory which they compare to the minimum requirements as new applications are being pushed to the users desktops.

        2.) Client may not allow to fetch the data directly, and that is the reason I was asking for a back door entry.

        3.) The motive is to get these details. If there is any better way to get the client's machine details, please let me know. That'll help me.


        Thanks,
        Praveen Ghantasala.


        Originally posted by sumittyagi
        Question 1:- Why do you want to get available physical memory for the client. I can unerstand if someone wants know physical memory of the server (to know how much space is left to save/process data); But client acts only the role of presentation layer and submiting requests to the server.

        Question 2:- Why a client will allow accessing its physical memory when it knows there are lots of malicious scripts are waiting for such information.

        Question 3:- Why javascript will ask for physical memory when it is a client side scripting language.

        Answer the above three questions and you will get your answer.

        Comment

        • gits
          Recognized Expert Moderator Expert
          • May 2007
          • 5390

          #5
          as it was already said ... you cannot achieve that with JavaScript ... since JavaScript is intentionally designed to influence the behaviour of webpages or the browser and especially to not! do things that a client typically will not allow. So thinking of a backdoor might be an idea but JavaScript itself will not have such possibilities. Having said this, you could imagine that the browsers itself might have access to specific information at the client and so there might be ways when you could rely on some specifics ... like specific browsers and/or browser settings ... for example you might use the nsIMemory interface in mozilla browsers to alloc or free memory, which will rely on enhanced privileges that a user has to allow before. so this is only recommendable when you are in a closed einvironment like an intranet or similar ... where you could control such things. And as you could see you would have to implement that fully different in IE since such things basicly would need to use very browser-specific APIs ... so for public webapplications that wouldn't be an option ... or at least no option that would work reliable.

          kind regards

          Comment

          Working...