Skip to content

Commit

Permalink
feat: 添加SSL证书验证
Browse files Browse the repository at this point in the history
  • Loading branch information
sinspired committed Dec 9, 2024
1 parent 08f1fd1 commit 02b5228
Show file tree
Hide file tree
Showing 4 changed files with 218 additions and 214 deletions.
143 changes: 43 additions & 100 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,120 +30,61 @@

```bash

# cnNetTool Start in 2024-11-14 22:07:51 +08:00
140.82.113.26 alive.github.com
20.205.243.168 api.github.com
140.82.113.21 central.github.com
# cnNetTool Start in 2024-11-20 22:13:42 +08:00
140.82.112.26 alive.github.com
140.82.114.22 central.github.com
20.205.243.165 codeload.github.com
140.82.114.21 collector.github.com
140.82.113.3 gist.github.com
20.205.243.166 github.com
140.82.112.17 github.community
151.101.193.194 github.global.ssl.fastly.net
3.5.29.79 github-com.s3.amazonaws.com
52.217.67.108 github-production-release-asset-2e65be.s3.amazonaws.com
140.82.113.25 live.github.com
13.107.42.16 pipelines.actions.githubusercontent.com
140.82.113.17 github.community
151.101.129.194 github.global.ssl.fastly.net
52.217.129.17 github-com.s3.amazonaws.com
52.216.161.219 github-production-release-asset-2e65be.s3.amazonaws.com
140.82.114.25 live.github.com
13.107.43.16 pipelines.actions.githubusercontent.com
2620:1ec:21::16 pipelines.actions.githubusercontent.com
185.199.110.154 github.githubassets.com
185.199.111.153 github.io
2606:50c0:8003::153 github.io
185.199.111.153 githubstatus.com
2606:50c0:8003::153 githubstatus.com
185.199.111.153 assets-cdn.github.com
2606:50c0:8003::153 assets-cdn.github.com
185.199.109.133 avatars.githubusercontent.com
2606:50c0:8001::154 avatars.githubusercontent.com
185.199.109.133 avatars0.githubusercontent.com
2606:50c0:8001::154 avatars0.githubusercontent.com
185.199.109.133 avatars1.githubusercontent.com
2606:50c0:8001::154 avatars1.githubusercontent.com
185.199.109.133 avatars2.githubusercontent.com
2606:50c0:8001::154 avatars2.githubusercontent.com
185.199.109.133 avatars3.githubusercontent.com
2606:50c0:8001::154 avatars3.githubusercontent.com
185.199.109.133 avatars4.githubusercontent.com
2606:50c0:8001::154 avatars4.githubusercontent.com
185.199.109.133 avatars5.githubusercontent.com
2606:50c0:8001::154 avatars5.githubusercontent.com
185.199.109.133 camo.githubusercontent.com
2606:50c0:8001::154 camo.githubusercontent.com
185.199.109.133 cloud.githubusercontent.com
2606:50c0:8001::154 cloud.githubusercontent.com
185.199.109.133 desktop.githubusercontent.com
2606:50c0:8001::154 desktop.githubusercontent.com
185.199.109.133 favicons.githubusercontent.com
2606:50c0:8001::154 favicons.githubusercontent.com
185.199.109.133 github.map.fastly.net
2606:50c0:8001::154 github.map.fastly.net
185.199.109.133 media.githubusercontent.com
2606:50c0:8001::154 media.githubusercontent.com
185.199.109.133 objects.githubusercontent.com
2606:50c0:8001::154 objects.githubusercontent.com
185.199.109.133 private-user-images.githubusercontent.com
2606:50c0:8001::154 private-user-images.githubusercontent.com
185.199.109.133 raw.githubusercontent.com
2606:50c0:8001::154 raw.githubusercontent.com
185.199.109.133 user-images.githubusercontent.com
2606:50c0:8001::154 user-images.githubusercontent.com
18.66.102.107 tmdb.org
2600:9000:275d:9e00:5:da10:7440:93a1 tmdb.org
18.66.102.107 api.tmdb.org
2600:9000:275d:9e00:5:da10:7440:93a1 api.tmdb.org
18.66.102.107 files.tmdb.org
2600:9000:275d:9e00:5:da10:7440:93a1 files.tmdb.org
3.160.150.81 themoviedb.org
2600:9000:27e3:c00:e:5373:440:93a1 themoviedb.org
3.160.150.81 api.themoviedb.org
2600:9000:27e3:c00:e:5373:440:93a1 api.themoviedb.org
3.160.150.81 www.themoviedb.org
2600:9000:27e3:c00:e:5373:440:93a1 www.themoviedb.org
3.160.150.81 auth.themoviedb.org
2600:9000:27e3:c00:e:5373:440:93a1 auth.themoviedb.org
185.93.1.243 image.tmdb.org
2400:52e0:1a01::996:1 image.tmdb.org
185.93.1.243 images.tmdb.org
2400:52e0:1a01::996:1 images.tmdb.org
52.94.237.74 imdb.com
18.155.202.52 themoviedb.org
18.155.202.52 api.themoviedb.org
18.155.202.52 www.themoviedb.org
18.155.202.52 auth.themoviedb.org
169.150.236.100 image.tmdb.org
2400:52e0:1a01::1114:1 image.tmdb.org
169.150.236.100 images.tmdb.org
2400:52e0:1a01::1114:1 images.tmdb.org
13.226.254.49 www.imdb.com
52.94.237.74 secure.imdb.com
52.94.225.248 secure.imdb.com
13.226.254.49 s.media-imdb.com
52.94.225.248 us.dd.imdb.com
13.226.254.49 www.imdb.to
52.94.225.248 imdb-webservice.amazon.com
98.82.155.134 origin-www.imdb.com
3.166.233.221 m.media-amazon.com
2600:9000:274f:b200:1d:d7f6:39d4:e6e1 m.media-amazon.com
151.101.129.16 Images-na.ssl-images-amazon.com
2600:9000:274f:8a00:1d:d7f6:39d4:e6e1 Images-na.ssl-images-amazon.com
3.166.233.221 images-fe.ssl-images-amazon.com
2600:9000:274f:b200:1d:d7f6:39d4:e6e1 images-fe.ssl-images-amazon.com
3.166.233.221 images-eu.ssl-images-amazon.com
2600:9000:274f:3000:1d:d7f6:39d4:e6e1 images-eu.ssl-images-amazon.com
3.166.233.221 ia.media-imdb.com
2600:9000:274f:b200:1d:d7f6:39d4:e6e1 ia.media-imdb.com
151.101.89.16 m.media-amazon.com
2a04:4e42:15::272 m.media-amazon.com
151.101.89.16 Images-na.ssl-images-amazon.com
2a04:4e42:15::272 Images-na.ssl-images-amazon.com
151.101.89.16 images-fe.ssl-images-amazon.com
2a04:4e42:15::272 images-fe.ssl-images-amazon.com
151.101.89.16 images-eu.ssl-images-amazon.com
2a04:4e42:15::272 images-eu.ssl-images-amazon.com
151.101.89.16 ia.media-imdb.com
2a04:4e42:15::272 ia.media-imdb.com
151.101.89.16 f.media-amazon.com
2a04:4e42:15::272 f.media-amazon.com
18.238.192.108 imdb-video.media-imdb.com
13.226.220.89 dqpnq362acqdi.cloudfront.net
2600:9000:223e:6a00:5:ce70:a180:21 dqpnq362acqdi.cloudfront.net
64.233.189.148 translate.google.com
64.233.189.148 translate.googleapis.com
64.233.189.148 translate-pa.googleapis.com
3.166.228.13 plugins.jetbrains.com
2600:9000:2365:f400:12:7c44:15c0:93a1 plugins.jetbrains.com
3.166.228.13 download.jetbrains.com
2600:9000:2365:f400:12:7c44:15c0:93a1 download.jetbrains.com
3.166.228.13 cache-redirector.jetbrains.com
2600:9000:2365:f400:12:7c44:15c0:93a1 cache-redirector.jetbrains.com

# Update time: 2024-11-14 22:07:51 +08:00
172.217.31.136 translate.google.com
172.217.31.136 translate.googleapis.com
172.217.31.136 translate-pa.googleapis.com
3.168.86.87 plugins.jetbrains.com
2600:9000:2365:d400:12:7c44:15c0:93a1 plugins.jetbrains.com
3.168.86.87 download.jetbrains.com
2600:9000:2365:d400:12:7c44:15c0:93a1 download.jetbrains.com
3.168.86.87 cache-redirector.jetbrains.com
2600:9000:2365:d400:12:7c44:15c0:93a1 cache-redirector.jetbrains.com

# Update time: 2024-11-20 22:13:42 +08:00
# GitHub仓库: https://github.com/sinspired/cnNetTool
# cnNetTool End

```

该内容会自动定时更新, 数据更新时间:2024-11-14 22:07:51 +08:00
以上内容会自动定时更新, 数据更新时间:2024-11-20 22:13:42 +08:00

#### 1.2.2 修改 hosts 文件

Expand All @@ -160,6 +101,8 @@ hosts 文件在每个系统的位置不一,详情如下:
2. Linux、Mac 使用 Root 权限:`sudo vi /etc/hosts`
3. iPhone、iPad 须越狱、Android 必须要 root。

> [!NOTE]
> 请先把 `hosts` 文件复制到其他目录,修改后再复制回去,否则可能无法修改。
## 二、安装

Expand All @@ -181,7 +124,7 @@ pip install -r requirements.txt
* --debug 启用调试日志
* --show-availbale-list, --list 显示可用dns列表,通过 --num 控制显示数量
* --best-dns-num BEST_DNS_NUM, --num 显示最佳DNS服务器的数量
* --algorithm --mode {region,overall} 默认 `region` 平衡IPv4和ipv6 DNS
* --algorithm --mode {region,overall} 默认 `region` 平衡IPv4和ipv6 DNS,选择 `overall` 则会在所有IP中选择最快IP
* --show-resolutions, --show 显示域名解析结果

### Hosts文件工具 `SetHosts.py`
Expand Down
135 changes: 38 additions & 97 deletions hosts
Original file line number Diff line number Diff line change
@@ -1,111 +1,52 @@

# cnNetTool Start in 2024-11-14 22:07:51 +08:00
140.82.113.26 alive.github.com
20.205.243.168 api.github.com
140.82.113.21 central.github.com
# cnNetTool Start in 2024-11-20 22:13:42 +08:00
140.82.112.26 alive.github.com
140.82.114.22 central.github.com
20.205.243.165 codeload.github.com
140.82.114.21 collector.github.com
140.82.113.3 gist.github.com
20.205.243.166 github.com
140.82.112.17 github.community
151.101.193.194 github.global.ssl.fastly.net
3.5.29.79 github-com.s3.amazonaws.com
52.217.67.108 github-production-release-asset-2e65be.s3.amazonaws.com
140.82.113.25 live.github.com
13.107.42.16 pipelines.actions.githubusercontent.com
140.82.113.17 github.community
151.101.129.194 github.global.ssl.fastly.net
52.217.129.17 github-com.s3.amazonaws.com
52.216.161.219 github-production-release-asset-2e65be.s3.amazonaws.com
140.82.114.25 live.github.com
13.107.43.16 pipelines.actions.githubusercontent.com
2620:1ec:21::16 pipelines.actions.githubusercontent.com
185.199.110.154 github.githubassets.com
185.199.111.153 github.io
2606:50c0:8003::153 github.io
185.199.111.153 githubstatus.com
2606:50c0:8003::153 githubstatus.com
185.199.111.153 assets-cdn.github.com
2606:50c0:8003::153 assets-cdn.github.com
185.199.109.133 avatars.githubusercontent.com
2606:50c0:8001::154 avatars.githubusercontent.com
185.199.109.133 avatars0.githubusercontent.com
2606:50c0:8001::154 avatars0.githubusercontent.com
185.199.109.133 avatars1.githubusercontent.com
2606:50c0:8001::154 avatars1.githubusercontent.com
185.199.109.133 avatars2.githubusercontent.com
2606:50c0:8001::154 avatars2.githubusercontent.com
185.199.109.133 avatars3.githubusercontent.com
2606:50c0:8001::154 avatars3.githubusercontent.com
185.199.109.133 avatars4.githubusercontent.com
2606:50c0:8001::154 avatars4.githubusercontent.com
185.199.109.133 avatars5.githubusercontent.com
2606:50c0:8001::154 avatars5.githubusercontent.com
185.199.109.133 camo.githubusercontent.com
2606:50c0:8001::154 camo.githubusercontent.com
185.199.109.133 cloud.githubusercontent.com
2606:50c0:8001::154 cloud.githubusercontent.com
185.199.109.133 desktop.githubusercontent.com
2606:50c0:8001::154 desktop.githubusercontent.com
185.199.109.133 favicons.githubusercontent.com
2606:50c0:8001::154 favicons.githubusercontent.com
185.199.109.133 github.map.fastly.net
2606:50c0:8001::154 github.map.fastly.net
185.199.109.133 media.githubusercontent.com
2606:50c0:8001::154 media.githubusercontent.com
185.199.109.133 objects.githubusercontent.com
2606:50c0:8001::154 objects.githubusercontent.com
185.199.109.133 private-user-images.githubusercontent.com
2606:50c0:8001::154 private-user-images.githubusercontent.com
185.199.109.133 raw.githubusercontent.com
2606:50c0:8001::154 raw.githubusercontent.com
185.199.109.133 user-images.githubusercontent.com
2606:50c0:8001::154 user-images.githubusercontent.com
18.66.102.107 tmdb.org
2600:9000:275d:9e00:5:da10:7440:93a1 tmdb.org
18.66.102.107 api.tmdb.org
2600:9000:275d:9e00:5:da10:7440:93a1 api.tmdb.org
18.66.102.107 files.tmdb.org
2600:9000:275d:9e00:5:da10:7440:93a1 files.tmdb.org
3.160.150.81 themoviedb.org
2600:9000:27e3:c00:e:5373:440:93a1 themoviedb.org
3.160.150.81 api.themoviedb.org
2600:9000:27e3:c00:e:5373:440:93a1 api.themoviedb.org
3.160.150.81 www.themoviedb.org
2600:9000:27e3:c00:e:5373:440:93a1 www.themoviedb.org
3.160.150.81 auth.themoviedb.org
2600:9000:27e3:c00:e:5373:440:93a1 auth.themoviedb.org
185.93.1.243 image.tmdb.org
2400:52e0:1a01::996:1 image.tmdb.org
185.93.1.243 images.tmdb.org
2400:52e0:1a01::996:1 images.tmdb.org
52.94.237.74 imdb.com
18.155.202.52 themoviedb.org
18.155.202.52 api.themoviedb.org
18.155.202.52 www.themoviedb.org
18.155.202.52 auth.themoviedb.org
169.150.236.100 image.tmdb.org
2400:52e0:1a01::1114:1 image.tmdb.org
169.150.236.100 images.tmdb.org
2400:52e0:1a01::1114:1 images.tmdb.org
13.226.254.49 www.imdb.com
52.94.237.74 secure.imdb.com
52.94.225.248 secure.imdb.com
13.226.254.49 s.media-imdb.com
52.94.225.248 us.dd.imdb.com
13.226.254.49 www.imdb.to
52.94.225.248 imdb-webservice.amazon.com
98.82.155.134 origin-www.imdb.com
3.166.233.221 m.media-amazon.com
2600:9000:274f:b200:1d:d7f6:39d4:e6e1 m.media-amazon.com
151.101.129.16 Images-na.ssl-images-amazon.com
2600:9000:274f:8a00:1d:d7f6:39d4:e6e1 Images-na.ssl-images-amazon.com
3.166.233.221 images-fe.ssl-images-amazon.com
2600:9000:274f:b200:1d:d7f6:39d4:e6e1 images-fe.ssl-images-amazon.com
3.166.233.221 images-eu.ssl-images-amazon.com
2600:9000:274f:3000:1d:d7f6:39d4:e6e1 images-eu.ssl-images-amazon.com
3.166.233.221 ia.media-imdb.com
2600:9000:274f:b200:1d:d7f6:39d4:e6e1 ia.media-imdb.com
151.101.89.16 m.media-amazon.com
2a04:4e42:15::272 m.media-amazon.com
151.101.89.16 Images-na.ssl-images-amazon.com
2a04:4e42:15::272 Images-na.ssl-images-amazon.com
151.101.89.16 images-fe.ssl-images-amazon.com
2a04:4e42:15::272 images-fe.ssl-images-amazon.com
151.101.89.16 images-eu.ssl-images-amazon.com
2a04:4e42:15::272 images-eu.ssl-images-amazon.com
151.101.89.16 ia.media-imdb.com
2a04:4e42:15::272 ia.media-imdb.com
151.101.89.16 f.media-amazon.com
2a04:4e42:15::272 f.media-amazon.com
18.238.192.108 imdb-video.media-imdb.com
13.226.220.89 dqpnq362acqdi.cloudfront.net
2600:9000:223e:6a00:5:ce70:a180:21 dqpnq362acqdi.cloudfront.net
64.233.189.148 translate.google.com
64.233.189.148 translate.googleapis.com
64.233.189.148 translate-pa.googleapis.com
3.166.228.13 plugins.jetbrains.com
2600:9000:2365:f400:12:7c44:15c0:93a1 plugins.jetbrains.com
3.166.228.13 download.jetbrains.com
2600:9000:2365:f400:12:7c44:15c0:93a1 download.jetbrains.com
3.166.228.13 cache-redirector.jetbrains.com
2600:9000:2365:f400:12:7c44:15c0:93a1 cache-redirector.jetbrains.com
172.217.31.136 translate.google.com
172.217.31.136 translate.googleapis.com
172.217.31.136 translate-pa.googleapis.com
3.168.86.87 plugins.jetbrains.com
2600:9000:2365:d400:12:7c44:15c0:93a1 plugins.jetbrains.com
3.168.86.87 download.jetbrains.com
2600:9000:2365:d400:12:7c44:15c0:93a1 download.jetbrains.com
3.168.86.87 cache-redirector.jetbrains.com
2600:9000:2365:d400:12:7c44:15c0:93a1 cache-redirector.jetbrains.com

# Update time: 2024-11-14 22:07:51 +08:00
# Update time: 2024-11-20 22:13:42 +08:00
# GitHub²Ö¿â: https://github.com/sinspired/cnNetTool
# cnNetTool End
Loading

0 comments on commit 02b5228

Please sign in to comment.