From 9fcf097cb74487e15fab27f3e996b48cc6996b05 Mon Sep 17 00:00:00 2001 From: ValdikSS Date: Sat, 25 Dec 2021 20:42:33 +0300 Subject: [PATCH] Use Auto TTL = 4 by default Previous value of 2 caused issues with the services connected via very different uplink/downlink routing links. --- README.md | 2 +- src/goodbyedpi.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index a1123ac..00b73bc 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ Usage: goodbyedpi.exe [OPTION...] --set-ttl activate Fake Request Mode and send it with supplied TTL value. DANGEROUS! May break websites in unexpected ways. Use with care. --auto-ttl [decttl] activate Fake Request Mode, automatically detect TTL and decrease - it from standard 64 or 128 by decttl (128/64 - TTL - 2 by default). + it from standard 64 or 128 by decttl (128/64 - TTL - 4 by default). --wrong-chksum activate Fake Request Mode and send it with incorrect TCP checksum. May not work in a VM or with some routers, but is safer than set-ttl. --wrong-seq activate Fake Request Mode and send it with TCP SEQ/ACK in the past. diff --git a/src/goodbyedpi.c b/src/goodbyedpi.c index 6ea7c20..f981660 100644 --- a/src/goodbyedpi.c +++ b/src/goodbyedpi.c @@ -578,7 +578,7 @@ int main(int argc, char *argv[]) { http_fragment_size = https_fragment_size = 2; do_fragment_http_persistent = do_fragment_http_persistent_nowait = 1; do_fake_packet = 1; - do_auto_ttl = 2; + do_auto_ttl = 4; } while ((opt = getopt_long(argc, argv, "123456prsaf:e:mwk:n", long_options, NULL)) != -1) { @@ -610,7 +610,7 @@ int main(int argc, char *argv[]) { http_fragment_size = https_fragment_size = 2; do_fragment_http_persistent = do_fragment_http_persistent_nowait = 1; do_fake_packet = 1; - do_auto_ttl = 2; + do_auto_ttl = 4; break; case '6': do_fragment_http = do_fragment_https = 1; @@ -749,7 +749,7 @@ int main(int argc, char *argv[]) { break; case '+': do_fake_packet = 1; - do_auto_ttl = 2; + do_auto_ttl = 4; if (optarg) { do_auto_ttl = atoub(optarg, "Set Auto TTL parameter error!"); } else if (argv[optind] && argv[optind][0] != '-') { @@ -800,7 +800,7 @@ int main(int argc, char *argv[]) { " --set-ttl activate Fake Request Mode and send it with supplied TTL value.\n" " DANGEROUS! May break websites in unexpected ways. Use with care.\n" " --auto-ttl [decttl] activate Fake Request Mode, automatically detect TTL and decrease\n" - " it from standard 64 or 128 by decttl (128/64 - TTL - 2 by default).\n" + " it from standard 64 or 128 by decttl (128/64 - TTL - 4 by default).\n" " --wrong-chksum activate Fake Request Mode and send it with incorrect TCP checksum.\n" " May not work in a VM or with some routers, but is safer than set-ttl.\n" " Could be combined with --set-ttl\n"