Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

编译出的windows程序中的leakless.exe会被腾讯电脑管家和360当做病毒程序 #720

Closed
feeops opened this issue Sep 16, 2022 · 10 comments
Labels
question Questions related to rod

Comments

@feeops
Copy link

feeops commented Sep 16, 2022

Rod Version: v0.109.3

The code to demonstrate your question

What you got

编译出的windows程序中的leakless.exe会被腾讯电脑管家和360当做病毒程序

What you expected to see

blank

What have you tried to solve the question

blank

@feeops feeops added the question Questions related to rod label Sep 16, 2022
@ysmood
Copy link
Member

ysmood commented Sep 20, 2022

可以添加 leakless 到白名单吗?

@rpdg
Copy link

rpdg commented Sep 21, 2022

我也遇到类似问题,我使用的是win10自带反病毒。
运行会panic:
panic: fork/exec D:\TEMP\leakless-0c3354cd58f0813bb5b34ddf3a7c16ed\leakless.exe: Operation did not complete successfully because the file contains a virus or potentially unwanted software.

目前的临时办法是使用 v0.107附带的 leakless.exe 替换后就正常了。还是希望作者能解决

@ysmood
Copy link
Member

ysmood commented Sep 21, 2022

可以自己编译 leakless,读读 readme :https://github.com/ysmood/leakless#custom-build-for-goos-or-goarch

@feeops
Copy link
Author

feeops commented Sep 21, 2022

附带的 leakless.exe

附带的 leakless.exe 在哪下载?

@feeops
Copy link
Author

feeops commented Sep 21, 2022

可以添加 leakless 到白名单吗?

技术上是可以的,但比较麻烦,而且打包出来的文件要分发给很多用户去使用,让他们添加白名单也挺麻烦的
能从代码层面解决是最好的

@ysmood
Copy link
Member

ysmood commented Sep 21, 2022

我可以试试修改这块的架构,确实也很 hacky,但目前有些其他事情优先级会更高。

目前初步的想法是把 leakless 变成 optional,rod 会去寻找系统是否安装了 leakless,如果有安装才使用,而不是像现在这样把 leakless 编译到 binary 里。让用户有更多自主空间,有兴趣的朋友也可以帮忙实现下这块的逻辑,非常简单。

@hellodword
Copy link

可以添加 leakless 到白名单吗?

技术上是可以的,但比较麻烦,而且打包出来的文件要分发给很多用户去使用,让他们添加白名单也挺麻烦的 能从代码层面解决是最好的

语言通病,甚至可能和 go 版本、编译选项等因素都有关系,不建议开源项目为这种问题操心

https://go.dev/doc/faq#virus

商业化可以联系 360 和腾讯申诉

https://open.soft.360.cn/report.php
https://guanjia.qq.com/online_server/lj/

@ysmood
Copy link
Member

ysmood commented Sep 23, 2022

@feeops 类似这样关闭 leakless 还会被当作病毒吗?

u := launcher.New().Leakless(false).MustLaunch()

browser := rod.New().ControlURL(u).MustConnect()
defer browser.MustClose()

@feeops
Copy link
Author

feeops commented Sep 23, 2022

@feeops 类似这样关闭 leakless 还会被当作病毒吗?

	u := launcher.New().Leakless(false).MustLaunch()

	browser := rod.New().ControlURL(u).MustConnect()

这样程序退出的时候,浏览器还能自动退出吗?

@ysmood
Copy link
Member

ysmood commented Sep 23, 2022

不会自动退出,但只要在最外层的 main 函数里用 defer 关闭浏览器就行了。leakless 一般是给开发者开发时用的,生产环境一般用不到。比如我用 rod 开发一个程序给用户,我是不会用 leakless 的,我会用代码确保浏览器安全释放。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Questions related to rod
Projects
None yet
Development

No branches or pull requests

4 participants