@@ -189,6 +189,7 @@ static struct option long_options[] = {
189
189
{"reverse-frag" ,no_argument , 0 , '(' },
190
190
{"max-payload" , optional_argument , 0 , '|' },
191
191
{"fake-from-hex" , required_argument , 0 , 'u' },
192
+ {"fake-gen" , required_argument , 0 , 'j' },
192
193
{"debug-exit" , optional_argument , 0 , 'x' },
193
194
{0 , 0 , 0 , 0 }
194
195
};
@@ -946,6 +947,11 @@ int main(int argc, char *argv[]) {
946
947
printf ("WARNING: bad fake HEX value %s\n" , optarg );
947
948
}
948
949
break ;
950
+ case 'j' : // --fake-gen
951
+ if (fake_load_random (atoub (optarg , "Fake generator parameter error!" ))) {
952
+ puts ("WARNING: fake generator has failed!" );
953
+ }
954
+ break ;
949
955
case 'x' : // --debug-exit
950
956
debug_exit = true;
951
957
break ;
@@ -997,6 +1003,8 @@ int main(int argc, char *argv[]) {
997
1003
" --fake-from-hex <value> Load fake packets for Fake Request Mode from HEX values (like 1234abcDEF).\n"
998
1004
" This option can be supplied multiple times, in this case each fake packet\n"
999
1005
" would be sent on every request in the command line argument order.\n"
1006
+ " --fake-gen <value> Generate random-filled fake packets for Fake Request Mode, value of them\n"
1007
+ " (up to 30).\n"
1000
1008
" --max-payload [value] packets with TCP payload data more than [value] won't be processed.\n"
1001
1009
" Use this option to reduce CPU usage by skipping huge amount of data\n"
1002
1010
" (like file transfers) in already established sessions.\n"
0 commit comments