pyinstaller编译出的exe被杀毒软件认为是木马
妙音
posted @ 2018年10月14日 08:15
in python
with tags
pyinstaller
, 2441 阅读
把python文件转为独立的exe,放在windows上运行。结果腾讯管家马上提示有可能是木马把它删除了
一脸懵逼,我良民,咋成木马了呢。思前想后,我做了什么,被认为很危险。原来我用了os.system。下面是演示
python文件
#xxx.py import os cmd="xxxxx" os.system(cmd)
编译exe
#编译完成,系统提示发现木马 python -m PyInstaller xxx.py --onefile
解决方法
改用subprocess替代os.system
subprocess.Popen(cmd, close_fds=True)
为什么用了subprocess就没事了?
os.sytem属于独立进程间调用。subprocess外壳还是python属于内部进程。
《了凡四训》详解之改过之法
印光大师十念法(胡小林主讲第1集)
印光大师十念法(胡小林主讲第2集)
印光大师十念法(胡小林主讲第3集)
2020年11月24日 21:37
Thank you for sharing a bunch of this quality contents, I have bookmarked your blog. Please also explore advice from my site. I will be back for more quality contents. Arabic majlis floor sofa
2020年12月06日 00:17 Your post is very helpful to get some effective tips to reduce weight properly. You have shared various nice photos of the same. I would like to thank you for sharing these tips. Surely I will try this at home. Keep updating more simple tips like this. add fractions with unlike denominators
2020年12月06日 20:19
I'm constantly searching on the internet for posts that will help me. Too much is clearly to learn about this. I believe you created good quality items in Functions also. Keep working, congrats! Buy High Quality Website Traffic
2020年12月14日 17:46
I was impressed with the site that you created, so memotipasi many people to be more advanced, there also kunjugi me, as a comparison pretty gaming
2020年12月18日 05:21
Your post has those facts which are not accessible from anywhere else. It’s my humble request to u please keep writing such remarkable articles kent ridge hill residences condo
2020年12月22日 21:52
Wow, this is really interesting reading. I am glad I found this and got to read it. Great job on this content. I like it. kopar at newton price
2020年12月25日 19:55
Thanks for Nice and Informative Post. This article is really contains lot more information about This Topic. One Bernam showflat