Advertisement
Guest User

Untitled

a guest
Apr 20th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.05 KB | None | 0 0
  1. @echo off
  2. title Hello World
  3.  
  4. REM DNS
  5. netsh interface ip set dns "로컬 영역 연결" static 8.8.8.8 primary
  6. netsh interface ip add dns "로컬 영역 연결" 1.1.1.1
  7.  
  8. ipconfig /flushdns
  9.  
  10. REM hosts
  11. (
  12. echo #
  13. echo # TWITTER
  14. echo 117.18.237.66 platform.twitter.com
  15. echo 104.244.46.7 abs.twimg.com
  16. echo 104.244.46.167 abs.twimg.com
  17. echo 104.244.46.231 abs.twimg.com
  18. echo 72.21.91.70 pbs.twimg.com
  19. echo 117.18.237.70 pbs.twimg.com
  20. echo 72.21.91.70 ton.twimg.com
  21.  
  22. echo #github
  23. echo 13.229.188.59 github.com
  24. echo 13.250.177.223 github.com
  25. echo 52.74.223.119 github.com
  26. echo 13.229.188.59 www.github.com
  27. echo 13.250.177.223 www.github.com
  28. echo 52.74.223.119 www.github.com
  29. echo 13.229.188.59 gist.github.com
  30. echo 13.250.177.223 gist.github.com
  31. echo 52.74.223.119 gist.github.com
  32. echo 13.229.188.59 shop.github.com
  33. echo 13.250.177.223 shop.github.com
  34. echo 52.74.223.119 shop.github.com
  35. echo 13.250.94.254 api.github.com
  36. echo 13.250.168.23 api.github.com
  37. echo 54.169.195.247 api.github.com
  38. echo 13.250.162.133 codeload.github.com
  39. echo 54.251.140.56 codeload.github.com
  40. echo 13.250.183.169 assets.github.com
  41. echo 13.250.186.164 assets.github.com
  42. echo 13.250.195.152 assets.github.com
  43.  
  44. ) >> C:\Windows\System32\drivers\etc\hosts
  45.  
  46. REM REG
  47. taskkill /f /im explorer.exe
  48. echo Option Explicit > %temp%\a.vbs
  49. echo Dim styles, WSHShell, regs >> %temp%\a.vbs
  50. echo Set WSHShell = WScript.CreateObject("WScript.Shell") >> %temp%\a.vbs
  51. echo regs = "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableRegistryTools" >> %temp%\a.vbs
  52. echo styles = "REG_DWORD" >> %temp%\a.vbs
  53. echo WSHShell.RegWrite regs, "0", styles >> %temp%\a.vbs
  54. echo regs = "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableTaskMgr" >> %temp%\a.vbs
  55. echo styles = "REG_DWORD" >> %temp%\a.vbs
  56. echo WSHShell.RegWrite regs, "0", styles >> %temp%\a.vbs
  57. wscript %temp%\a.vbs
  58.  
  59. reg delete HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /f
  60. reg delete HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /f
  61. reg delete "HKLM\SYSTEM\CurrentControlSet\Control\Keyboard Layout" /v "Scancode Map" /f
  62.  
  63. del /f /q /a %temp%\a.vbs
  64. start explorer.exe
  65. cls
  66.  
  67. REM Printer Driver install
  68. cd C:\프린터드라이버\M4030ND(SamSung)
  69. C:\windows\system32\cscript c:\windows\system32\Printing_Admin_Scripts\ko-KR\prnport.vbs -a -r IP_172.18.12.13 -h 172.18.12.13 -me -o raw -y public -i 1 -n 9100
  70. C:\windows\system32\rundll32 printui.dll,PrintUIEntry /if /b "Samsung M4030ND" /f "SL-M4030ND\US004.inf" /r "IP_172.18.12.13" /m "Samsung Universal Print Driver 3"
  71. C:\windows\system32\cscript c:\windows\system32\Printing_Admin_Scripts\ko-KR\prnmngr.vbs -t -p "Samsung M4030ND"
  72.  
  73.  
  74. REM Browser
  75. tskill chrome >NUL 2>NUL
  76. TASKKILL /IM chrome.exe >NUL 2>NUL
  77. bitsadmin /transfer C /download /priority foreground "__CHROME__" D:\C_setup.exe >NUL 2>NUL
  78. bitsadmin /transfer F /download https://releases.mozilla.org/pub/firefox/nightly/latest-mozilla-central-l10n/Firefox%20Installer.ko.exe D:\F_setup.exe >NUL 2>NUL
  79.  
  80. REM shutdown -l
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement