Skip to content

Commit f1aece7

Browse files
committed
New mode: -7 - As -6 but with wrong chksum
1 parent 60dd3cb commit f1aece7

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ LEGACY modesets:
8080
Modern modesets (more stable, more compatible, faster):
8181
-5 -f 2 -e 2 --auto-ttl --reverse-frag --max-payload (this is the default)
8282
-6 -f 2 -e 2 --wrong-seq --reverse-frag --max-payload
83+
-7 -f 2 -e 2 --wrong-chksum --reverse-frag --max-payload
8384
```
8485

8586
To check if your ISP's DPI could be circumvented, first make sure that your provider does not poison DNS answers by enabling "Secure DNS (DNS over HTTPS)" option in your browser.

src/goodbyedpi.c

+13-2
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ int main(int argc, char *argv[]) {
648648
max_payload_size = 1200;
649649
}
650650

651-
while ((opt = getopt_long(argc, argv, "123456pqrsaf:e:mwk:n", long_options, NULL)) != -1) {
651+
while ((opt = getopt_long(argc, argv, "1234567pqrsaf:e:mwk:n", long_options, NULL)) != -1) {
652652
switch (opt) {
653653
case '1':
654654
do_passivedpi = do_host = do_host_removespace \
@@ -689,6 +689,15 @@ int main(int argc, char *argv[]) {
689689
do_wrong_seq = 1;
690690
max_payload_size = 1200;
691691
break;
692+
case '7':
693+
do_fragment_http = do_fragment_https = 1;
694+
do_reverse_frag = do_native_frag = 1;
695+
http_fragment_size = https_fragment_size = 2;
696+
do_fragment_http_persistent = do_fragment_http_persistent_nowait = 1;
697+
do_fake_packet = 1;
698+
do_wrong_chksum = 1;
699+
max_payload_size = 1200;
700+
break;
692701
case 'p':
693702
do_passivedpi = 1;
694703
break;
@@ -950,7 +959,9 @@ int main(int argc, char *argv[]) {
950959
"\n"
951960
"Modern modesets (more stable, more compatible, faster):\n"
952961
" -5 -f 2 -e 2 --auto-ttl --reverse-frag --max-payload (this is the default)\n"
953-
" -6 -f 2 -e 2 --wrong-seq --reverse-frag --max-payload\n");
962+
" -6 -f 2 -e 2 --wrong-seq --reverse-frag --max-payload\n"
963+
" -7 -f 2 -e 2 --wrong-chksum --reverse-frag --max-payload\n"
964+
);
954965
exit(EXIT_FAILURE);
955966
}
956967
}

0 commit comments

Comments
 (0)