From 17bdfe16b146fc928f0263cbe913151f6edec2e9 Mon Sep 17 00:00:00 2001 From: bol-van Date: Thu, 15 Jan 2026 10:22:00 +0300 Subject: [PATCH] blockcheck2: custom test special chars escape warning --- blockcheck2.d/custom/README.txt | 2 ++ blockcheck2.d/custom/list_http.txt | 1 + blockcheck2.d/custom/list_https_tls12.txt | 1 + blockcheck2.d/custom/list_https_tls13.txt | 1 + blockcheck2.d/custom/list_quic.txt | 1 + 5 files changed, 6 insertions(+) diff --git a/blockcheck2.d/custom/README.txt b/blockcheck2.d/custom/README.txt index 0dcbb5b..7f5ea8c 100644 --- a/blockcheck2.d/custom/README.txt +++ b/blockcheck2.d/custom/README.txt @@ -2,9 +2,11 @@ Скопируйте эту директорию под другим именем в blockcheck2.d, отредактируйте list файлы, впишите туда свои стратегии. В диалоге blockcheck2.sh выберите тест с названием вашей директории. Можно комментировать строки символом '#' в начале строки. +Параметры со спец символами типа "<" должны быть эскейпнуты по правилам shell. Альтернативный путь до файлов стратегий можно задать переменными LIST_HTTP, LIST_HTTPS_TLS12, LIST_HTTPS_TLS13, LIST_QUIC. This is simple strategy tester from a file. Copy this folder, write your strategies into list files and select your test in blockcheck2 dialog. Lines can be commented using the '#' symbol at the line start. +Parameters with special symbols like "<" must be escaped. Strategy list files paths can be overriden in env variables : LIST_HTTP, LIST_HTTPS_TLS12, LIST_HTTPS_TLS13, LIST_QUIC. diff --git a/blockcheck2.d/custom/list_http.txt b/blockcheck2.d/custom/list_http.txt index a9cc936..ea7c8e1 100644 --- a/blockcheck2.d/custom/list_http.txt +++ b/blockcheck2.d/custom/list_http.txt @@ -1,4 +1,5 @@ # write nfqws2 parameters here +# WARNING : parameters with special symbols like "<" must be escaped or will cause error --payload=http_req --lua-desync=http_hostcase --payload=http_req --lua-desync=http_methodeol --payload=http_req --lua-desync=fake:blob=fake_default_http:tcp_ts=-1000 diff --git a/blockcheck2.d/custom/list_https_tls12.txt b/blockcheck2.d/custom/list_https_tls12.txt index 5300d58..bcc7470 100644 --- a/blockcheck2.d/custom/list_https_tls12.txt +++ b/blockcheck2.d/custom/list_https_tls12.txt @@ -1,3 +1,4 @@ # write nfqws2 parameters here +# WARNING : parameters with special symbols like "<" must be escaped or will cause error --payload tls_client_hello --lua-desync=fake:blob=fake_default_tls:tcp_ts=-1000 --payload=tls_client_hello --lua-desync=fake:blob=0x00000000:tcp_md5:repeats=1 --lua-desync=fake:blob=fake_default_tls:tcp_md5:tls_mod=rnd,dupsid:repeats=1 --lua-desync=multisplit:pos=2 diff --git a/blockcheck2.d/custom/list_https_tls13.txt b/blockcheck2.d/custom/list_https_tls13.txt index f88e5eb..1a69be2 100644 --- a/blockcheck2.d/custom/list_https_tls13.txt +++ b/blockcheck2.d/custom/list_https_tls13.txt @@ -1,4 +1,5 @@ # write nfqws2 parameters here +# WARNING : parameters with special symbols like "<" must be escaped or will cause error --payload tls_client_hello --lua-desync=fake:blob=fake_default_tls:tcp_ts=-1000 --payload tls_client_hello --lua-desync=tcpseg:pos=0,-1:seqovl=1 --lua-desync=drop --payload tls_client_hello --lua-desync=luaexec:code="desync.pat=tls_mod(fake_default_tls,'rnd,rndsni,dupsid,padencap',desync.reasm_data)" --lua-desync=tcpseg:pos=0,-1:seqovl=#pat:seqovl_pattern=pat --lua-desync=drop diff --git a/blockcheck2.d/custom/list_quic.txt b/blockcheck2.d/custom/list_quic.txt index ba7d128..6f333bf 100644 --- a/blockcheck2.d/custom/list_quic.txt +++ b/blockcheck2.d/custom/list_quic.txt @@ -1,3 +1,4 @@ # write nfqws2 parameters here +# WARNING : parameters with special symbols like "<" must be escaped or will cause error --payload quic_initial --lua-desync=fake:blob=fake_default_quic:repeats=11 --payload quic_initial --lua-desync=send:ipfrag --lua-desync=drop