pyinstaller编译出的exe被杀毒软件认为是木马
妙音
posted @ 2018年10月14日 08:15
in python
with tags
pyinstaller
, 6021 阅读
把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月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
2023年6月20日 22:43
Awesome post admin… May I ask what theme are you using on your blog? Where did you get it? Looks cool 花藝學校
2023年6月30日 01:44
Hello there, Could I export this post image and make use of that on my personal blog? emergency repairs
2023年10月13日 17:33
Top-notch information it is really. I’ve been awaiting for this information. health
2024年1月14日 05:15
Good day! This is kind of off topic but I need some help from an established blog. Is it very difficult to set up your own blog? I’m not very techincal but I can figure things out pretty fast. I’m thinking about setting up my own but I’m not sure where to start. Do you have any tips or suggestions? BIO MEDICAL WASTE SOLID LIQUID WASTE INCINERATOR SYSTEM MANUFACTURER
==================
Websites we think you should visit… [...]although websites we backlink to below are considerably not related to ours, we feel they are actually worth a go through, so have a look[...]…… SHELL AND TUBE HEAT EXCHANGER DESIGNER MANUFACTURER FPSO FLNG
2024年1月21日 06:22
After study a few of the blogs on your internet site now, we truly like your technique for blogging. I bookmarked it to my bookmark website list and are checking back soon. Pls check out my site in addition and inform me what you consider. AI Agents in Project Management