From cb9cc82fde7ee43851856f99ec0666bc1d474f3a Mon Sep 17 00:00:00 2001 From: ValdikSS Date: Sun, 15 Sep 2024 00:32:43 +0300 Subject: [PATCH] Fix: fake_load_random maximum packet size --- src/fakepackets.h | 2 ++ src/goodbyedpi.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/fakepackets.h b/src/fakepackets.h index ec633ebf..60de5acc 100644 --- a/src/fakepackets.h +++ b/src/fakepackets.h @@ -18,3 +18,5 @@ int send_fake_https_request(const HANDLE w_filter, const BYTE set_checksum, const BYTE set_seq ); +int fake_load_from_hex(const char *data); +int fake_load_random(unsigned int count, unsigned int maxsize); diff --git a/src/goodbyedpi.c b/src/goodbyedpi.c index 6f3ab8b2..a10c34b8 100644 --- a/src/goodbyedpi.c +++ b/src/goodbyedpi.c @@ -949,7 +949,7 @@ int main(int argc, char *argv[]) { } break; case 'j': // --fake-gen - if (fake_load_random(atoub(optarg, "Fake generator parameter error!"))) { + if (fake_load_random(atoub(optarg, "Fake generator parameter error!"), 200)) { puts("WARNING: fake generator has failed!"); } break;