Commit Graph

62 Commits

Author SHA1 Message Date
ValdikSS d9e27f193c Reimplement -s option to fix unACKed data
Old code used to reduce packet size by one byte to remove space in
HTTP Host header. This introduces one unACKed byte which OS later
tried to send to the host. This byte was \n (the last byte in original
packet) which broke POST requests.

New code in this commit moves "stolen" space in the end of User-Agent
header value and do not reduce packet size anymore.
User-Agent value is used because not all web servers are compatible
with additional space in the end of Host value.

Fix #3
2017-05-25 00:25:21 +03:00
ValdikSS c721ab0506 Always check for valid HTTP method before any modifications 2017-05-25 00:18:01 +03:00
ValdikSS 70765fa895 New option: additional space between Method and Request-URI (enables -s, may break sites) 2017-05-23 13:30:46 +03:00
ValdikSS a2d5be1eed const char for window size function 2017-05-23 13:23:20 +03:00
ValdikSS 30fd25bc24 Replace char* with const char* where appropriate 2017-05-20 12:25:20 +03:00
ValdikSS 9fea771d2c Less invasive Passive DPI block. Fix #2. 2017-05-20 12:24:29 +03:00
ValdikSS bb05d357a7 Fix for getopt -4 2017-05-18 00:12:49 +03:00
ValdikSS 609d8aa037 New mode -3 (old -3 is now -4) 2017-05-17 22:04:27 +03:00
ValdikSS 46af3c2edb Switch to getopt() and slightly update fragmentation code 2017-05-17 21:33:44 +03:00
ValdikSS 6b40623dce Remove old code 2017-05-17 21:32:27 +03:00
ValdikSS c43d5477b5 Use EXIT_SUCCESS and EXIT_FAILURE 2017-05-17 21:31:42 +03:00
ValdikSS 5bb0e65d20 Initial commit 2017-05-16 22:33:24 +03:00