Advertisement
Guest User

Import permissions 2

a guest
Sep 23rd, 2021
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 1.14 KB | None | 0 0
  1. Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  2.         Win32MnClass = New System.Management.ManagementClass("Win32_Processor")
  3.         processors = Win32MnClass.GetInstances()
  4.         For Each processor As System.Management.ManagementObject In processors
  5.             prosesor = (processor("ProcessorID").ToString())
  6.             TextBox1.Text = prosesor
  7.         Next
  8.  
  9.  
  10.         Inputan = prosesor
  11.         Panjang_Input = Len(Inputan)
  12.  
  13.         For i = 1 To Panjang_Input
  14.             Enkrip = Mid(Inputan, i, 1)
  15.             Enkrip = Asc(Enkrip)
  16.             Enkrip = (Enkrip + 20) - 43
  17.             Enkrip = Chr(Enkrip)
  18.             Output = Output & Enkrip
  19.         Next i
  20.         hasilenkripsi = Output
  21.  
  22.         If My.Computer.Registry.GetValue("HKEY_CURRENT_USER\" + hasilenkripsi, "Andi", "Aspin") Is Nothing Then
  23.  
  24.             MessageBox.Show("Mã kích hoạt không được phát hiện", "Warning !!", MessageBoxButtons.OK, MessageBoxIcon.Error)  
  25.         Else
  26.             Me.Hide()
  27.             Form2.Timer1.Enabled = False
  28.             Form2.ShowDialog()
  29.         End If
  30.  
  31. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement