2022-01-04 08:57:53 +00:00
# SpoofDPI
2023-02-08 05:04:44 +00:00
2023-02-08 05:08:39 +00:00
Read in other Languages: [🇬🇧English ](https://github.com/xvzc/SpoofDPI ), [🇰🇷한국어 ](https://github.com/xvzc/SpoofDPI/blob/main/readme_ko.md ), [🇨🇳简体中文 ](https://github.com/xvzc/SpoofDPI/blob/main/readme_zh-cn.md )
2022-01-04 13:08:44 +00:00
2022-01-04 09:35:03 +00:00
A simple and fast software designed to bypass **Deep Packet Inspection**
2022-01-04 13:08:44 +00:00
2022-01-04 09:12:38 +00:00
![image ](https://user-images.githubusercontent.com/45588457/148035986-8b0076cc-fefb-48a1-9939-a8d9ab1d6322.png )
2022-01-03 08:43:30 +00:00
2022-01-12 09:33:49 +00:00
# Installation
2022-01-12 13:34:26 +00:00
## Binary
SpoofDPI will be installed in `~/.spoof-dpi/bin` .
To run SpoofDPI in any directory, add the line below to your `~/.bashrc || ~/.zshrc || ...`
```
export PATH=$PATH:~/.spoof-dpi/bin
```
### curl
2022-01-12 09:51:51 +00:00
Install the latest binary with 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
```
2022-01-12 13:34:26 +00:00
### wget
2022-01-12 09:51:51 +00:00
Install the latest binary with 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
```
2022-01-12 13:34:26 +00:00
## Go
2022-01-12 09:51:51 +00:00
You can also install SpoofDPI with **go install**
2022-01-04 09:11:43 +00:00
`$ go install github.com/xvzc/SpoofDPI/cmd/spoof-dpi`
2022-01-12 09:33:18 +00:00
> Remember that $GOPATH should be set in your $PATH
2022-01-03 08:45:15 +00:00
2022-01-12 13:34:26 +00:00
## Git
2022-01-12 09:51:51 +00:00
You can also build your own
2022-01-04 09:35:03 +00:00
`$ git clone https://github.com/xvzc/SpoofDPI.git`
`$ cd SpoofDPI`
2022-01-04 09:11:43 +00:00
`$ go build ./cmd/...`
2022-01-12 09:35:54 +00:00
# Usage
```
Usage: spoof-dpi [options...]
2022-07-24 02:18:58 +00:00
--addr=< addr > | default: 127.0.0.1
--dns=< addr > | default: 8.8.8.8
--port=< port > | default: 8080
--debug=< bool > | default: false
2022-07-24 02:17:23 +00:00
--banner=< bool > | default: true
2022-01-12 09:35:54 +00:00
```
2022-01-11 17:41:46 +00:00
> If you are using any vpn extensions such as Hotspot Shield in Chrome browser,
go to Settings > Extensions, and disable them.
2022-01-12 09:33:18 +00:00
2022-01-04 10:18:15 +00:00
### OSX
2022-01-12 09:33:18 +00:00
Run `$ spoof-dpi` and it will automatically set your proxy
2022-01-03 08:45:15 +00:00
2022-01-04 10:18:15 +00:00
### Linux
Run `$ spoof-dpi` and open your favorite browser with proxy option
2022-01-03 08:45:15 +00:00
`google-chrome --proxy-server="http://127.0.0.1:8080"`
2022-01-03 08:43:30 +00:00
2022-01-04 10:18:15 +00:00
# How it works
### HTTP
Since most of websites in the world now support HTTPS, SpoofDPI doesn't bypass Deep Packet Inspections for HTTP requets, However It still serves proxy connection for all HTTP requests.
### HTTPS
2022-01-04 11:19:21 +00:00
Although TLS 1.3 encrypts every handshake process, the domain names are still shown as plaintext in the Client hello packet.
2022-01-04 11:18:57 +00:00
In other words, when someone else looks on the packet, they can easily guess where the packet is headed to.
2022-01-04 11:21:53 +00:00
The domain name can offer a significant information while DPI is being processed, and we can actually see that the connection is blocked right after sending Client hello packet.
2022-01-04 11:18:57 +00:00
I had tried some ways to bypass this, and found out that it seemed like only the first chunk gets inspected when we send the Client hello packet splited in chunks.
2022-01-04 10:18:15 +00:00
What SpoofDPI does to bypass this is to send the first 1 byte of a request to the server,
and then send the rest.
> SpoofDPI doesn't decrypt your HTTPS requests, and that's why we don't need the SSL certificates.
2022-01-04 11:18:57 +00:00
# Inspirations
2022-01-11 17:41:46 +00:00
[Green Tunnel ](https://github.com/SadeghHayeri/GreenTunnel ) by @SadeghHayeri
[GoodbyeDPI ](https://github.com/ValdikSS/GoodbyeDPI ) by @ValdikSS
2022-06-18 10:21:02 +00:00
2022-10-12 02:47:13 +00:00
2022-11-07 15:45:56 +00:00