moved
[gscan_quic.git] / config.json
blob014604a17cedace456b027153b3289641d28f042
2         // 注意:
3         // [扫描并发数] 理论上设置越大扫的越快, 但是并不意味越大就可以扫到更多IP
4         // 大量的并发, 会造成网络堵塞, 甚至触到系统网络的限制或造成路由器宕机而出现更多的问题
5         // 所以如果在你那里基本扫不到IP, 可以试着减小扫描并发数并增大超时时间
7         // 新添了 Level 设置
8         // 可以按照说明进行修改来达到加速扫描的效果, 但是为了结果的准确性最好还是设置为最高
10         // 扫描并发数
11         "ScanWorker": 100,
13         // 是否启用 Ping, 每次扫描 Tls、Quic...前都会先 ping 一下
14         "VerifyPing": false,
15         // Ping 的参数
16         "ScanMinPingRTT": 80,
17         "ScanMaxPingRTT": 800,
19         // 是否开启备份
20         // 每次扫到的IP,都会在此目录下备份一份
21         "EnableBackup": true,
22         "BackupDir": "./backup",
23         
24         // 是否禁用结束扫描时的命令行暂停
25         "DisablePause": false,
27         // 扫描方式, 可以设置为下面的任意一个, 大小写都可以
28         "ScanMode": "SNI",
30         // 如果设置为 ping, VerifyPing 会自动关闭
31         "Ping": {
32                 "ScanCountPerIP": 1,
33                 "ScanMinRTT": 0,
34                 "ScanMaxRTT": 1000,
35                 "RecordLimit": 10000,
36                 "OutputSeparator": "\r\n",
37                 // 支持带端口格式的IP, 只是为了使用方便, 并不是真的支持端口, 端口会被自动去除
38                 "InputFile": "",
39                 "OutputFile": ""
40         },
42         "QUIC": {
43                 // 每个IP的测试次数
44                 "ScanCountPerIP": 1,
45                 // ServerName 可以设置多项, 会随机选择一个
46                 // 默认空列表,随机生成域名格式字符串
47                 // 如果要设置为空, 可以写为 [""]
48                 "ServerName": [],
49                 // HTTPVerifyHosts 是 http 测试时使用的测试地址
50                 // 如果设置多个, 将会随机选择一个进行测试
51                 "HTTPVerifyHosts": ["dns.google.com"],
52                 "VerifyCommonName": "",
53                 "ValidStatusCode": 200,
54                 // 握手超时时间, 单位: 毫秒
55                 "HandshakeTimeout": 2500,
56                 "ScanMinRTT": 0,
57                 "ScanMaxRTT": 3000,
58                 // 结果的限制数量, 比如: 设置成 100, 将会扫到100个IP后自动结束
59                 "RecordLimit": 10000,
60                 // 输出结果的分隔符, 比如: 如果想要换行输出, 可以改为: \n
61                 // 有个特殊的例外, 如果设置为 gop, 则会输出 "xxx", "xxx" 样式
62                 "OutputSeparator": "gop",
63                 // IP 或 IP 段文件
64                 "InputFile": "",
65                 // 输出的文件路径
66                 "OutputFile": "",
67                 // 验证等级
68                 // 1: 只是测试连接成功, 并且确定证书存在
69                 // 2: 验证证书是否正确
70                 // 3: 测试 HTTP 连接
71                 // 4: 验证是否是 NoSuchBucket 错误
72                 // (2.x版默认等级为3, 所以如果lv2搜到的IP不能用, 可以改为 3)
73                 "Level": 4
74         },
76         // 暂时只支持 google IP
77         "TLS": {
78                 // 同 QUIC 说明
79                 "ScanCountPerIP": 1,
80                 "ServerName": [],
81                 "HTTPVerifyHosts": ["dns.google.com"],
82                 "VerifyCommonName": "",
83                 "ValidStatusCode": 200,
84                 "HandshakeTimeout": 2500,
85                 "ScanMinRTT": 0,
86                 "ScanMaxRTT": 3000,
87                 "RecordLimit": 10000,
88                 "OutputSeparator": "|",
89                 "InputFile": "",
90                 "OutputFile": "",
91                 // 1: 测试 tls 连接并握手成功
92                 // 2: 证书验证
93                 // 3: http 测试
94                 "Level": 3
95         },
97         "SNI": {
98                 "ScanCountPerIP": 1,
99                 "ServerName": ["about.google"],
100                 // ServerName is mandatory
101                 "HTTPVerifyHosts": ["www.google.com.hk"],
102                 "HTTPPath": "/",
103                 "VerifyCommonName": "about.google",
104                 "ValidStatusCode": 200,
105                 "HandshakeTimeout": 10000,
106                 "ScanMinRTT": 0,
107                 "ScanMaxRTT": 5000,
108                 "RecordLimit": 10000,
109                 "OutputSeparator": "\r\n",
110                 "InputFile": "./iprange_gws_a.txt",
111                 "OutputFile": "./out_gws_a.txt",
112                 // 1: 测试 tls 连接并握手成功
113                 // 2: 证书验证: VerifyCommonName
114                 // 3: http 测试: StatusCode
115                 "Level": 3
116         }