diff --git a/README.md b/README.md index c40c5d4..c4ca601 100644 --- a/README.md +++ b/README.md @@ -90,7 +90,7 @@ ciadpi --fake -1 --ttl 8 +h: добавить смещение Host +n: нулевое смещение Дополнительные флаги: - +e: конец; +m: середина; +r: случайная позиция + +e: конец; +m: середина Примеры: 0+sm - разбить запрос в середине SNI 1:3:5 - разбить по позициям 1, 6 и 11 diff --git a/main.c b/main.c index cab4f26..810e1f3 100644 --- a/main.c +++ b/main.c @@ -88,8 +88,8 @@ const char help_text[] = { " -V, --pf Ports range whitelist\n" " -R, --round Number of request to which desync will be applied\n" " -s, --split Position format: offset[:repeats:skip][+flag1[flag2]]\n" - " Flags: +s - SNI offset, +h - HTTP host offset\n" - " Additional flags: +e - end, +m - middle, +r - random\n" + " Flags: +s - SNI offset, +h - HTTP host offset, +n - null\n" + " Additional flags: +e - end, +m - middle\n" " -d, --disorder Split and send reverse order\n" " -o, --oob Split and send as OOB data\n" " -q, --disoob Split and send reverse order as OOB data\n" @@ -142,7 +142,7 @@ const struct option options[] = { {"proto", 1, 0, 'K'}, {"hosts", 1, 0, 'H'}, {"pf", 1, 0, 'V'}, - {"repeats", 1, 0, 'R'}, + {"round", 1, 0, 'R'}, {"split", 1, 0, 's'}, {"disorder", 1, 0, 'd'}, {"oob", 1, 0, 'o'}, @@ -402,9 +402,6 @@ int parse_offset(struct part *part, const char *str) case 'h': part->flag = OFFSET_HOST; break; - case 'e': // - part->flag = OFFSET_END; - break; case 'n': break; default: @@ -417,10 +414,10 @@ int parse_offset(struct part *part, const char *str) case 'm': part->flag |= OFFSET_MID; break; - case 'r': + case 'r': // part->flag |= OFFSET_RAND; break; - case 's': + case 's': // part->flag |= OFFSET_START; } }