카테고리 없음

윈도우 프록시 강제 설정 (일부 설정은 조직에서 관리합니다)

nopdata 2023. 2. 22. 04:00

프로젝트 점검을 나가다 보면 중앙에서 정책으로 윈도우 설정을 제한하는 경우가 존재한다.

웹 모의해킹 진행을 위해서는 프록시 설정을 변경해야 하지만 정책으로 막혀있는 경우 "일부 설정은 조직에서 관리합니다" 라는 메시지와 함께 변경이 불가하다.

이 경우 레지스트리를 변경하면 된다.

 

 

1. 레지스트리 직접 변경

레지스트리를 통해 프록시 설정을 해줄 수 있다.

[프록시 설정]
프록시 활성화
- HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyEnable = 1

프록시 비활성화
- HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyEnable = 0

프록시 주소 설정
-  HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyServer = 127.0.0.1:8080

 

2. powershell을 통한 변경

https://social.technet.microsoft.com/wiki/contents/articles/53831.enable-disable-proxy-settings-via-powershell.aspx

 

Enable Disable Proxy Settings via PowerShell. - TechNet Articles - United States (English) - TechNet Wiki

 

social.technet.microsoft.com

위 링크를 보면 powershell을 이용하여 프록시 enable/disable 설정을 해놓았다.

 

3. Batch Script를 통한 변경

이전에 브라우저 시크릿 모드 넘기듯이 하면 된다.

프록시 활성화
- reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings" /t REG_DWORD /v ProxyEnable /d 1 /f

프록시 비활성화
- reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings" /t REG_DWORD /v ProxyEnable /d 0 /f

프록시 주소 설정
- reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings" /t REG_SZ /v ProxyServer /d 127.0.0.1:8080 /f