r00t-3xp10it

bypass registry restrictions

Apr 17th, 2015
550
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ' script para introduzir uma chave no regedit para fazer
  2. ' o bypass as restrinçoes do administrador do systema
  3. ' escrito para ajudar o nosso amigo "Martins Gabriel" :D
  4.  
  5. Option Explicit
  6. Dim WSHShell, n, MyBox, p, t, mustboot, errnum, vers
  7. Dim enab, disab, jobfunc, itemtype
  8. Set WSHShell = WScript.CreateObject("WScript.Shell")
  9. p = "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\"
  10. p = p & "DisableRegistryTools"
  11. itemtype = "REG_DWORD"
  12. mustboot = "faz um restart ao teu pc" & vbCR & "para as mudanças fazerem efeito"
  13. enab = "ENABLED"
  14. disab = "DISABLED"
  15. jobfunc = "Registry settings: "
  16. t = "Confirmation"
  17. Err.Clear
  18. On Error Resume Next
  19. n = WSHShell.RegRead (p)
  20. On Error Goto 0
  21. errnum = Err.Number
  22. if errnum <> 0 then
  23. WSHShell.RegWrite p, 0, itemtype
  24. End If
  25. If n = 0 Then
  26. n = 1
  27. WSHShell.RegWrite p, n, itemtype
  28. Mybox = MsgBox(jobfunc & disab & vbCR & mustboot, 4096, t)
  29. ElseIf n = 1 then
  30. n = 0
  31. WSHShell.RegWrite p, n, itemtype
  32. Mybox = MsgBox(jobfunc & enab & vbCR & mustboot, 4096, t)
  33. End If
Advertisement
Add Comment
Please, Sign In to add comment