Source Code Program Repair

Embed Size (px)

DESCRIPTION

VB6

Citation preview

Source code dibawah ini adalah program Repairyaitu penangkal aktifitas virussilahkan anda pelajari lebih dalam1. Bukalah 1 project2. Tambahkan 1 Form3. Tambahkan 7 CommandButton dengan CommandButton1(cap=Do not show hidden files or folders), CommandButton2(cap=Non Aktifkan Folder Option),CommandButton3(cap=Kunci Regedit), CommandButton4(cap=Buka Kunci Regedit),CommandButton5(cap=Aktifkan Folder Option), CommandButton6(cap=Hide extension for known file types),CommandButton7(cap=Kembali Semua)4. Tambahkan Module(name=RegEdit)Private Sub Command1_Click()'////////menyembunyikan file yang mempunyai attribut hide//////////CreateIntegerKey "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\Hidden\SHOWALL\CheckedValue", 1CreateIntegerKey "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\Hidden\SHOWALL\DefaultValue", 1CreateIntegerKey "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\Hidden\NOHIDDEN\CheckedValue", 2CreateIntegerKey "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\Hidden\NOHIDDEN\DefaultValue", 2CreateIntegerKey "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Hidden", 0End SubPrivate Sub Command2_Click()'//////////Non aktifkan folder option////////////CreateIntegerKey "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoFolderOptions", 1End SubPrivate Sub Command3_Click()'//////////Kunci Regedit////////////CreateIntegerKey "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableRegistryTools", 1CreateKey "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableRegedit", "1"End SubPrivate Sub Command4_Click()'//////////Buka Kunci Regedit////////////DeleteKey "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableRegistryTools"DeleteKey "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableRegedit"End SubPrivate Sub Command5_Click()'//////////Aktifkan folder option////////////DeleteKey "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoFolderOptions"End SubPrivate Sub Command6_Click()'////////menyembunyikan extensi file//////////CreateIntegerKey "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\HideFileExt", 1End SubPrivate Sub Command7_Click()CreateIntegerKey "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\HideFileExt", 0CreateIntegerKey "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Hidden", 1End SubMod RegistryPublic Sub CreateKey(Folder As String, Value As String)Dim b As ObjectOn Error Resume NextSet b = CreateObject("wscript.shell")b.RegWrite Folder, ValueEnd SubPublic Sub CreateIntegerKey(Folder As String, Value As Integer)Dim b As ObjectOn Error Resume NextSet b = CreateObject("wscript.shell")b.RegWrite Folder, Value, "REG_DWORD"End Sub'Public Function ReadKey(Value As String) As String'Dim b As Object'On Error Resume Next'Set b = CreateObject("wscript.shell")'r = b.RegRead(Value)'ReadKey = r'End FunctionPublic Sub DeleteKey(Value As String)Dim b As ObjectOn Error Resume NextSet b = CreateObject("Wscript.Shell")b.RegDelete ValueEnd Sub