免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: alinker
打印 上一主题 下一主题

[SOS] 迂回实现 服务器端调用执行客户端程序 [复制链接]

论坛徽章:
0
31 [报告]
发表于 2006-04-12 09:11 |只看该作者
在CU看来找不着高效方法...唉~

我现在大脑一片混沌,都不知如何想...

论坛徽章:
0
32 [报告]
发表于 2006-04-12 10:02 |只看该作者

上老外论坛里找的,其中提到了nsIProcess

Re: [PHP] How to execute local applications on the client

Mauricio Pellegrini
2005-06-08, 8:57 pm

First, thanks to all who replied!
and yes I was aware of that kind of security issues and expected no
positive results upon my question.
But I've forgotten about the wsh.
Now I think I would use it in case it is *absolutely* necessary

Thanks again
Mauricio

On Tue, 2005-06-07 at 21:28, Rory Browne wrote:
> Sort of. There are two ways to do this(that I can think of, and
> neither of them are too reliable. Consider this: how would you like if
> any random website, could run any program they liked on your computer?
> This could range from word/excel, to less amicable programs like ones
> that control your speakers/microphone, etc.
>
> Having that said, you can use nsiProcess(in netscape/gecko based
> browsers.), or wsh for MSIE. I'm not sure exactly how to do this. I
> just remember reading some code that needed this. On
> netscape/mozilla/gecko you'll have to tell the script to override the
> security preventing this(the user will be shown a dialog box, asking
> them to confirm this). I'm not sure what the situation is with MSIE,
> but expect to encounter some security issues.
>
> I don't know any examples for nsIProcess off-hand, but you can check
> out the PHUI Code for an example on doing this on MSIE.
>
> On 6/7/05, Mauricio Pellegrini <hrrg-inf@speedy.com.ar> wrote:
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

论坛徽章:
0
33 [报告]
发表于 2006-04-12 10:03 |只看该作者
Author        Re: [PHP] How to execute local applications on the client

Mauricio Pellegrini
2005-06-08, 8:57 pm
        First, thanks to all who replied!
and yes I was aware of that kind of security issues and expected no
positive results upon my question.
But I've forgotten about the wsh.
Now I think I would use it in case it is *absolutely* necessary

Thanks again
Mauricio

On Tue, 2005-06-07 at 21:28, Rory Browne wrote:
> Sort of. There are two ways to do this(that I can think of, and
> neither of them are too reliable. Consider this: how would you like if
> any random website, could run any program they liked on your computer?
> This could range from word/excel, to less amicable programs like ones
> that control your speakers/microphone, etc.
>
> Having that said, you can use nsiProcess(in netscape/gecko based
> browsers.), or wsh for MSIE. I'm not sure exactly how to do this. I
> just remember reading some code that needed this. On
> netscape/mozilla/gecko you'll have to tell the script to override the
> security preventing this(the user will be shown a dialog box, asking
> them to confirm this). I'm not sure what the situation is with MSIE,
> but expect to encounter some security issues.
>
> I don't know any examples for nsIProcess off-hand, but you can check
> out the PHUI Code for an example on doing this on MSIE.
>
> On 6/7/05, Mauricio Pellegrini <hrrg-inf@speedy.com.ar> wrote:
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

论坛徽章:
0
34 [报告]
发表于 2006-04-12 10:24 |只看该作者
Javascript有没有类似功能?

[ 本帖最后由 alinker 于 2006-4-12 11:54 编辑 ]

论坛徽章:
0
35 [报告]
发表于 2006-04-12 10:26 |只看该作者

老外也有类似问题

Author        Re: [PHP] How to execute local applications on the client

Mauricio Pellegrini
2005-06-08, 8:57 pm
        First, thanks to all who replied!
and yes I was aware of that kind of security issues and expected no
positive results upon my question.
But I've forgotten about the wsh.
Now I think I would use it in case it is *absolutely* necessary

Thanks again
Mauricio

On Tue, 2005-06-07 at 21:28, Rory Browne wrote:
> Sort of. There are two ways to do this(that I can think of, and
> neither of them are too reliable. Consider this: how would you like if
> any random website, could run any program they liked on your computer?
> This could range from word/excel, to less amicable programs like ones
> that control your speakers/microphone, etc.
>
> Having that said, you can use nsiProcess(in netscape/gecko based
> browsers.), or wsh for MSIE. I'm not sure exactly how to do this. I
> just remember reading some code that needed this. On
> netscape/mozilla/gecko you'll have to tell the script to override the
> security preventing this(the user will be shown a dialog box, asking
> them to confirm this). I'm not sure what the situation is with MSIE,
> but expect to encounter some security issues.
>
> I don't know any examples for nsIProcess off-hand, but you can check
> out the PHUI Code for an example on doing this on MSIE.
>
> On 6/7/05, Mauricio Pellegrini <hrrg-inf@speedy.com.ar> wrote:
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

论坛徽章:
0
36 [报告]
发表于 2006-04-12 11:52 |只看该作者

老外也有类似问题

Re: [PHP] How to execute local applications on the client

Mauricio Pellegrini
2005-06-08, 8:57 pm
        First, thanks to all who replied!
and yes I was aware of that kind of security issues and expected no
positive results upon my question.
But I've forgotten about the wsh.
Now I think I would use it in case it is *absolutely* necessary

Thanks again
Mauricio

On Tue, 2005-06-07 at 21:28, Rory Browne wrote:
> Sort of. There are two ways to do this(that I can think of, and
> neither of them are too reliable. Consider this: how would you like if
> any random website, could run any program they liked on your computer?
> This could range from word/excel, to less amicable programs like ones
> that control your speakers/microphone, etc.
>
> Having that said, you can use nsiProcess(in netscape/gecko based
> browsers.), or wsh for MSIE. I'm not sure exactly how to do this. I
> just remember reading some code that needed this. On
> netscape/mozilla/gecko you'll have to tell the script to override the
> security preventing this(the user will be shown a dialog box, asking
> them to confirm this). I'm not sure what the situation is with MSIE,
> but expect to encounter some security issues.
>
> I don't know any examples for nsIProcess off-hand, but you can check
> out the PHUI Code for an example on doing this on MSIE.
>
> On 6/7/05, Mauricio Pellegrini <hrrg-inf@speedy.com.ar> wrote:
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

论坛徽章:
1
技术图书徽章
日期:2013-12-05 23:25:45
37 [报告]
发表于 2006-04-12 13:20 |只看该作者
原帖由 alinker 于 2006-4-12 09:11 发表
在CU看来找不着高效方法...唉~

我现在大脑一片混沌,都不知如何想...


那是因为你老是限在哪里,在一个弯里面绕来绕去。

仅仅通过浏览器,没有好的方法。

所谓的插件,你可以问问3721怎么做的。

论坛徽章:
1
技术图书徽章
日期:2013-12-05 23:25:45
38 [报告]
发表于 2006-04-12 13:21 |只看该作者
原帖由 alinker 于 2006-4-12 10:24 发表
Javascript有没有类似功能?



在安全情况下,没有任何附加设置或者插件的情况下,JavaScript做不到这一点,否则,我来执行rm -f或者format,你该怎么办?

论坛徽章:
1
技术图书徽章
日期:2013-12-05 23:25:45
39 [报告]
发表于 2006-04-12 13:22 |只看该作者
原帖由 alinker 于 2006-4-12 11:52 发表
Re: [PHP] How to execute local applications on the client

Mauricio Pellegrini
2005-06-08, 8:57 pm
        First, thanks to all who replied!
and yes I was aware of that kind of security issues and  ...



不知道你仔细看了回复么?

他说的,弹出一个提示框,问你是不是要执行。
这个并不友好,而且你可以实际的看看,没啥用出,对于你目前的所要做的。

论坛徽章:
0
40 [报告]
发表于 2006-04-12 13:30 |只看该作者
原帖由 HonestQiao 于 2006-4-12 13:21 发表



在安全情况下,没有任何附加设置或者插件的情况下,JavaScript做不到这一点,否则,我来执行rm -f或者format,你该怎么办?


的确,我就是想通过一按按钮就可以实现你所说:执行类似 rm -rf 本地指定目录和文件功能。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP