關於vless-cracker-v1的檢測

Open
#6,121 80 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
42/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
go

Research direction

No source file or test is named. Start by reproducing the TLS ReplayProbe results for AWS or CloudFront targets and compare the timeout and alert patterns with the Go TLS behavior and the nginx/OpenSSL example. Done means the expected target-specific behavior is defined and the detection no longer incorrectly treats these cases as equivalent.

Written by the indexing model from the issue text.

Description

先說結論,這玩具目前我發現只能對reality的target為aws的網站有效,這與aws(包括cloudfront.net)所使用的TLS庫s2n-tls有關。
下面是在中轉機測試的結果(已對IP、Port等做匿名化處理):

aws.amazon.com:
[2026-05-12 09:26:05.036852] TLS ReplayProbe MISMATCH, VLESS/REALITY connection detected after 3/3 confirmations. client=2a0x::xxxx:40128 server=260x::xxxx:1234 sni=aws.amazon.com probes=7 cmp=X[D] result=A{X=TO,ALERT,ALERT,ALERT,ALERT,ALERT,ALERT}|B{X=TO,TO,TO,ALERT,ALERT,TO,ALERT}
[2026-05-12 09:26:05.037660] TLS ReplayProbe MISMATCH, VLESS/REALITY connection detected after 3/3 confirmations. client=240x::xxxx:56117 server=2a0x::xxxx:443 sni=aws.amazon.com probes=7 cmp=X[D] result=A{X=TO,ALERT,ALERT,ALERT,ALERT,ALERT,ALERT}|B{X=TO,TO,TO,ALERT,ALERT,TO,ALERT}
images-na.ssl-images-amazon.com:
[2026-05-12 11:00:39.650184] TLS ReplayProbe MISMATCH, VLESS/REALITY connection detected after 3/3 confirmations. client=240x::xxxx:34662 server=2a0x::xxxx:443 sni=images-na.ssl-images-amazon.com probes=7 cmp=X[D] result=A{X=TO,ALERT,ALERT,ALERT,ALERT,ALERT,ALERT}|B{X=TO,TO,TO,ALERT,ALERT,TO,ALERT}
[2026-05-12 11:00:39.653810] TLS ReplayProbe MISMATCH, VLESS/REALITY connection detected after 3/3 confirmations. client=2a0x::xxxx:55436 server=260x::xxxx:1234 sni=images-na.ssl-images-amazon.com probes=7 cmp=X[D] result=A{X=TO,ALERT,ALERT,ALERT,ALERT,ALERT,ALERT}|B{X=TO,TO,TO,ALERT,ALERT,TO,ALERT}

可以發現s2n-tls對於這7次異常封包的行為確實與gotls不同,在第2次、第3次、第6次時都是Timeout,而gotls這邊除了第1次以外都是Alert。
建議大家在xray沒有加入模仿target對異常封包的行為前暫時不要使用aws網站(包括cdn)的sni了。

target為nginx (built with OpenSSL 3.6.2)時,一開始就被排除了,因為行為上與gotls無異。

TLS ServerHello 240x::xxxx:1234 -> 2a0x::xxxx:42618 selected_version=0xbbbb bytes=1428
TLS ServerHello 2a0x::xxxx:443 -> 2001::xxxx:50016 selected_version=0xbbbb bytes=5583
TLS replay attempt=1 probe=1 server=2a0x::xxxx:443 complete probe_status=TO bytes=5583
TLS replay B randomized ClientHello legacy_session_id len=32 before=aaaaaaaa after=bbbbbbb
TLS replay waiting 1s before attempt=B randomized session_id recheck
TLS replay attempt=1 probe=1 server=240x::xxxx:1234 complete probe_status=TO bytes=5583
TLS replay B randomized ClientHello legacy_session_id len=32 before=aaaaaaaa after=cccccccc
TLS replay waiting 1s before attempt=B randomized session_id recheck
TLS replay attempt=2 server=2a0x::xxxx:443
TLS replay attempt=2 server=2a0x::xxxx:443
TLS replay attempt=2 server=2a0x::xxxx:443
TLS replay attempt=2 server=2a0x::xxxx:443
TLS replay attempt=2 server=2a0x::xxxx:443
TLS replay attempt=2 server=2a0x::xxxx:443
TLS replay attempt=2 server=2a0x::xxxx:443
TLS replay attempt=2 probe=3 server=2a0x::xxxx:443 sent probe bytes=5
TLS replay attempt=2 probe=3 server=2a0x::xxxx:443 complete probe_status=ALERT bytes=5607
TLS replay attempt=2 probe=1 server=2a0x::xxxx:443 sent probe bytes=18
TLS replay attempt=2 server=240x::xxxx:1234
TLS replay attempt=2 server=240x::xxxx:1234
TLS replay attempt=2 server=240x::xxxx:1234
TLS replay attempt=2 server=240x::xxxx:1234
TLS replay attempt=2 server=240x::xxxx:1234
TLS replay attempt=2 server=240x::xxxx:1234
TLS replay attempt=2 server=240x::xxxx:1234
TLS replay attempt=2 probe=2 server=2a0x::xxxx:443 sent probe bytes=5
TLS replay attempt=2 probe=2 server=2a0x::xxxx:443 complete probe_status=ALERT bytes=5607
TLS replay attempt=2 probe=7 server=2a0x::xxxx:443 sent probe bytes=10
TLS replay attempt=2 probe=7 server=2a0x::xxxx:443 complete probe_status=ALERT bytes=5607
TLS replay attempt=2 probe=4 server=2a0x::xxxx:443 sent probe bytes=7
TLS replay attempt=2 probe=4 server=2a0x::xxxx:443 complete probe_status=ALERT bytes=5607
TLS replay attempt=2 probe=5 server=2a0x::xxxx:443 sent probe bytes=6
TLS replay attempt=2 probe=5 server=2a0x::xxxx:443 complete probe_status=ALERT bytes=5607
TLS replay attempt=2 probe=6 server=2a0x::xxxx:443 sent probe bytes=6
TLS replay attempt=2 probe=6 server=2a0x::xxxx:443 complete probe_status=ALERT bytes=5607
TLS replay attempt=2 probe=6 server=240x::xxxx:1234 sent probe bytes=6
TLS replay attempt=2 probe=6 server=240x::xxxx:1234 complete probe_status=ALERT bytes=5607
TLS replay attempt=2 probe=1 server=240x::xxxx:1234 sent probe bytes=18
TLS replay attempt=2 probe=2 server=240x::xxxx:1234 sent probe bytes=5
TLS replay attempt=2 probe=2 server=240x::xxxx:1234 complete probe_status=ALERT bytes=5607
TLS replay attempt=2 probe=3 server=240x::xxxx:1234 sent probe bytes=5
TLS replay attempt=2 probe=3 server=240x::xxxx:1234 complete probe_status=ALERT bytes=5607
TLS replay attempt=2 probe=4 server=240x::xxxx:1234 sent probe bytes=7
TLS replay attempt=2 probe=4 server=240x::xxxx:1234 complete probe_status=ALERT bytes=5607
TLS replay attempt=2 probe=5 server=240x::xxxx:1234 sent probe bytes=6
TLS replay attempt=2 probe=5 server=240x::xxxx:1234 complete probe_status=ALERT bytes=5607
TLS replay attempt=2 probe=7 server=240x::xxxx:1234 sent probe bytes=10
TLS replay attempt=2 probe=7 server=240x::xxxx:1234 complete probe_status=ALERT bytes=5607
[2026-05-11 22:20:06.108249] TLS ClientHello 2a0x::xxxx:42632 -> 240x::xxxx:1234 sni=www.domain.com versions=0xaaaa,0xbbbb,0xcccc
[2026-05-11 22:20:06.108489] TLS ClientHello 2a0x::xxxx:42636 -> 240x::xxxx:1234 sni=www.domain.com versions=0xaaaa,0xbbbb,0xcccc
[2026-05-11 22:20:06.108525] TLS ClientHello 2a0x::xxxx:42642 -> 240x::xxxx:1234 sni=www.domain.com versions=0xaaaa,0xbbbb,0xcccc
[2026-05-11 22:20:06.108859] TLS ClientHello 2a0x::xxxx:42650 -> 240x::xxxx:1234 sni=www.domain.com versions=0xaaaa,0xbbbb,0xcccc
[2026-05-11 22:20:06.109096] TLS ClientHello 2a0x::xxxx:42662 -> 240x::xxxx:1234 sni=www.domain.com versions=0xaaaa,0xbbbb,0xcccc
[2026-05-11 22:20:06.109349] TLS ClientHello 2a0x::xxxx:42664 -> 240x::xxxx:1234 sni=www.domain.com versions=0xaaaa,0xbbbb,0xcccc
[2026-05-11 22:20:06.109643] TLS ClientHello 2a0x::xxxx:42678 -> 240x::xxxx:1234 sni=www.domain.com versions=0xaaaa,0xbbbb,0xcccc
TLS ServerHello 240x::xxxx:1234 -> 2a0x::xxxx:42642 selected_version=0xbbbb bytes=1428
TLS ServerHello 240x::xxxx:1234 -> 2a0x::xxxx:42632 selected_version=0xbbbb bytes=4096
TLS ServerHello 240x::xxxx:1234 -> 2a0x::xxxx:42636 selected_version=0xbbbb bytes=4096
TLS ServerHello 240x::xxxx:1234 -> 2a0x::xxxx:42678 selected_version=0xbbbb bytes=1428
TLS ServerHello 240x::xxxx:1234 -> 2a0x::xxxx:42650 selected_version=0xbbbb bytes=4096
TLS ServerHello 240x::xxxx:1234 -> 2a0x::xxxx:42662 selected_version=0xbbbb bytes=1428
TLS ServerHello 240x::xxxx:1234 -> 2a0x::xxxx:42664 selected_version=0xbbbb bytes=1428
TLS replay attempt=2 probe=1 server=2a0x::xxxx:443 complete probe_status=TO bytes=5583
TLS replay confirmation failed; excluding server=2a0x::xxxx:443 round=1
TLS replay attempt=2 probe=1 server=240x::xxxx:1234 complete probe_status=TO bytes=5583
TLS replay confirmation failed; excluding server=240x::xxxx:1234 round=1

我沒有測試caddy(gotls)類的網站,我想也沒有必要了。。。

Dominant language
Go
Stars
43.3k
Forks
6.2k
Avg merge
2d 11h
Merged PRs (30d)
55

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from XTLS/Xray-core

All issues in XTLS/Xray-core

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.