Skip to content

Commit 985a09c

Browse files
committed
Print number of custom fake payloads on start
1 parent 15793fb commit 985a09c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/fakepackets.h

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
extern int fakes_count;
12
int send_fake_http_request(const HANDLE w_filter,
23
const PWINDIVERT_ADDRESS addr,
34
const char *pkt,

src/goodbyedpi.c

+4-2
Original file line numberDiff line numberDiff line change
@@ -1064,7 +1064,8 @@ int main(int argc, char *argv[]) {
10641064
"Fake requests, TTL: %s (fixed: %hu, auto: %hu-%hu-%hu, min distance: %hu)\n" /* 17 */
10651065
"Fake requests, wrong checksum: %d\n" /* 18 */
10661066
"Fake requests, wrong SEQ/ACK: %d\n" /* 19 */
1067-
"Max payload size: %hu\n", /* 20 */
1067+
"Fake requests, custom payloads: %d\n" /* 20 */
1068+
"Max payload size: %hu\n", /* 21 */
10681069
do_passivedpi, do_block_quic, /* 1 */
10691070
(do_fragment_http ? http_fragment_size : 0), /* 2 */
10701071
(do_fragment_http_persistent ? http_fragment_size : 0),/* 3 */
@@ -1086,7 +1087,8 @@ int main(int argc, char *argv[]) {
10861087
do_auto_ttl ? auto_ttl_max : 0, ttl_min_nhops,
10871088
do_wrong_chksum, /* 18 */
10881089
do_wrong_seq, /* 19 */
1089-
max_payload_size /* 20 */
1090+
fakes_count, /* 20 */
1091+
max_payload_size /* 21 */
10901092
);
10911093

10921094
if (do_fragment_http && http_fragment_size > 2 && !do_native_frag) {

0 commit comments

Comments
 (0)