Skip to content

Latest commit

 

History

History
108 lines (88 loc) · 4.71 KB

readme_ko.md

File metadata and controls

108 lines (88 loc) · 4.71 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

# OSX
curl -fsSL https://raw.githubusercontent.com/xvzc/SpoofDPI/main/install.sh | bash -s darwin-amd64

# linux-amd64
curl -fsSL https://raw.githubusercontent.com/xvzc/SpoofDPI/main/install.sh | bash -s linux-amd64

# linux-arm
curl -fsSL https://raw.githubusercontent.com/xvzc/SpoofDPI/main/install.sh | bash -s linux-arm

# linux-arm64
curl -fsSL https://raw.githubusercontent.com/xvzc/SpoofDPI/main/install.sh | bash -s linux-arm64

# linux-mips
curl -fsSL https://raw.githubusercontent.com/xvzc/SpoofDPI/main/install.sh | bash -s linux-mips

# linux-mipsle
curl -fsSL https://raw.githubusercontent.com/xvzc/SpoofDPI/main/install.sh | bash -s linux-mipsle

Go

go install로 설치하기

$ go install github.com/xvzc/SpoofDPI/cmd/spoof-dpi@latest

Git

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

사용법

Usage: spoof-dpi [options...]
  -addr string
        listen address (default "127.0.0.1")
  -debug
        enable debug output
  -dns-addr string
        dns address (default "8.8.8.8")
  -dns-port int
        port number for dns (default 53)
  -enable-doh
        enable 'dns-over-https'
  -no-banner
        disable banner
  -pattern value
        bypass DPI only on packets matching this regex pattern; can be given multiple times
  -port int
        port (default 8080)
  -system-proxy
        enable system-wide proxy (default true)
  -timeout int
        timeout in milliseconds; no timeout when not given
  -v    print spoof-dpi's version; this may contain some other relevant information
  -window-size int
        chunk size, in number of bytes, for fragmented client hello,
        try lower values if the default value doesn't bypass the DPI;
        when not given, the client hello packet will be sent in two parts:
        fragmentation for the first data packet and the rest

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

OSX

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

Linux

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