今天偶然发现迅雷不停的在上传数据,每秒3M左右, 打开任务管理器,发现一大堆的进程,很多流氓软件的进程驻留内容,偷窥隐私,占用带宽,尤其是360全家桶,删都删不掉。先分享一个简单的脚本,等有时间再英航死。
import psutil
import os
rogue_softwares = ['360chrome.exe', 'Xmp.exe', 'DingTalk.exe', 'KanKan.exe', 'SoftMgrLite.exe', 'iCloudServices.exe',
'vmware-authd.exe', 'vmnat.exe', 'vmnetdhcp.exe', 'QQProtect.exe', 'wpscenter.exe', 'wps.exe',
'AppleMobileDeviceService.exe', '360UHelper.exe', 'vmware-usbarbitrator64.exe']
for proc in psutil.process_iter():
try:
pinfo = proc.as_dict(attrs=['pid', 'name'])
except psutil.NoSuchProcess:
pass
else:
print pinfo
if pinfo['name'] in rogue_softwares:
cmd = 'TaskKill /T /F /PID %s' % (pinfo['name'])
os.popen(cmd)