gost
gost copied to clipboard
探测防御无效
先运行
gost -L="http2://admin:123456@:4433?probe_resist=code:400&knock=www.example.com"
然后
curl -k https://localhost:4433 -v
结果是
> GET / HTTP/2
> Host: localhost:4433
> user-agent: curl/7.68.0
> accept: */*
>
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* Connection state changed (MAX_CONCURRENT_STREAMS == 250)!
< HTTP/2 407
< proxy-authenticate: Basic realm="gost"
< content-length: 0
< date: Mon, 06 Jun 2022 15:55:23 GMT
<
* Connection #0 to host localhost left intact
还是返回了407
我用的版本是gost 3.0.0-beta.2 (go1.18.1 linux/amd64)
probe_resist
参数在v3中改为了probeResistance
,后面会兼容v2的参数。
beta3中已兼容v2版本参数名。