Skip to content

Commit

Permalink
Print number of custom fake payloads on start
Browse files Browse the repository at this point in the history
  • Loading branch information
ValdikSS committed Sep 14, 2024
1 parent 15793fb commit 985a09c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/fakepackets.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
extern int fakes_count;
int send_fake_http_request(const HANDLE w_filter,
const PWINDIVERT_ADDRESS addr,
const char *pkt,
Expand Down
6 changes: 4 additions & 2 deletions src/goodbyedpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1064,7 +1064,8 @@ int main(int argc, char *argv[]) {
"Fake requests, TTL: %s (fixed: %hu, auto: %hu-%hu-%hu, min distance: %hu)\n" /* 17 */
"Fake requests, wrong checksum: %d\n" /* 18 */
"Fake requests, wrong SEQ/ACK: %d\n" /* 19 */
"Max payload size: %hu\n", /* 20 */
"Fake requests, custom payloads: %d\n" /* 20 */
"Max payload size: %hu\n", /* 21 */
do_passivedpi, do_block_quic, /* 1 */
(do_fragment_http ? http_fragment_size : 0), /* 2 */
(do_fragment_http_persistent ? http_fragment_size : 0),/* 3 */
Expand All @@ -1086,7 +1087,8 @@ int main(int argc, char *argv[]) {
do_auto_ttl ? auto_ttl_max : 0, ttl_min_nhops,
do_wrong_chksum, /* 18 */
do_wrong_seq, /* 19 */
max_payload_size /* 20 */
fakes_count, /* 20 */
max_payload_size /* 21 */
);

if (do_fragment_http && http_fragment_size > 2 && !do_native_frag) {
Expand Down

0 comments on commit 985a09c

Please sign in to comment.