66 Commits

Author SHA1 Message Date
Niels Werensteijn
c3665992a9 removed lowercase reference 2016-10-20 09:19:07 +02:00
Niels Werensteijn
31bad73504 updated readme a bit 2016-10-20 09:19:07 +02:00
Maximilian Münchow
4509ac2612 Added first version of cookie.md 2016-10-14 15:23:34 +02:00
Niels Werensteijn
98fb883767 change "simple" example to use TS3INIT_GET_COOKIE 2016-10-14 14:46:26 +02:00
Niels Werensteijn
c362f2a33c use install to install xtables plugins 2016-10-14 14:14:18 +02:00
Maximilian Münchow
0ab6975a97 Renamed TS3INIT_MORPH_TO_GET_COOKIE to TS3INIT_GET_COOKIE 2016-10-14 13:19:03 +02:00
Maximilian Münchow
3b40dc3416 renamed all comments, arguments, and variables that contain or are related to the final cookie value to cookie 2016-10-14 13:03:58 +02:00
Maximilian Münchow
e1be5f7a25 renamed all comments, arguments, and variables that contain or are related to the value that is generated by combining random_seed and the current time to cookie_seed 2016-10-14 13:02:24 +02:00
Maximilian Münchow
75c9fd8642 renamed variables, parameters, constants, fields and files that contain or are about the user supplied seed to random_seeed. 2016-10-14 12:39:47 +02:00
Maximilian Münchow
cc16338fc0 added udp checksum calculation 2016-10-14 11:55:49 +02:00
Maximilian Münchow
4ab6b8f09d fixed bug in TS3INIT_MORPH_TO_GET_COOKIE. Kernel won't panic anymore. 2016-10-14 10:29:39 +02:00
Niels Werensteijn
ab7478727b updated "simple" examples to be ipv4 and ipv6 capable 2016-10-13 17:11:09 +02:00
Maximilian Münchow
716f509066 Added new target: TS3INIT_MORPH_TO_GET_COOKIE. Its rewrites an incomming packet into a TS3INIT_GET_COOKIE.
*/
2016-10-13 16:17:49 +02:00
Maximilian Münchow
52cc424be2 added 2 new constants: TS3INIT_HEADER_CLIENT_LENGTH and TS3INIT_HEADER_SERVER_LENGTH 2016-10-13 16:13:43 +02:00
Niels Werensteijn
2ed116a9ce added "simple" fw example 2016-10-13 16:12:32 +02:00
Maximilian Münchow
9e1f4cb760 added comments 2016-10-13 12:46:50 +02:00
Maximilian Münchow
5a002888d0 replaced magic 60 with COOKIE_SEED_LEN 2016-10-13 12:45:48 +02:00
Maximilian Münchow
9e2162ad63 renamed instances of package to packet 2016-10-13 12:41:49 +02:00
Maximilian Münchow
9691026360 moved struct ts3_init_checked_header_data to ts3init_match.c 2016-10-13 12:40:13 +02:00
Niels Werensteijn
a2af9c63df follow kernel code and do not use skb_header_pointer for ip(v6)_hdr 2016-10-13 09:35:05 +02:00
Niels Werensteijn
62810fe935 send proper reset command to client 2016-10-13 09:35:05 +02:00
Maximilian Münchow
0babfde11d removed debug messages 2016-10-13 08:55:34 +02:00
Maximilian Münchow
dec609840c changed TS3INIT_SET_COOKIE to use the recieved udp/ip header instead of the reply headers. 2016-10-13 08:48:33 +02:00
Maximilian Münchow
7c8d64811f the cookie-seed used in ts3init_get_puzzle and TS3INIT_SET_COOKIE can be loaded from file now.
Added new parameters --seed and --seed-file to ts3init_get_puzzle and TS3INIT_SET_COOKIE.
2016-10-12 17:32:07 +02:00
Maximilian Münchow
f7181d65d0 fixed spelling mistake 2016-10-12 17:24:09 +02:00
Niels Werensteijn
f5a1a99fa5 more target to uppercase fixes 2016-10-12 17:03:06 +02:00
Niels Werensteijn
5e9ef66bdc refactor calculate_cookie 2016-10-12 15:21:41 +02:00
Niels Werensteijn
5712abbaa1 renamed some symbols to keep namespace clear 2016-10-12 14:32:26 +02:00
Niels Werensteijn
e25dac37e9 more fixes to readme 2016-10-12 13:47:07 +02:00
Niels Werensteijn
a4fbff1b3f fixed help 2016-10-12 13:47:07 +02:00
Niels Werensteijn
7a06bacb5c update readme 2016-10-12 13:47:07 +02:00
Maximilian Münchow
4bbbd63860 added new methods ts3init_calculate_cookie_ipv4 and ts3init_calculate_cookie_ipv6. Changed TS3INIT_SET_COOKIE to use the new methods. 2016-10-12 13:04:20 +02:00
Maximilian Münchow
e31b6cf80c Added license to compat headers.
removed compat_user.h because it isn't used.
2016-10-12 12:16:16 +02:00
Maximilian Münchow
3ad7aabe34 amended mistake in previous commit 2016-10-12 12:10:58 +02:00
Maximilian Münchow
1a334a2885 added TS3INIT_SET_COOKIE
renamed ts3init_reset to TS3INIT_RESET

moved cookie seed spefic things to ts3init_cookie_seed.h
moved cache specific things to ts3init_cache
2016-10-12 12:07:32 +02:00
Niels Werensteijn
ad542d0a33 fix --min-version parameters with offset 2016-10-12 09:17:35 +02:00
Niels Werensteijn
0394bf8987 fixed buffer overflow 2016-10-11 16:57:27 +02:00
Niels Werensteijn
b6ec076bc0 added readme (still needs work) and license 2016-10-11 15:42:39 +02:00
Niels Werensteijn
47f6ebf27f Created Makefile for all projects 2016-10-11 15:23:29 +02:00
Niels Werensteijn
4a11da005b added min_client_version check 2016-10-11 15:09:26 +02:00
Niels Werensteijn
2bf9af83b9 make sure all symbols that show up in the kernel are prefixed with ts3init_ 2016-10-11 14:54:22 +02:00
Niels Werensteijn
481ba26c0f code formatting and copyright 2016-10-11 14:14:29 +02:00
Maximilian Münchow
1559f82b55 torture.py allows for testing if the rules can handle, lots and lots of packages. 2016-10-11 14:03:22 +02:00
Niels Werensteijn
927257312b uninitialize matches if targets fail to register 2016-10-11 11:20:13 +02:00
Niels Werensteijn
984bab5a3f added test for siphash 2016-10-11 11:16:14 +02:00
Niels Werensteijn
4e3670842d fixed bug in shiphash23 2016-10-11 11:16:14 +02:00
Maximilian Münchow
9f80476ca4 cleaned up libxt_ts3init_reset 2016-10-11 10:52:22 +02:00
Maximilian Münchow
30482cd1d3 extended Makefile.xtables to include all, install and clean 2016-10-11 09:32:51 +02:00
Maximilian Münchow
bf8594c03e added ts3init_reset 2016-10-11 09:26:11 +02:00
Maximilian Münchow
8348d1e327 moved ts3init-header specific definitions into a seperate header file. 2016-10-11 09:24:26 +02:00