跟踪 VB.net 应用程序中调用的外部 .EXE 的参数
我没有源代码的程序正在执行第三方 EXE 文件。我想找出它发送到 EXE 文件的参数(即thirdparty.exe -c“foo”-d“bar”)。我确实知道最初的程序是用 Visual Basic 编写的。
我可以运行任何工具来监视执行调用并拦截参数吗?
任何帮助将不胜感激。
A program for which I do not have the source code to is executing a third-party EXE file. I'd like to find out the arguments that it is sending to the EXE file (i.e. thirdparty.exe -c "foo" -d "bar"). I do know that the initial program is written in Visual Basic.
Are there any tools that I can run that will monitor the execution call and intercept the arguments?
Any help would be appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
要以编程方式获取它,请使用 WMI:
如果您只想查看命令行,可以使用 进程浏览器。
To get it programmatically, use WMI:
If you just want to see the command line, you can do so using Process Explorer.
使用图像文件执行选项。通过适当设置注册表项,您可以让操作系统执行您选择的可执行文件(而不是thirdparty.exe),从而允许您转换参数并自行在这些可执行文件上运行thirdparty.exe(如果您需要的话)。中间的程序可能甚至不知道其中的区别。
Use Image File Execution Options. By setting a registry key appropriately, you can have the OS execute the executable of your choice (instead of thirdparty.exe), allowing you to transform the parameters and run thirdparty.exe on those yourself, if that is what you need. The middle program will likely not even know the difference.