Advertisement
Guest User

Decrypt this code!

a guest
Sep 15th, 2012
850
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. Sub onLoad()
  2. window.ResizeTo 150,80
  3.  
  4. const HKEY_CURRENT_USER = &H80000001
  5. strComputer = "."
  6.  
  7. Set objReg = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\default:StdRegProv")
  8.  
  9. ' Delete Policies registry key
  10. strKeyPath = "Software\Microsoft\Windows\CurrentVersion\Policies"
  11. DeleteSubkeys HKEY_CURRENT_USER, strKeyPath, objReg
  12.  
  13. ' Remove IE restrictions
  14. strKeyPath = "Software\Policies\Microsoft\Internet Explorer"
  15. DeleteSubkeys HKEY_CURRENT_USER, strKeyPath, objReg
  16.  
  17. ' Enable Command Prompt
  18. objReg.SetDWORDValue HKEY_CURRENT_USER, "Software\Policies\Microsoft\Windows\System", "DisableCMD", 0
  19.  
  20. ' Kill Explorer.exe
  21. Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
  22. Set colProcessList = objWMIService.ExecQuery _
  23. ("Select * from Win32_Process Where Name = 'explorer.exe'")
  24. For Each objProcess in colProcessList
  25. objProcess.Terminate(1)
  26. Next
  27.  
  28. ' Launch Explorer.exe
  29. Set objShell = CreateObject("Wscript.Shell")
  30. objShell.Run "explorer.exe"
  31. Set objShell = Nothing
  32.  
  33. document.parentWindow.setTimeout "CloseMe()", 3000
  34. End Sub
  35.  
  36. ' Recursively delete registry keys
  37. Sub DeleteSubkeys(HKEY_CURRENT_USER, strKeyPath, objRegistry)
  38. objRegistry.EnumKey HKEY_CURRENT_USER, strKeyPath, arrSubkeys
  39.  
  40. If IsArray(arrSubkeys) Then
  41. For Each strSubkey In arrSubkeys
  42. DeleteSubkeys HKEY_CURRENT_USER, strKeyPath & "\" & strSubkey, objRegistry
  43. Next
  44. End If
  45.  
  46. objRegistry.DeleteKey HKEY_CURRENT_USER, strKeyPath
  47. End Sub
  48.  
  49. ' Close the window
  50. Sub CloseMe()
  51. close
  52. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement