mirror of
https://github.com/hufrea/byedpi.git
synced 2024-12-22 06:15:14 +00:00
Fix -R long name, remove some flags
This commit is contained in:
parent
c3c196e741
commit
0a06ba41c9
@ -90,7 +90,7 @@ ciadpi --fake -1 --ttl 8
|
|||||||
+h: добавить смещение Host
|
+h: добавить смещение Host
|
||||||
+n: нулевое смещение
|
+n: нулевое смещение
|
||||||
Дополнительные флаги:
|
Дополнительные флаги:
|
||||||
+e: конец; +m: середина; +r: случайная позиция
|
+e: конец; +m: середина
|
||||||
Примеры:
|
Примеры:
|
||||||
0+sm - разбить запрос в середине SNI
|
0+sm - разбить запрос в середине SNI
|
||||||
1:3:5 - разбить по позициям 1, 6 и 11
|
1:3:5 - разбить по позициям 1, 6 и 11
|
||||||
|
13
main.c
13
main.c
@ -88,8 +88,8 @@ const char help_text[] = {
|
|||||||
" -V, --pf <port[-portr]> Ports range whitelist\n"
|
" -V, --pf <port[-portr]> Ports range whitelist\n"
|
||||||
" -R, --round <num[-numr]> Number of request to which desync will be applied\n"
|
" -R, --round <num[-numr]> Number of request to which desync will be applied\n"
|
||||||
" -s, --split <pos_t> Position format: offset[:repeats:skip][+flag1[flag2]]\n"
|
" -s, --split <pos_t> Position format: offset[:repeats:skip][+flag1[flag2]]\n"
|
||||||
" Flags: +s - SNI offset, +h - HTTP host offset\n"
|
" Flags: +s - SNI offset, +h - HTTP host offset, +n - null\n"
|
||||||
" Additional flags: +e - end, +m - middle, +r - random\n"
|
" Additional flags: +e - end, +m - middle\n"
|
||||||
" -d, --disorder <pos_t> Split and send reverse order\n"
|
" -d, --disorder <pos_t> Split and send reverse order\n"
|
||||||
" -o, --oob <pos_t> Split and send as OOB data\n"
|
" -o, --oob <pos_t> Split and send as OOB data\n"
|
||||||
" -q, --disoob <pos_t> Split and send reverse order as OOB data\n"
|
" -q, --disoob <pos_t> Split and send reverse order as OOB data\n"
|
||||||
@ -142,7 +142,7 @@ const struct option options[] = {
|
|||||||
{"proto", 1, 0, 'K'},
|
{"proto", 1, 0, 'K'},
|
||||||
{"hosts", 1, 0, 'H'},
|
{"hosts", 1, 0, 'H'},
|
||||||
{"pf", 1, 0, 'V'},
|
{"pf", 1, 0, 'V'},
|
||||||
{"repeats", 1, 0, 'R'},
|
{"round", 1, 0, 'R'},
|
||||||
{"split", 1, 0, 's'},
|
{"split", 1, 0, 's'},
|
||||||
{"disorder", 1, 0, 'd'},
|
{"disorder", 1, 0, 'd'},
|
||||||
{"oob", 1, 0, 'o'},
|
{"oob", 1, 0, 'o'},
|
||||||
@ -402,9 +402,6 @@ int parse_offset(struct part *part, const char *str)
|
|||||||
case 'h':
|
case 'h':
|
||||||
part->flag = OFFSET_HOST;
|
part->flag = OFFSET_HOST;
|
||||||
break;
|
break;
|
||||||
case 'e': //
|
|
||||||
part->flag = OFFSET_END;
|
|
||||||
break;
|
|
||||||
case 'n':
|
case 'n':
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
@ -417,10 +414,10 @@ int parse_offset(struct part *part, const char *str)
|
|||||||
case 'm':
|
case 'm':
|
||||||
part->flag |= OFFSET_MID;
|
part->flag |= OFFSET_MID;
|
||||||
break;
|
break;
|
||||||
case 'r':
|
case 'r': //
|
||||||
part->flag |= OFFSET_RAND;
|
part->flag |= OFFSET_RAND;
|
||||||
break;
|
break;
|
||||||
case 's':
|
case 's': //
|
||||||
part->flag |= OFFSET_START;
|
part->flag |= OFFSET_START;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user