diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 09:49:46 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 09:49:46 +0000 |
commit | 50b37d4a27d3295a29afca2286f1a5a086142cec (patch) | |
tree | 9212f763934ee090ef72d823f559f52ce387f268 /src/tests/eapsim-04 | |
parent | Initial commit. (diff) | |
download | freeradius-upstream.tar.xz freeradius-upstream.zip |
Adding upstream version 3.2.1+dfsg.upstream/3.2.1+dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/tests/eapsim-04')
-rw-r--r-- | src/tests/eapsim-04/client.sh | 6 | ||||
-rw-r--r-- | src/tests/eapsim-04/eapsim-cooked.txt | 169 | ||||
-rw-r--r-- | src/tests/eapsim-04/eapsim-in.txt | 17 | ||||
-rw-r--r-- | src/tests/eapsim-04/myvectors.txt | 136 | ||||
-rw-r--r-- | src/tests/eapsim-04/users.txt | 17 |
5 files changed, 345 insertions, 0 deletions
diff --git a/src/tests/eapsim-04/client.sh b/src/tests/eapsim-04/client.sh new file mode 100644 index 0000000..2ae1747 --- /dev/null +++ b/src/tests/eapsim-04/client.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +../../main/radeapclient -x localhost auth testing123 <eapsim-in.txt + + + diff --git a/src/tests/eapsim-04/eapsim-cooked.txt b/src/tests/eapsim-04/eapsim-cooked.txt new file mode 100644 index 0000000..7c6d97f --- /dev/null +++ b/src/tests/eapsim-04/eapsim-cooked.txt @@ -0,0 +1,169 @@ + ++++> About to send encoded packet: + User-Name = "1244070100000001@eapsim.foo" + NAS-IP-Address = marajade.sandelman.ottawa.on.ca + EAP-Code = Response + EAP-Type-Identity = "1244070100000001@eapsim.foo" + Message-Authenticator = 0xABCDABCDABCDABCDABCDABCDABCDABCD + NAS-Port = 0 + EAP-Sim-Rand1 = 0x101112131415161718191a1b1c1d1e1f + EAP-Sim-SRES1 = 0xd1d2d3d4 + EAP-Sim-Rand2 = 0x202122232425262728292a2b2c2d2e2f + EAP-Sim-SRES2 = 0xe1e2e3e4 + EAP-Sim-Rand3 = 0x303132333435363738393a3b3c3d3e3f + EAP-Sim-SRES3 = 0xf1f2f3f4 + EAP-Sim-KC1 = 0xa0a1a2a3a4a5a6a7 + EAP-Sim-KC2 = 0xb0b1b2b3b4b5b6b7 + EAP-Sim-KC3 = 0xc0c1c2c3c4c5c6c7 +Sending Access-Request of id 999 to 127.0.0.1:1812 + User-Name = "1244070100000001@eapsim.foo" + NAS-IP-Address = marajade.sandelman.ottawa.on.ca + Message-Authenticator = 0xABCDABCDABCDABCDABCDABCDABCDABCD + NAS-Port = 0 + EAP-Message = 0x02XX +rad_recv: Access-Challenge packet from host 127.0.0.1:1812, id=999, length=78 + EAP-Message = 0x01XX + Message-Authenticator = 0xABCDABCDABCDABCDABCDABCDABCDABCD + State = 0xABCDABCDABCDABCDABCDABCDABCDABCD +<+++ EAP decoded packet: + EAP-Message = 0x01XX + Message-Authenticator = 0xABCDABCDABCDABCDABCDABCDABCDABCD + State = 0xABCDABCDABCDABCDABCDABCDABCDABCD + EAP-Id = YY + EAP-Code = Request + EAP-Type-SIM = 0x0a00000f0200020001000011010100 +<+++ EAP-sim decoded packet: + EAP-Message = 0x01XX + Message-Authenticator = 0xABCDABCDABCDABCDABCDABCDABCDABCD + State = 0xABCDABCDABCDABCDABCDABCDABCDABCD + EAP-Id = YY + EAP-Code = Request + EAP-Type-SIM = 0x0a00000f0200020001000011010100 + EAP-Sim-Subtype = Start + EAP-Sim-VERSION_LIST = 0x000200010000 + EAP-Sim-FULLAUTH_ID_REQ = 0x0100 + ++++> About to send encoded packet: + User-Name = "1244070100000001@eapsim.foo" + NAS-IP-Address = marajade.sandelman.ottawa.on.ca + EAP-Code = Response + Message-Authenticator = 0xABCDABCDABCDABCDABCDABCDABCDABCD + NAS-Port = 0 + EAP-Sim-Rand1 = 0x101112131415161718191a1b1c1d1e1f + EAP-Sim-SRES1 = 0xd1d2d3d4 + EAP-Sim-Rand2 = 0x202122232425262728292a2b2c2d2e2f + EAP-Sim-SRES2 = 0xe1e2e3e4 + EAP-Sim-Rand3 = 0x303132333435363738393a3b3c3d3e3f + EAP-Sim-SRES3 = 0xf1f2f3f4 + EAP-Sim-KC1 = 0xa0a1a2a3a4a5a6a7 + EAP-Sim-KC2 = 0xb0b1b2b3b4b5b6b7 + EAP-Sim-KC3 = 0xc0c1c2c3c4c5c6c7 + EAP-Sim-State = 1 + EAP-Sim-Subtype = Start + EAP-Sim-SELECTED_VERSION = 0x0001 + EAP-Sim-NONCE_MT = 0x000000a3f6b4e832cf46b4d3e0d090623e22 + EAP-Sim-IDENTITY = 0x001b313234343037303130303030303030314065617073696d2e666f6f + EAP-Id = YY + EAP-Message = 0x02XX + State = 0xABCDABCDABCDABCDABCDABCDABCDABCD +Sending Access-Request of id 999 to 127.0.0.1:1812 + User-Name = "1244070100000001@eapsim.foo" + NAS-IP-Address = marajade.sandelman.ottawa.on.ca + Message-Authenticator = 0xABCDABCDABCDABCDABCDABCDABCDABCD + NAS-Port = 0 + EAP-Message = 0x02XX + State = 0xABCDABCDABCDABCDABCDABCDABCDABCD +rad_recv: Access-Challenge packet from host 127.0.0.1:1812, id=999, length=138 + EAP-Message = 0x01XX + Message-Authenticator = 0xABCDABCDABCDABCDABCDABCDABCDABCD + State = 0xABCDABCDABCDABCDABCDABCDABCDABCD +<+++ EAP decoded packet: + EAP-Message = 0x01XX + Message-Authenticator = 0xABCDABCDABCDABCDABCDABCDABCDABCD + State = 0xABCDABCDABCDABCDABCDABCDABCDABCD + EAP-Id = YY + EAP-Code = Request + EAP-Type-SIM = 0x0b0000010d0000101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f0b050000XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +<+++ EAP-sim decoded packet: + EAP-Message = 0x01XX + Message-Authenticator = 0xABCDABCDABCDABCDABCDABCDABCDABCD + State = 0xABCDABCDABCDABCDABCDABCDABCDABCD + EAP-Id = YY + EAP-Code = Request + EAP-Type-SIM = 0x0b0000010d0000101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f0b050000XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + EAP-Sim-Subtype = Challenge + EAP-Sim-RAND = 0x0000101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f + EAP-Sim-MAC = 0xYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY +Input was: + identity: (len=27)313234343037303130303030303030314065617073696d2e666f6f + nonce_mt: 00a3f6b4e832cf46b4d3e0d090623e22 + rand0: 00000000000000000000000000000000 + rand1: 00000000000000000000000000000000 + rand2: 00000000000000000000000000000000 + sres0: d1d2d3d4 + sres1: e1e2e3e4 + sres2: f1f2f3f4 + Kc0: a0a1a2a3a4a5a6a7 + Kc1: b0b1b2b3b4b5b6b7 + Kc2: c0c1c2c3c4c5c6c7 + versionlist[2]: 0001 + select 00 01 + + +Output +mk: 2a56fd95_adac4bf7_645c2e60_7296a8af_9e1214a1 +K_aut: 2853a70a_4ca089cc_0cf8a24a_45ecec93 +K_encr: 77987afb_1cfd251d_749d2f16_0611338e +msk: e8adff17_1d82d5e6_9a78d526_1e86ee56_93cbe646 + 59332585_1f1f58f0_598c3a0c_1640339b_c3407fb4 + 56a14ada_a4791445_e8a3cf40_49b4628f_8e9f597a + 7891e9d2 +emsk: b33c4a19_c1df9108_17196271_7c4b7f98_e53a64ba + a67d4e23_5ff142cb_6e427434_8a71358a_3c2b1313 + 4cec6be3_a99e60c8_ae543fdd_52ecd7b3_0542e1df + 5d10c5f7 +MAC check succeed + ++++> About to send encoded packet: + User-Name = "1244070100000001@eapsim.foo" + NAS-IP-Address = marajade.sandelman.ottawa.on.ca + EAP-Code = Response + Message-Authenticator = 0xABCDABCDABCDABCDABCDABCDABCDABCD + NAS-Port = 0 + EAP-Sim-Rand1 = 0x101112131415161718191a1b1c1d1e1f + EAP-Sim-SRES1 = 0xd1d2d3d4 + EAP-Sim-Rand2 = 0x202122232425262728292a2b2c2d2e2f + EAP-Sim-SRES2 = 0xe1e2e3e4 + EAP-Sim-Rand3 = 0x303132333435363738393a3b3c3d3e3f + EAP-Sim-SRES3 = 0xf1f2f3f4 + EAP-Sim-KC1 = 0xa0a1a2a3a4a5a6a7 + EAP-Sim-KC2 = 0xb0b1b2b3b4b5b6b7 + EAP-Sim-KC3 = 0xc0c1c2c3c4c5c6c7 + EAP-Sim-State = 1 + EAP-Sim-Subtype = Challenge + EAP-Id = YY + State = 0xABCDABCDABCDABCDABCDABCDABCDABCD + EAP-Sim-MAC = 0xd1d2d3d4e1e2e3e4f1f2f3f4 + EAP-Sim-KEY = 0x2853a70a4ca089cc0cf8a24a45ecec93 + EAP-Message = 0x02XX +Sending Access-Request of id 999 to 127.0.0.1:1812 + User-Name = "1244070100000001@eapsim.foo" + NAS-IP-Address = marajade.sandelman.ottawa.on.ca + Message-Authenticator = 0xABCDABCDABCDABCDABCDABCDABCDABCD + NAS-Port = 0 + State = 0xABCDABCDABCDABCDABCDABCDABCDABCD + EAP-Message = 0x02XX +rad_recv: Access-Accept packet from host 127.0.0.1:1812, id=999, length=189 + MS-MPPE-Recv-Key = 0xe8adff171d82d5e69a78d5261e86ee5693cbe646593325851f1f58f0598c3a0c + MS-MPPE-Send-Key = 0x1640339bc3407fb456a14adaa4791445e8a3cf4049b4628f8e9f597a7891e9d2 + EAP-Message = 0x03XX + Message-Authenticator = 0xABCDABCDABCDABCDABCDABCDABCDABCD + User-Name = "1244070100000001@eapsim.foo" +<+++ EAP decoded packet: + MS-MPPE-Recv-Key = 0xe8adff171d82d5e69a78d5261e86ee5693cbe646593325851f1f58f0598c3a0c + MS-MPPE-Send-Key = 0x1640339bc3407fb456a14adaa4791445e8a3cf4049b4628f8e9f597a7891e9d2 + EAP-Message = 0x03XX + Message-Authenticator = 0xABCDABCDABCDABCDABCDABCDABCDABCD + User-Name = "1244070100000001@eapsim.foo" + EAP-Id = YY + EAP-Code = Success diff --git a/src/tests/eapsim-04/eapsim-in.txt b/src/tests/eapsim-04/eapsim-in.txt new file mode 100644 index 0000000..eadd58f --- /dev/null +++ b/src/tests/eapsim-04/eapsim-in.txt @@ -0,0 +1,17 @@ +User-Name = "1244070100000001@eapsim.foo" +NAS-IP-Address = marajade.sandelman.ottawa.on.ca +EAP-Code = Response +EAP-Type-Identity = "1244070100000001@eapsim.foo" +Message-Authenticator = 0 +NAS-Port = 0 +EAP-Sim-Rand1 = 0x101112131415161718191a1b1c1d1e1f +EAP-Sim-SRES1 = 0xd1d2d3d4 +EAP-Sim-Rand2 = 0x202122232425262728292a2b2c2d2e2f +EAP-Sim-SRES2 = 0xe1e2e3e4 +EAP-Sim-Rand3 = 0x303132333435363738393a3b3c3d3e3f +EAP-Sim-SRES3 = 0xf1f2f3f4 +EAP-Sim-KC1 = 0xa0a1a2a3a4a5a6a7 +EAP-Sim-KC2 = 0xb0b1b2b3b4b5b6b7 +EAP-Sim-KC3 = 0xc0c1c2c3c4c5c6c7 + + diff --git a/src/tests/eapsim-04/myvectors.txt b/src/tests/eapsim-04/myvectors.txt new file mode 100644 index 0000000..d1cfadd --- /dev/null +++ b/src/tests/eapsim-04/myvectors.txt @@ -0,0 +1,136 @@ ++Input was: ++ identity: (len=27)313234343037303130303030303030314065617073696d2e666f6f ++ nonce_mt: 0123456789abcdeffedcba9876543201 ++ chal0: 101112131415161718191a1b1c1d1e1f ++ chal1: 202122232425262728292a2b2c2d2e2f ++ chal2: 303132333435363738393a3b3c3d3e3f ++ sres0: d1d2d3d4 ++ sres1: e1e2e3e4 ++ sres2: f1f2f3f4 ++ Kc0: a0a1a2a3a4a5a6a7 ++ Kc1: b0b1b2b3b4b5b6b7 ++ Kc2: c0c1c2c3c4c5c6c7 ++ versionlist[4]: 00020001 ++ select 00 01 ++ ++ ++Output ++mk: c21b4e4f_4e43619b_891e711f_f84f5e37_5e296d1a ++K_aut: cdd4e489_a7ae78da_67b593bd_8c231102 ++K_encr: c322b087_a282de07_b0079dab_8e65d96f ++msk: eeea3a75_8d74d4f4_a7a77b98_5733806e_8093c8f9 ++ 6a733668_70fcfb7e_4b0d7ab3_e8657531_25de1aa1 ++ 318e21c4_57346f82_ba047e35_16ea4648_22f8039e ++ aa6cc9be ++emsk: fdc00fa1_d159910d_99251485_5d057d84_a4b1bd00 ++ 4d34bef5_f7070000_cb380340_e8f00240_fcf9ffbf ++ c0970040_fdb20408_00000000_58e50640_003b3731 ++ fcf9ffbf + ++SHA1buffer was: 31323434_30373031_30303030_30303031_40656170_ ++ 73696d2e_666f6fa0_a1a2a3a4_a5a6a7b0_b1b2b3b4_ ++ b5b6b7c0_c1c2c3c4_c5c6c701_23456789_abcdeffe_ ++ dcba9876_54320100_010001 + +VERSION is 1 byte: + ++SHA1buffer was: 31323434_30373031_30303030_30303031_40656170_ ++ 73696d2e_666f6fa0_a1a2a3a4_a5a6a7b0_b1b2b3b4_ ++ b5b6b7c0_c1c2c3c4_c5c6c701_23456789_abcdeffe_ ++ dcba9876_54320100_0101 ++Input was: ++ identity: (len=27)313234343037303130303030303030314065617073696d2e666f6f ++ nonce_mt: 0123456789abcdeffedcba9876543201 ++ rand0: 101112131415161718191a1b1c1d1e1f ++ rand1: 202122232425262728292a2b2c2d2e2f ++ rand2: 303132333435363738393a3b3c3d3e3f ++ sres0: d1d2d3d4 ++ sres1: e1e2e3e4 ++ sres2: f1f2f3f4 ++ Kc0: a0a1a2a3a4a5a6a7 ++ Kc1: b0b1b2b3b4b5b6b7 ++ Kc2: c0c1c2c3c4c5c6c7 ++ versionlist[2]: 0001 ++ select 00 01 ++ ++ ++Output ++mk: cfe4d5bc_fb87bcab_4d83ebea_90c179df_3cfee43c ++K_aut: 32aa4046_770c30ed_bce21212_d7d9393c ++K_encr: e3810875_f8c40f7f_cb2544ed_d0d873c3 ++msk: 3a8dd0fb_411d15e1_4d485c8b_bd94ab23_a8ea3e5a ++ d888521c_d1a3fa7d_1fabd7e2_afd062f6_75c3de8b ++ 5adda978_91d78a3d_2efcb988_265ceee3_fa924279 ++ 43fa0125 ++emsk: 5296957b_61bc72f8_5c2acbd5_501299d1_b7e2b04f ++ 39127a69_003b0140_f8200340_003b0140_03000000 ++ 98bb0240_003b0140_e8f9ffbf_a4810408_bc373731 ++ fcf9ffbf + +1-byte: ++SHA1buffer was: 31323434_30373031_30303030_30303031_40656170_ ++ 73696d2e_666f6fa0_a1a2a3a4_a5a6a7b0_b1b2b3b4_ ++ b5b6b7c0_c1c2c3c4_c5c6c701_23456789_abcdeffe_ ++ dcba9876_54321000_0101 ++Input was: ++ identity: (len=27)313234343037303130303030303030314065617073696d2e666f6f ++ nonce_mt: 0123456789abcdeffedcba9876543210 ++ rand0: 101112131415161718191a1b1c1d1e1f ++ rand1: 202122232425262728292a2b2c2d2e2f ++ rand2: 303132333435363738393a3b3c3d3e3f ++ sres0: d1d2d3d4 ++ sres1: e1e2e3e4 ++ sres2: f1f2f3f4 ++ Kc0: a0a1a2a3a4a5a6a7 ++ Kc1: b0b1b2b3b4b5b6b7 ++ Kc2: c0c1c2c3c4c5c6c7 ++ versionlist[2]: 0001 ++ select 00 01 ++ ++ ++Output ++mk: d328f534_d9292b67_0e73c798_591e1e09_04c0c8cc ++K_aut: aa19e454_833aa2ea_ccc116db_9312b543 ++K_encr: 51fc0641_e4d9fa43_23f9516d_15b9f618 ++msk: ced8e588_7d883785_ee2d2e41_f1aeb82d_1cfca277 ++ 7309b411_30047c52_130807c0_bdf0e56e_205433e0 ++ 58b2f48e_2337809d_e1b2681c_e30932d9_2a62cbe8 ++ 40bfb568 ++emsk: a273b6f5_47d12da7_c1d0dff4_746e0ded_70e74a83 ++ 520b22a8_003b0140_f8200340_003b0140_03000000 ++ 98bb0240_003b0140_e8f9ffbf_a4810408_bc373731 ++ fcf9ffbf + +2-bytes: ++SHA1buffer was: 31323434_30373031_30303030_30303031_40656170_ ++ 73696d2e_666f6fa0_a1a2a3a4_a5a6a7b0_b1b2b3b4_ ++ b5b6b7c0_c1c2c3c4_c5c6c701_23456789_abcdeffe_ ++ dcba9876_54321000_010001 ++Input was: ++ identity: (len=27)313234343037303130303030303030314065617073696d2e666f6f ++ nonce_mt: 0123456789abcdeffedcba9876543210 ++ rand0: 101112131415161718191a1b1c1d1e1f ++ rand1: 202122232425262728292a2b2c2d2e2f ++ rand2: 303132333435363738393a3b3c3d3e3f ++ sres0: d1d2d3d4 ++ sres1: e1e2e3e4 ++ sres2: f1f2f3f4 ++ Kc0: a0a1a2a3a4a5a6a7 ++ Kc1: b0b1b2b3b4b5b6b7 ++ Kc2: c0c1c2c3c4c5c6c7 ++ versionlist[2]: 0001 ++ select 00 01 ++ ++ ++Output ++mk: e576d5ca_332e9930_018bf1ba_ee2763c7_95b3c712 ++K_aut: 536e5ebc_4465582a_a6a8ec99_86ebb620 ++K_encr: 25af1942_efcbf4bc_72b39434_21f2a974 ++msk: 39d45aea_f4e30601_983e972b_6cfd46d1_c3637733 ++ 65690d09_cd44976b_525f47d3_a60a985e_955c53b0 ++ 90b2e4b7_3719196a_40254296_8fd14a88_8f46b9a7 ++ 886e4488 ++emsk: 5949eab0_fff69d52_315c6c63_4fd14a7f_0d52023d ++ 56f79698_003b0140_f8200340_003b0140_03000000 ++ 98bb0240_003b0140_e8f9ffbf_a4810408_bc373731 ++ fcf9ffbf diff --git a/src/tests/eapsim-04/users.txt b/src/tests/eapsim-04/users.txt new file mode 100644 index 0000000..af2e006 --- /dev/null +++ b/src/tests/eapsim-04/users.txt @@ -0,0 +1,17 @@ +1244070100000001@eapsim.foo Auth-Type := EAP, EAP-Type := SIM + EAP-Sim-Chal1 = 0x101112131415161718191a1b1c1d1e1f, + EAP-Sim-SRES1 = 0xd1d2d3d4, + EAP-Sim-Chal2 = 0x202122232425262728292a2b2c2d2e2f, + EAP-Sim-SRES2 = 0xe1e2e3e4, + EAP-Sim-Chal3 = 0x303132333435363738393a3b3c3d3e3f, + EAP-Sim-SRES3 = 0xf1f2f3f4, + EAP-Sim-KC1 = 0xa0a1a2a3a4a5a6a7, + EAP-Sim-KC2 = 0xb0b1b2b3b4b5b6b7, + EAP-Sim-KC3 = 0xc0c1c2c3c4c5c6c7, + Service-Type = Framed-User, + Framed-Protocol = PPP, + Framed-IP-Address = 172.16.3.34, + Framed-IP-Netmask = 255.255.255.0, + Framed-Routing = Broadcast-Listen, + Framed-MTU = 1234 + |