LiamBogur

Fake Update

Jun 5th, 2018
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. set WshShell = WScript.CreateObject("WScript.Shell")
  2. function readFromRegistry (strRegistryKey, strDefault)
  3. Dim WSHShell, value
  4. On Error Resume Next
  5. Set WSHShell = CreateObject ("WScript.Shell")
  6. value = WSHShell.RegRead (strRegistryKey)
  7. if err.number <> 0 then
  8. readFromRegistry= strDefault
  9. else
  10. readFromRegistry=value
  11. end if
  12. set WSHShell = nothing
  13. end function
  14. function OpenWithChrome(strURL)
  15. Dim strChrome
  16. Dim WShellChrome
  17. strChrome = readFromRegistry ( "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe\Path", "")
  18. if (strChrome = "") then
  19. strChrome = "chrome.exe"
  20. else
  21. strChrome = strChrome & "\chrome.exe"
  22. end if
  23. Set WShellChrome = CreateObject("WScript.Shell")
  24. strChrome = """" & strChrome & """" & " " & strURL
  25. WShellChrome.Run strChrome, 1, false
  26. end function
  27. OpenWithChrome "http://fakeupdate.net/win10u/"
  28. WScript.Sleep 2000
  29. WshShell.SendKeys "{F11}"
  30. For i = 1 to 10
  31. i = i - 1
  32. Set WShellChrome = CreateObject("WScript.Shell")
  33. WShellChrome.AppActivate("Chrome")
  34. if (WShellChrome.AppActivate("Chrome") = False) Then
  35. o = o + 1
  36. set WshShell = WScript.CreateObject("WScript.Shell")
  37. OpenWithChrome "http://fakeupdate.net/win10u/"
  38. WScript.Sleep 2000
  39. WshShell.SendKeys "{F11}"
  40. End If
  41. if (o = 10) Then
  42. i = 10
  43. End If
  44. Next
Advertisement
Add Comment
Please, Sign In to add comment