1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-09-25 19:54:04 -04:00
Commit Graph

17 Commits

Author SHA1 Message Date
Xiaokang Wang (Shelikhoo)
b1ef737d48 Add TLSMirror looks like TLS censorship resistant transport protocol as a developer preview transport (#3437)
* Add tlsmirror server processing routine

* Add tlsmirror server processing routine: generated

* Add tlsmirror server handshake capture

* it runs version~

* add draining copy for handshake

* refactor out base tls mirror connection

* tls mirror server side base

* add random field extraction

* add tls like encryption

* add tls like encryption (generated)

* add server side implementation for tlsmirror

* apply coding style: tlsmirror

* fix typo in mirrortls mirror crypto

* add client initial implementation for tls mirror

* add traffic generator implementation for tlsmirror

* add client processing of traffic generator originated traffic

* add embedded traffic generator support to mirrortls client

* override security setting of traffic generator if appropriate

* override security setting of traffic generator if appropriate

* apply request wait time for traffic generator

* add unsafe keyword required for linkname

* fix outbound manager registration for traffic ingress at tlsmirror client

* initial works at sticking packets together

* fix traffic generator's traffic goto logic

* fix get client and server random

* fix applying primary key

* fix log error handling for handshake random retrieval

* fix nonce generation and key derivation logic

* fix: add readPipe channel to client and server connection handlers

* fix: use detached context for persistent mirror TLS dialer

* fix: ensure proper closure of connections on context cancellation

* fix: proper detection of traffic generator originated connection

wait for connection ready before sending payload

* fix coding style
2025-07-03 11:33:16 +01:00
风扇滑翔翼
1f2d76c066 QUIC sniffer: Fix potential slice panic (#3406)
* QUIC sniffer: Fix potential slice panic

* Fix type err

* Update sniff.go

* Add test and fix more

* Refine
2025-05-17 20:53:29 +01:00
Xiaokang Wang (Shelikhoo)
c8c1120747 QUIC sniffer restructure (#3360) 2025-03-23 18:16:29 +00:00
Xiaokang Wang (Shelikhoo)
561f31245d A temporary testing fix for the buffer corruption issue (#3331) 2025-02-27 14:32:04 +00:00
Vigilans
3d54bec86a Fix unreleased cache buffer in QUIC sniffing (#3320) 2025-02-20 20:57:11 +00:00
Vigilans
8ceba34970 Correctly implement QUIC sniffer when handling multiple initial packets (#3310)
* Correctly implement QUIC sniffer when handling multiple initial packets

* Only parse token for initial packet

Signed-off-by: Vigilans <vigilans@foxmail.com>

* Update test case for QUIC sniffer

* Fix testcases
* Third packet in `Handshake[2]; packet 1-3` mistakenly copied UDP header into payload, making the payload length 1278 instead of 1250

* Introduce `protocol.ErrProtoNeedMoreData` to allow sniffer to fetch more packets until complete

---------

Signed-off-by: Vigilans <vigilans@foxmail.com>
Co-authored-by: Shelikhoo <xiaokangwang@outlook.com>
Co-authored-by: dyhkwong <50692134+dyhkwong@users.noreply.github.com>
2025-02-16 14:11:27 +00:00
AkinoKaede
8c5bcacb99 feat: bulit-in qtls cipher suite implementation 2023-07-17 12:38:25 +08:00
AkinoKaede
746c45036e Chore: remove Go 1.18 support 2023-04-06 20:10:14 +08:00
Vigilans
8b3215c72a Correctly implement quic sniffer's frame parsing 2023-02-19 12:28:41 +00:00
MoetaYuko
0dcf8cad0d Compatibility change for go 1.18 2023-02-18 14:36:47 +00:00
秋のかえで
07ed4e0d29 Chore: use Go 1.20 (#2297) 2023-02-03 17:08:53 +08:00
秋のかえで
9ae51c1f15 Chore: use Go v1.19 2022-08-19 19:37:09 +08:00
秋のかえで
e0df70b16d Feat: use different qtls modules for different Go version 2022-04-05 14:47:21 +08:00
Shelikhoo
3ef7feaeaf update version: auto replacement to v5 path 2022-01-02 15:16:23 +00:00
Loyalsoldier
43447aa2e4 Chore: format code to fix lint (#1426) 2021-11-27 14:32:07 +08:00
Shelikhoo
65174fa487 rename buf type adaptor into FromBytes 2021-11-13 14:24:43 +00:00
世界
dbc26775c9 Add quic sniffer 2021-11-13 14:21:57 +00:00