Javascript to get running processes?

后端 未结 4 668
旧时难觅i
旧时难觅i 2020-12-19 06:36

I\'m wondering if it\'s possible to use Javascript in a web browser (most likely IE) to retrieve a list of currently running processes?

I\'m not trying to start any

4条回答
  •  佛祖请我去吃肉
    2020-12-19 07:24

    No, you cannot get any information about OS processes from browser-based javascript running at normal privileges.

    The browser javascript environment is very carefully protected and isolated from your system for privacy and security reasons. If one could do what you were just asking for then any web page on the internet could see exactly what programs you were running and could send that info back to their own servers.

    If you are willing to loosen up your security settings, some versions of IE contain some ability to access OS information (see here for an example), but you should realize that if you do loosen up your security settings, then unknown web pages may be able to access this info or take actions in your OS also. Other browsers don't even contain this capability for regular web pages. With only one browser supporting this and only when security restrictions are relaxed, this is not a general purpose browser capability in any way.

提交回复
热议问题