从ASP应用程序在客户端运行.exe [英] Run .exe in client side from ASP Application

查看:114
本文介绍了从ASP应用程序在客户端运行.exe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨.
我已经创建了一个ASP应用程序,在那里我需要运行.exe并向其发送一些参数,现在我可以使用process.start()来做到这一点,但是当我处于调试模式时(直接从视觉工作室).
我已经阅读了一段时间,发现出于安全原因,我将无法执行此操作...
有什么方法可以执行此操作吗?像脚本之类的东西?
主要问题是我需要将参数发送到.exe
在此先感谢

注意:这是我工作中的Intranet站点,这是绝对必要的.

Hi.
I have created an ASP application, there I need to run a .exe and send it some parameters, right now I''m able to do this with process.start() but just when I''m in debugging mode (Directly from Visual Studio).
I have been reading a little and I found that for security reasons I''ll not be able to do this...
Is there any way to perform this? like a script or something?
The principal problem is that I need to send parameters to the .exe
Thanks in advance

Note: This is for an Intranet Site in my job, and it''s absolutely necessary to do this.

推荐答案

您的2个主要选择是将AX对象写入调用它,或者使用NPAPI插件来执行它... ...正如其他人所说的那样,这会造成巨大的安全漏洞,因此设计该插件/ax只调用已知的exe-如果我是CRC的话,我也会对其进行检查

您提到它是用delphi写的-您可能很幸运,delphi创建了IDispatch对象的左,右和中心-用oleview.exe查看exe-您可能会在其中找到一些可以通过脚本直接调用的内容(在仅限IE)通过 ActiveXObject [
Your 2 major choices are write an AX object to call it, or an NPAPI plugin to do it ... as others have said, that creates a gaping security hole, so engineer the plugin/ax to ONLY call the known exe - I''d CRC check it too if I were you

You mention it''s written in delphi - you may be lucky, delphi creates IDispatch objects left, right and centre - have a look at the exe with oleview.exe - you may find something in there you can directly invoke via script (in IE only) via ActiveXObject[^]


这篇关于从ASP应用程序在客户端运行.exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆