Skip to content

Latest commit

 

History

History
101 lines (86 loc) · 4.11 KB

readme_ko.md

File metadata and controls

101 lines (86 loc) · 4.11 KB

⭐PRs or any form of contribution will be appreciated⭐

SpoofDPI

다른 언어로 읽기: 🇬🇧English, 🇰🇷한국어, 🇨🇳简体中文, 🇷🇺Русский

DPI(Deep Packet Inspection) 우회를 위해 고안된 소프트웨어

image

설치

Binary

SpoofDPI는 ~/.spoof-dpi/bin 경로에 설치됩니다.
모든 경로에서 SpoofDPI를 실행 가능하도록 하기위해서 아래 라인을 ~/.bashrc || ~/.zshrc || ...에 추가해주세요.

export PATH=$PATH:~/.spoof-dpi/bin

curl

최신 릴리즈를 curl 명령어로 설치하기

  • OSX
curl -fsSL https://raw.githubusercontent.com/xvzc/SpoofDPI/main/install.sh | bash -s osx
  • Linux
curl -fsSL https://raw.githubusercontent.com/xvzc/SpoofDPI/main/install.sh | bash -s linux

wget

최신 릴리즈를 wget 명령어로 설치하기

  • OSX
wget -O - https://raw.githubusercontent.com/xvzc/SpoofDPI/main/install.sh | bash -s osx 
  • Linux
wget -O - https://raw.githubusercontent.com/xvzc/SpoofDPI/main/install.sh | bash -s linux 

Go

go install로 설치하기 $ go install github.com/xvzc/SpoofDPI/cmd/spoof-dpi

Remember that $GOPATH should be set in your $PATH

Git

직접 빌드하기 $ git clone https://github.com/xvzc/SpoofDPI.git
$ cd SpoofDPI
$ go build ./cmd/...

사용법

Usage: spoof-dpi [options...]
  -addr string
        Listen addr (default "127.0.0.1")
  -debug
        Enable debug output
  -dns-addr string
        DNS addr (default "8.8.8.8")
  -dns-port int
        DNS port (default 53)
  -enable-doh
        Enable DOH
  -no-banner
        Disable banner
  -pattern string
        Bypass DPI only on packets matching this regex pattern
  -port int
        port (default 8080)
  -timeout int
        timeout in milliseconds (default 2000)
  -url value
        Bypass DPI only on this url, can be passed multiple times

만약 브라우저에서 Hotspot Shield와 같은 크롬 VPN 확장프로그램을 사용중이라면
Settings > Extension 으로 이동해 비활성화 해주시기바랍니다.

OSX

터미널에서 $ spoof-dpi를 실행합니다. Proxy 설정은 자동으로 수행됩니다.

Linux

터미널에서 $ spoof-dpi를 실행하고, 프록시 옵션과 함께 브라우저를 실행합니다.
google-chrome --proxy-server="http:https://127.0.0.1:8080"

원리

HTTP

최근 대부분의 웹사이트가 HTTPS를 지원하기 때문에, SpoofDPI는 HTTP 요청에 대한 DPI 우회는 지원하지 않습니다. 다만 모든 HTTP 요청에 대한 Proxy 연결은 지원합니다.

HTTPS

TLS 1.3은 모든 Handshake 과정을 암호화 합니다. 하지만, Client hello 패킷의 일부에는 여전히 서버의 도메인 네임이 평문으로 노출되어있습니다. 다시 말하자면, 누군가가 암호화된 패킷을 본다면 해당 패킷의 목적지가 어딘지 손쉽게 알아차릴 수 있다는 뜻입니다. 노출된 도메인은 DPI 검열에 매우 유용하게 사용될 수도 있고, 실제로 HTTPS 요청을 보냈을 때 차단이 이루어지는 시점도 Client hello 패킷을 보낸 시점입니다. 여러가지 방법을 시도해본 결과, Client hello 패킷을 여러 조각으로 나누어 요청을 보냈을 때, 첫번째 조각에 대해서만 도메인 검열이 이루어지는 듯한 동작을 발견했습니다. 따라서 SpoofDPI는 해당 패킷을 두번에 나누어 보냅니다. 자세히 말하자면, 첫번째 1 바이트를 우선적으로 보내고, 나머지를 그 이후에 보내는 동작을 수행합니다.

SpoofDPI는 HTTPS 패킷을 복호화 하지 않기때문에 SSL 인증서를 필요로하지 않습니다.

참고

Green Tunnel by @SadeghHayeri
GoodbyeDPI by @ValdikSS