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-05 | |
parent | Initial commit. (diff) | |
download | freeradius-upstream/3.2.1+dfsg.tar.xz freeradius-upstream/3.2.1+dfsg.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-05')
-rw-r--r-- | src/tests/eapsim-05/check.gdb | 2 | ||||
-rw-r--r-- | src/tests/eapsim-05/client.sh | 6 | ||||
-rw-r--r-- | src/tests/eapsim-05/description.txt | 2 | ||||
-rw-r--r-- | src/tests/eapsim-05/eapsim-cooked.txt | 148 | ||||
-rw-r--r-- | src/tests/eapsim-05/eapsim-in.txt | 15 | ||||
-rw-r--r-- | src/tests/eapsim-05/eapsim-out.txt | 148 | ||||
-rw-r--r-- | src/tests/eapsim-05/eapsim-raw.txt | 148 | ||||
-rw-r--r-- | src/tests/eapsim-05/eapsim-sanitize.sed | 10 |
8 files changed, 479 insertions, 0 deletions
diff --git a/src/tests/eapsim-05/check.gdb b/src/tests/eapsim-05/check.gdb new file mode 100644 index 0000000..8418d96 --- /dev/null +++ b/src/tests/eapsim-05/check.gdb @@ -0,0 +1,2 @@ +file ../../main/radeapclient +set args -x localhost auth testing123 <eapsim-in.txt
\ No newline at end of file diff --git a/src/tests/eapsim-05/client.sh b/src/tests/eapsim-05/client.sh new file mode 100644 index 0000000..2ae1747 --- /dev/null +++ b/src/tests/eapsim-05/client.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +../../main/radeapclient -x localhost auth testing123 <eapsim-in.txt + + + diff --git a/src/tests/eapsim-05/description.txt b/src/tests/eapsim-05/description.txt new file mode 100644 index 0000000..a490df4 --- /dev/null +++ b/src/tests/eapsim-05/description.txt @@ -0,0 +1,2 @@ +This test is identical to eapsim-03, except that the RAND is purposely +wrong. diff --git a/src/tests/eapsim-05/eapsim-cooked.txt b/src/tests/eapsim-05/eapsim-cooked.txt new file mode 100644 index 0000000..8b8c4a5 --- /dev/null +++ b/src/tests/eapsim-05/eapsim-cooked.txt @@ -0,0 +1,148 @@ + ++++> About to send encoded packet: + User-Name = "eapsim" + NAS-IP-Address = marajade.sandelman.ottawa.on.ca + EAP-Code = Response + EAP-Type-Identity = "eapsim" + Message-Authenticator = 0xABCDABCDABCDABCDABCDABCDABCDABCD + NAS-Port = 0 + EAP-Sim-Rand1 = 0x89abcbeef9abcdef89abcdef89abcdef + EAP-Sim-Rand2 = 0x9abcdef89abcdef89abcdef89abcdef8 + EAP-Sim-Rand3 = 0xabcdef89abcdef89abcdef89abcdef89 + EAP-Sim-SRES1 = 0x1234abcd + EAP-Sim-SRES2 = 0x234abcd1 + EAP-Sim-SRES3 = 0x34abcd12 + EAP-Sim-KC1 = 0x0011223344556677 + EAP-Sim-KC2 = 0x1021324354657687 + EAP-Sim-KC3 = 0x30415263748596a7 +Sending Access-Request of id 999 to 127.0.0.1:1812 + User-Name = "eapsim" + 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 = "eapsim" + NAS-IP-Address = marajade.sandelman.ottawa.on.ca + EAP-Code = Response + Message-Authenticator = 0xABCDABCDABCDABCDABCDABCDABCDABCD + NAS-Port = 0 + EAP-Sim-Rand1 = 0x89abcbeef9abcdef89abcdef89abcdef + EAP-Sim-Rand2 = 0x9abcdef89abcdef89abcdef89abcdef8 + EAP-Sim-Rand3 = 0xabcdef89abcdef89abcdef89abcdef89 + EAP-Sim-SRES1 = 0x1234abcd + EAP-Sim-SRES2 = 0x234abcd1 + EAP-Sim-SRES3 = 0x34abcd12 + EAP-Sim-KC1 = 0x0011223344556677 + EAP-Sim-KC2 = 0x1021324354657687 + EAP-Sim-KC3 = 0x30415263748596a7 + EAP-Sim-State = 1 + EAP-Sim-Subtype = Start + EAP-Sim-SELECTED_VERSION = 0x0001 + EAP-Sim-NONCE_MT = 0x000000a3f6b4e832cf46b4d3e0d090623e22 + EAP-Sim-IDENTITY = 0x000665617073696d + EAP-Id = YY + EAP-Message = 0x02XX + State = 0xABCDABCDABCDABCDABCDABCDABCDABCD +Sending Access-Request of id 999 to 127.0.0.1:1812 + User-Name = "eapsim" + 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 = 0x0b0000010d0000abcd1234abcd1234abcd1234abcd1234bcd1234abcd1234abcd1234abcd1234acd1234abcd1234abcd1234abcd1234ab0b050000XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +<+++ EAP-sim decoded packet: + EAP-Message = 0x01XX + Message-Authenticator = 0xABCDABCDABCDABCDABCDABCDABCDABCD + State = 0xABCDABCDABCDABCDABCDABCDABCDABCD + EAP-Id = YY + EAP-Code = Request + EAP-Type-SIM = 0x0b0000010d0000abcd1234abcd1234abcd1234abcd1234bcd1234abcd1234abcd1234abcd1234acd1234abcd1234abcd1234abcd1234ab0b050000XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + EAP-Sim-Subtype = Challenge + EAP-Sim-RAND = 0x0000abcd1234abcd1234abcd1234abcd1234bcd1234abcd1234abcd1234abcd1234acd1234abcd1234abcd1234abcd1234ab + EAP-Sim-MAC = 0xYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY +__________________ ++++> About to send encoded packet: + User-Name = "eapsim" + NAS-IP-Address = marajade.sandelman.ottawa.on.ca + EAP-Code = Response + Message-Authenticator = 0xABCDABCDABCDABCDABCDABCDABCDABCD + NAS-Port = 0 + EAP-Sim-Rand1 = 0x89abcbeef9abcdef89abcdef89abcdef + EAP-Sim-Rand2 = 0x9abcdef89abcdef89abcdef89abcdef8 + EAP-Sim-Rand3 = 0xabcdef89abcdef89abcdef89abcdef89 + EAP-Sim-SRES1 = 0x1234abcd + EAP-Sim-SRES2 = 0x234abcd1 + EAP-Sim-SRES3 = 0x34abcd12 + EAP-Sim-KC1 = 0x0011223344556677 + EAP-Sim-KC2 = 0x1021324354657687 + EAP-Sim-KC3 = 0x30415263748596a7 + EAP-Sim-State = 0 + EAP-Sim-Subtype = Start + EAP-Sim-SELECTED_VERSION = 0x0001 + EAP-Sim-NONCE_MT = 0x000000a3f6b4e832cf46b4d3e0d090623e22 + EAP-Sim-IDENTITY = 0x000665617073696d + EAP-Id = YY + State = 0xABCDABCDABCDABCDABCDABCDABCDABCD + EAP-Message = 0x02XX +Sending Access-Request of id 999 to 127.0.0.1:1812 + User-Name = "eapsim" + NAS-IP-Address = marajade.sandelman.ottawa.on.ca + Message-Authenticator = 0xABCDABCDABCDABCDABCDABCDABCDABCD + NAS-Port = 0 + State = 0xABCDABCDABCDABCDABCDABCDABCDABCD + EAP-Message = 0x02XX +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 = 0x0b0000010d0000abcd1234abcd1234abcd1234abcd1234bcd1234abcd1234abcd1234abcd1234acd1234abcd1234abcd1234abcd1234ab0b050000XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +<+++ EAP-sim decoded packet: + EAP-Message = 0x01XX + Message-Authenticator = 0xABCDABCDABCDABCDABCDABCDABCDABCD + State = 0xABCDABCDABCDABCDABCDABCDABCDABCD + EAP-Id = YY + EAP-Code = Request + EAP-Type-SIM = 0x0b0000010d0000abcd1234abcd1234abcd1234abcd1234bcd1234abcd1234abcd1234abcd1234acd1234abcd1234abcd1234abcd1234ab0b050000XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + EAP-Sim-Subtype = Challenge + EAP-Sim-RAND = 0x0000abcd1234abcd1234abcd1234abcd1234bcd1234abcd1234abcd1234abcd1234acd1234abcd1234abcd1234abcd1234ab + EAP-Sim-MAC = 0xYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY diff --git a/src/tests/eapsim-05/eapsim-in.txt b/src/tests/eapsim-05/eapsim-in.txt new file mode 100644 index 0000000..a48fdd9 --- /dev/null +++ b/src/tests/eapsim-05/eapsim-in.txt @@ -0,0 +1,15 @@ +User-Name = "eapsim" +NAS-IP-Address = marajade.sandelman.ottawa.on.ca +EAP-Code = Response +EAP-Type-Identity = "eapsim" +Message-Authenticator = 0 +NAS-Port = 0 +EAP-Sim-Rand1 = 0x89abcBEEF9abcdef89abcdef89abcdef +EAP-Sim-Rand2 = 0x9abcdef89abcdef89abcdef89abcdef8 +EAP-Sim-Rand3 = 0xabcdef89abcdef89abcdef89abcdef89 +EAP-Sim-Sres1 = 0x1234abcd +EAP-Sim-Sres2 = 0x234abcd1 +EAP-Sim-Sres3 = 0x34abcd12 +EAP-Sim-KC1 = 0x0011223344556677 +EAP-Sim-KC2 = 0x1021324354657687 +EAP-Sim-KC3 = 0x30415263748596a7 diff --git a/src/tests/eapsim-05/eapsim-out.txt b/src/tests/eapsim-05/eapsim-out.txt new file mode 100644 index 0000000..8b8c4a5 --- /dev/null +++ b/src/tests/eapsim-05/eapsim-out.txt @@ -0,0 +1,148 @@ + ++++> About to send encoded packet: + User-Name = "eapsim" + NAS-IP-Address = marajade.sandelman.ottawa.on.ca + EAP-Code = Response + EAP-Type-Identity = "eapsim" + Message-Authenticator = 0xABCDABCDABCDABCDABCDABCDABCDABCD + NAS-Port = 0 + EAP-Sim-Rand1 = 0x89abcbeef9abcdef89abcdef89abcdef + EAP-Sim-Rand2 = 0x9abcdef89abcdef89abcdef89abcdef8 + EAP-Sim-Rand3 = 0xabcdef89abcdef89abcdef89abcdef89 + EAP-Sim-SRES1 = 0x1234abcd + EAP-Sim-SRES2 = 0x234abcd1 + EAP-Sim-SRES3 = 0x34abcd12 + EAP-Sim-KC1 = 0x0011223344556677 + EAP-Sim-KC2 = 0x1021324354657687 + EAP-Sim-KC3 = 0x30415263748596a7 +Sending Access-Request of id 999 to 127.0.0.1:1812 + User-Name = "eapsim" + 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 = "eapsim" + NAS-IP-Address = marajade.sandelman.ottawa.on.ca + EAP-Code = Response + Message-Authenticator = 0xABCDABCDABCDABCDABCDABCDABCDABCD + NAS-Port = 0 + EAP-Sim-Rand1 = 0x89abcbeef9abcdef89abcdef89abcdef + EAP-Sim-Rand2 = 0x9abcdef89abcdef89abcdef89abcdef8 + EAP-Sim-Rand3 = 0xabcdef89abcdef89abcdef89abcdef89 + EAP-Sim-SRES1 = 0x1234abcd + EAP-Sim-SRES2 = 0x234abcd1 + EAP-Sim-SRES3 = 0x34abcd12 + EAP-Sim-KC1 = 0x0011223344556677 + EAP-Sim-KC2 = 0x1021324354657687 + EAP-Sim-KC3 = 0x30415263748596a7 + EAP-Sim-State = 1 + EAP-Sim-Subtype = Start + EAP-Sim-SELECTED_VERSION = 0x0001 + EAP-Sim-NONCE_MT = 0x000000a3f6b4e832cf46b4d3e0d090623e22 + EAP-Sim-IDENTITY = 0x000665617073696d + EAP-Id = YY + EAP-Message = 0x02XX + State = 0xABCDABCDABCDABCDABCDABCDABCDABCD +Sending Access-Request of id 999 to 127.0.0.1:1812 + User-Name = "eapsim" + 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 = 0x0b0000010d0000abcd1234abcd1234abcd1234abcd1234bcd1234abcd1234abcd1234abcd1234acd1234abcd1234abcd1234abcd1234ab0b050000XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +<+++ EAP-sim decoded packet: + EAP-Message = 0x01XX + Message-Authenticator = 0xABCDABCDABCDABCDABCDABCDABCDABCD + State = 0xABCDABCDABCDABCDABCDABCDABCDABCD + EAP-Id = YY + EAP-Code = Request + EAP-Type-SIM = 0x0b0000010d0000abcd1234abcd1234abcd1234abcd1234bcd1234abcd1234abcd1234abcd1234acd1234abcd1234abcd1234abcd1234ab0b050000XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + EAP-Sim-Subtype = Challenge + EAP-Sim-RAND = 0x0000abcd1234abcd1234abcd1234abcd1234bcd1234abcd1234abcd1234abcd1234acd1234abcd1234abcd1234abcd1234ab + EAP-Sim-MAC = 0xYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY +__________________ ++++> About to send encoded packet: + User-Name = "eapsim" + NAS-IP-Address = marajade.sandelman.ottawa.on.ca + EAP-Code = Response + Message-Authenticator = 0xABCDABCDABCDABCDABCDABCDABCDABCD + NAS-Port = 0 + EAP-Sim-Rand1 = 0x89abcbeef9abcdef89abcdef89abcdef + EAP-Sim-Rand2 = 0x9abcdef89abcdef89abcdef89abcdef8 + EAP-Sim-Rand3 = 0xabcdef89abcdef89abcdef89abcdef89 + EAP-Sim-SRES1 = 0x1234abcd + EAP-Sim-SRES2 = 0x234abcd1 + EAP-Sim-SRES3 = 0x34abcd12 + EAP-Sim-KC1 = 0x0011223344556677 + EAP-Sim-KC2 = 0x1021324354657687 + EAP-Sim-KC3 = 0x30415263748596a7 + EAP-Sim-State = 0 + EAP-Sim-Subtype = Start + EAP-Sim-SELECTED_VERSION = 0x0001 + EAP-Sim-NONCE_MT = 0x000000a3f6b4e832cf46b4d3e0d090623e22 + EAP-Sim-IDENTITY = 0x000665617073696d + EAP-Id = YY + State = 0xABCDABCDABCDABCDABCDABCDABCDABCD + EAP-Message = 0x02XX +Sending Access-Request of id 999 to 127.0.0.1:1812 + User-Name = "eapsim" + NAS-IP-Address = marajade.sandelman.ottawa.on.ca + Message-Authenticator = 0xABCDABCDABCDABCDABCDABCDABCDABCD + NAS-Port = 0 + State = 0xABCDABCDABCDABCDABCDABCDABCDABCD + EAP-Message = 0x02XX +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 = 0x0b0000010d0000abcd1234abcd1234abcd1234abcd1234bcd1234abcd1234abcd1234abcd1234acd1234abcd1234abcd1234abcd1234ab0b050000XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +<+++ EAP-sim decoded packet: + EAP-Message = 0x01XX + Message-Authenticator = 0xABCDABCDABCDABCDABCDABCDABCDABCD + State = 0xABCDABCDABCDABCDABCDABCDABCDABCD + EAP-Id = YY + EAP-Code = Request + EAP-Type-SIM = 0x0b0000010d0000abcd1234abcd1234abcd1234abcd1234bcd1234abcd1234abcd1234abcd1234acd1234abcd1234abcd1234abcd1234ab0b050000XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + EAP-Sim-Subtype = Challenge + EAP-Sim-RAND = 0x0000abcd1234abcd1234abcd1234abcd1234bcd1234abcd1234abcd1234abcd1234acd1234abcd1234abcd1234abcd1234ab + EAP-Sim-MAC = 0xYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY diff --git a/src/tests/eapsim-05/eapsim-raw.txt b/src/tests/eapsim-05/eapsim-raw.txt new file mode 100644 index 0000000..ef7d7c6 --- /dev/null +++ b/src/tests/eapsim-05/eapsim-raw.txt @@ -0,0 +1,148 @@ + ++++> About to send encoded packet: + User-Name = "eapsim" + NAS-IP-Address = marajade.sandelman.ottawa.on.ca + EAP-Code = Response + EAP-Type-Identity = "eapsim" + Message-Authenticator = 0x30 + NAS-Port = 0 + EAP-Sim-Rand1 = 0x89abcbeef9abcdef89abcdef89abcdef + EAP-Sim-Rand2 = 0x9abcdef89abcdef89abcdef89abcdef8 + EAP-Sim-Rand3 = 0xabcdef89abcdef89abcdef89abcdef89 + EAP-Sim-SRES1 = 0x1234abcd + EAP-Sim-SRES2 = 0x234abcd1 + EAP-Sim-SRES3 = 0x34abcd12 + EAP-Sim-KC1 = 0x0011223344556677 + EAP-Sim-KC2 = 0x1021324354657687 + EAP-Sim-KC3 = 0x30415263748596a7 +Sending Access-Request of id 204 to 127.0.0.1:1812 + User-Name = "eapsim" + NAS-IP-Address = marajade.sandelman.ottawa.on.ca + Message-Authenticator = 0x00000000000000000000000000000000 + NAS-Port = 0 + EAP-Message = 0x02cb000b0165617073696d +rad_recv: Access-Challenge packet from host 127.0.0.1:1812, id=204, length=78 + EAP-Message = 0x01a70014120a00000f0200020001000011010100 + Message-Authenticator = 0xce4f705db940a4a61c0896712e259ecb + State = 0xc313c2aa36347b14bc248a365651d25f +<+++ EAP decoded packet: + EAP-Message = 0x01a70014120a00000f0200020001000011010100 + Message-Authenticator = 0xce4f705db940a4a61c0896712e259ecb + State = 0xc313c2aa36347b14bc248a365651d25f + EAP-Id = 167 + EAP-Code = Request + EAP-Type-SIM = 0x0a00000f0200020001000011010100 +<+++ EAP-sim decoded packet: + EAP-Message = 0x01a70014120a00000f0200020001000011010100 + Message-Authenticator = 0xce4f705db940a4a61c0896712e259ecb + State = 0xc313c2aa36347b14bc248a365651d25f + EAP-Id = 167 + 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 = "eapsim" + NAS-IP-Address = marajade.sandelman.ottawa.on.ca + EAP-Code = Response + Message-Authenticator = 0x00000000000000000000000000000000 + NAS-Port = 0 + EAP-Sim-Rand1 = 0x89abcbeef9abcdef89abcdef89abcdef + EAP-Sim-Rand2 = 0x9abcdef89abcdef89abcdef89abcdef8 + EAP-Sim-Rand3 = 0xabcdef89abcdef89abcdef89abcdef89 + EAP-Sim-SRES1 = 0x1234abcd + EAP-Sim-SRES2 = 0x234abcd1 + EAP-Sim-SRES3 = 0x34abcd12 + EAP-Sim-KC1 = 0x0011223344556677 + EAP-Sim-KC2 = 0x1021324354657687 + EAP-Sim-KC3 = 0x30415263748596a7 + EAP-Sim-State = 1 + EAP-Sim-Subtype = Start + EAP-Sim-SELECTED_VERSION = 0x0001 + EAP-Sim-NONCE_MT = 0x000000a3f6b4e832cf46b4d3e0d090623e22 + EAP-Sim-IDENTITY = 0x000665617073696d + EAP-Id = 167 + EAP-Message = 0x02a7002c120a0000100100010705000000a3f6b4e832cf46b4d3e0d090623e220e03000665617073696d0000 + State = 0xc313c2aa36347b14bc248a365651d25f +Sending Access-Request of id 205 to 127.0.0.1:1812 + User-Name = "eapsim" + NAS-IP-Address = marajade.sandelman.ottawa.on.ca + Message-Authenticator = 0x00000000000000000000000000000000 + NAS-Port = 0 + EAP-Message = 0x02a7002c120a0000100100010705000000a3f6b4e832cf46b4d3e0d090623e220e03000665617073696d0000 + State = 0xc313c2aa36347b14bc248a365651d25f +rad_recv: Access-Challenge packet from host 127.0.0.1:1812, id=205, length=138 + EAP-Message = 0x01a80050120b0000010d0000abcd1234abcd1234abcd1234abcd1234bcd1234abcd1234abcd1234abcd1234acd1234abcd1234abcd1234abcd1234ab0b0500004295110227f46b83717e6d2f64ecd5f5 + Message-Authenticator = 0xe76cfc6fb346d107b4b1d313faac212e + State = 0xf94335155e78fbfc00ee2fab6d277167 +<+++ EAP decoded packet: + EAP-Message = 0x01a80050120b0000010d0000abcd1234abcd1234abcd1234abcd1234bcd1234abcd1234abcd1234abcd1234acd1234abcd1234abcd1234abcd1234ab0b0500004295110227f46b83717e6d2f64ecd5f5 + Message-Authenticator = 0xe76cfc6fb346d107b4b1d313faac212e + State = 0xf94335155e78fbfc00ee2fab6d277167 + EAP-Id = 168 + EAP-Code = Request + EAP-Type-SIM = 0x0b0000010d0000abcd1234abcd1234abcd1234abcd1234bcd1234abcd1234abcd1234abcd1234acd1234abcd1234abcd1234abcd1234ab0b0500004295110227f46b83717e6d2f64ecd5f5 +<+++ EAP-sim decoded packet: + EAP-Message = 0x01a80050120b0000010d0000abcd1234abcd1234abcd1234abcd1234bcd1234abcd1234abcd1234abcd1234acd1234abcd1234abcd1234abcd1234ab0b0500004295110227f46b83717e6d2f64ecd5f5 + Message-Authenticator = 0xe76cfc6fb346d107b4b1d313faac212e + State = 0xf94335155e78fbfc00ee2fab6d277167 + EAP-Id = 168 + EAP-Code = Request + EAP-Type-SIM = 0x0b0000010d0000abcd1234abcd1234abcd1234abcd1234bcd1234abcd1234abcd1234abcd1234acd1234abcd1234abcd1234abcd1234ab0b0500004295110227f46b83717e6d2f64ecd5f5 + EAP-Sim-Subtype = Challenge + EAP-Sim-RAND = 0x0000abcd1234abcd1234abcd1234abcd1234bcd1234abcd1234abcd1234abcd1234acd1234abcd1234abcd1234abcd1234ab + EAP-Sim-MAC = 0x00004295110227f46b83717e6d2f64ecd5f5 +__________________ ++++> About to send encoded packet: + User-Name = "eapsim" + NAS-IP-Address = marajade.sandelman.ottawa.on.ca + EAP-Code = Response + Message-Authenticator = 0x00000000000000000000000000000000 + NAS-Port = 0 + EAP-Sim-Rand1 = 0x89abcbeef9abcdef89abcdef89abcdef + EAP-Sim-Rand2 = 0x9abcdef89abcdef89abcdef89abcdef8 + EAP-Sim-Rand3 = 0xabcdef89abcdef89abcdef89abcdef89 + EAP-Sim-SRES1 = 0x1234abcd + EAP-Sim-SRES2 = 0x234abcd1 + EAP-Sim-SRES3 = 0x34abcd12 + EAP-Sim-KC1 = 0x0011223344556677 + EAP-Sim-KC2 = 0x1021324354657687 + EAP-Sim-KC3 = 0x30415263748596a7 + EAP-Sim-State = 0 + EAP-Sim-Subtype = Start + EAP-Sim-SELECTED_VERSION = 0x0001 + EAP-Sim-NONCE_MT = 0x000000a3f6b4e832cf46b4d3e0d090623e22 + EAP-Sim-IDENTITY = 0x000665617073696d + EAP-Id = 168 + State = 0xf94335155e78fbfc00ee2fab6d277167 + EAP-Message = 0x02a8002c120a0000100100010705000000a3f6b4e832cf46b4d3e0d090623e220e03000665617073696d0000 +Sending Access-Request of id 206 to 127.0.0.1:1812 + User-Name = "eapsim" + NAS-IP-Address = marajade.sandelman.ottawa.on.ca + Message-Authenticator = 0x00000000000000000000000000000000 + NAS-Port = 0 + State = 0xf94335155e78fbfc00ee2fab6d277167 + EAP-Message = 0x02a8002c120a0000100100010705000000a3f6b4e832cf46b4d3e0d090623e220e03000665617073696d0000 +rad_recv: Access-Challenge packet from host 127.0.0.1:1812, id=206, length=138 + EAP-Message = 0x01a90050120b0000010d0000abcd1234abcd1234abcd1234abcd1234bcd1234abcd1234abcd1234abcd1234acd1234abcd1234abcd1234abcd1234ab0b050000d7c75f997bf27cd7a46f3b34f8a8f5b3 + Message-Authenticator = 0x16fc76638c72e04b8b43ab48edcf5088 + State = 0xb9449aca40be007b0a641b9fa5b1f761 +<+++ EAP decoded packet: + EAP-Message = 0x01a90050120b0000010d0000abcd1234abcd1234abcd1234abcd1234bcd1234abcd1234abcd1234abcd1234acd1234abcd1234abcd1234abcd1234ab0b050000d7c75f997bf27cd7a46f3b34f8a8f5b3 + Message-Authenticator = 0x16fc76638c72e04b8b43ab48edcf5088 + State = 0xb9449aca40be007b0a641b9fa5b1f761 + EAP-Id = 169 + EAP-Code = Request + EAP-Type-SIM = 0x0b0000010d0000abcd1234abcd1234abcd1234abcd1234bcd1234abcd1234abcd1234abcd1234acd1234abcd1234abcd1234abcd1234ab0b050000d7c75f997bf27cd7a46f3b34f8a8f5b3 +<+++ EAP-sim decoded packet: + EAP-Message = 0x01a90050120b0000010d0000abcd1234abcd1234abcd1234abcd1234bcd1234abcd1234abcd1234abcd1234acd1234abcd1234abcd1234abcd1234ab0b050000d7c75f997bf27cd7a46f3b34f8a8f5b3 + Message-Authenticator = 0x16fc76638c72e04b8b43ab48edcf5088 + State = 0xb9449aca40be007b0a641b9fa5b1f761 + EAP-Id = 169 + EAP-Code = Request + EAP-Type-SIM = 0x0b0000010d0000abcd1234abcd1234abcd1234abcd1234bcd1234abcd1234abcd1234abcd1234acd1234abcd1234abcd1234abcd1234ab0b050000d7c75f997bf27cd7a46f3b34f8a8f5b3 + EAP-Sim-Subtype = Challenge + EAP-Sim-RAND = 0x0000abcd1234abcd1234abcd1234abcd1234bcd1234abcd1234abcd1234abcd1234acd1234abcd1234abcd1234abcd1234ab + EAP-Sim-MAC = 0x0000d7c75f997bf27cd7a46f3b34f8a8f5b3 diff --git a/src/tests/eapsim-05/eapsim-sanitize.sed b/src/tests/eapsim-05/eapsim-sanitize.sed new file mode 100644 index 0000000..84410ca --- /dev/null +++ b/src/tests/eapsim-05/eapsim-sanitize.sed @@ -0,0 +1,10 @@ +s/\(Sending Access-Request of id\).*\(to 127.0.0.1:1812\)/\1 999 \2/ +s/\(Message-Authenticator = 0x\).*/\1ABCDABCDABCDABCDABCDABCDABCDABCD/ +s/\(State = 0x\).*/\1ABCDABCDABCDABCDABCDABCDABCDABCD/ +s/\(rad_recv: Access-Challenge packet from host 127.0.0.1:1812, id\)=.*,\( length=.*\)/\1=999,\2/ +s/\(rad_recv: Access-Accept packet from host 127.0.0.1:1812, id\)=.*,\( length=.*\)/\1=999,\2/ +s/\(EAP-Message = 0x..\)\(.*\)/\1XX/ +s/\(EAP-Id = \).*/\1YY/ +s/\(EAP-Type-MD5 = \).*/\1MD5/ + + |