如何“允许”火狐网络自动安全

发布于 2024-10-27 15:24:34 字数 155 浏览 4 评论 0原文

我试图找到一种方法,通过使用 pywin32 或 windows API 来“单击”firefox 互联网安全窗口中的“允许”按钮。我能够使用 FindWindow 获得“互联网安全”窗口。我尝试发送按钮单击事件,但没有响应,并且按钮在间谍xx中看起来不可见。有什么想法吗?

谢谢

I'm trying to figure out a way to "click" the "Allow" button in firefox internet security window by using pywin32 or windows API. I was able to get the "internet security" window by using FindWindow. I tried to send a button click event but no response and the button looks invisible from spyxx. Any ideas?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

隔纱相望 2024-11-03 15:24:34

它可能不是一个真正的 Windows 按钮,而是一个 XUL 小部件,因此只有 Firefox 知道它在哪里以及它是什么样子。

由于您的问题听起来像“我想编写一个特洛伊木马”,所以我愿意提供的信息就这么多。

[编辑] Firefox 是一个非常灵活的浏览器,尤其是在打包方面。因此,您应该考虑将

  1. 浏览器与设置打包在一起(显然这仅在设置是静态的情况下才有效)
  2. 编写一个 FF 插件,它允许您执行您想要的操作。

由于我自己从未这样做过,所以大致的轮廓是:编写一个插件,在加载页面时收到通知(查看 Greasemonkey 插件 为例;也许 Greasemonkey 已经可以满足您的需求)。

现在,如果加载的页面包含一些特殊代码,您的插件会修改浏览器设置。现在您需要做的就是将 Firefox 与此插件一起打包到您的 IDS 套件中。

或者也许你可以制作插件

It's probably not a real Windows button but a XUL widget, so only Firefox knows where it is and what it looks like.

Since your question smells like "I want to write a Trojan", that's as much info I'm willing to give.

[EDIT] Firefox is a very flexible browser, especially when it comes to packaging it. So what you should consider is

  1. package the browser with the settings (obviously this only works if the setting is static)
  2. Write a FF plugin which allows you to do what you want.

Since I've never done this myself, a rough outline: Write a plugin which gets notified when a page is loaded (look into the source of the Greasemonkey add-on for an example; maybe Greasemonkey can already do what you need).

Now if the page loaded contains some special code, your plugin modifies the browser settings. Now all you need to do is to package firefox with this plugin for your IDS suite.

Or maybe you can make the plugin

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文