-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathEapGtc.xml
66 lines (54 loc) · 2.46 KB
/
EapGtc.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?xml version="1.0" encoding="utf-8"?>
<Peach xmlns="http://peachfuzzer.com/2012/Peach" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://peachfuzzer.com/2012/Peach /peach/peach.xsd"
author="Brad Antoniewicz ([email protected])">
<!--
Peach Data Model for EAP-GTC
http://tools.ietf.org/html/rfc3748
Note: EAP-GTC is implemented differently within EAP-FAST
This was written for use in EAP messages but can be used wherever
Dependencies:
This PeachPit requires ##UserPassword## in a PitDefine
-->
<!-- Includes Section -->
<Include ns="Utils" src="file:##PitPath##Utils.xml" />
<Include ns="Eap" src="file:##PitPath##Eap.xml" />
<!-- End Includes Section -->
<!-- Generic EAP-GTC Packet
EAP-GTC is as basic as it gets, its just a string wrapped in a EAP packet
-->
<DataModel name="EAP-GTC-Packet">
<String name="EAP-GTC-TypeData"/>
</DataModel>
<!-- EAP-GTC Password Prompt
Sent by the Authentication Server to the Client
This is the first message that provides the data to prompt
the user with.
-->
<DataModel name="EAP-Request-GTC-Prompt" ref="Eap:EAP-Header">
<Number name="EAP-Code" size="8" value="1" /> <!-- 1: Request -->
<Number name="EAP-Id" value="0"/> <!-- Need EAP-Id here and set to zero for slurp -->
<Number name="EAP-Type" size="8" value="6"/> <!-- 6: EAP-GTC -->
<Block ref="EAP-GTC-Packet"/>
</DataModel>
<!-- EAP-GTC Response
Sent by the Client to the Authentication Server
Simply the token card data.
-->
<DataModel name="EAP-Response-GTC" ref="Eap:EAP-Header">
<Number name="EAP-Code" size="8" value="2" /> <!-- 2: Response -->
<Number name="EAP-Id" value="0"/> <!-- Need EAP-Id here and set to zero for slurp -->
<Number name="EAP-Type" size="8" value="6"/> <!-- 6: EAP-GTC -->
<Block ref="EAP-GTC-Packet">
<String name="EAP-GTC-TypeData" value="##UserPassword##"/>
</Block>
</DataModel>
<!-- NAK Server's EAP-Type, Request EAP-GTC
-->
<DataModel name="EAP-Response-NAK-GTC" ref="Eap:EAP-Header">
<Number name="EAP-Code" size="8" value="2" /> <!-- 2: Response -->
<Number name="EAP-Id" value="0"/> <!-- Need EAP-Id here and set to zero for slurp -->
<Number name="EAP-Type" size="8" value="3"/> <!-- 3: NAK -->
<Number name="EAP-DesAuthType" value="6"/> <!-- 6: EAP-GTC -->
</DataModel>
</Peach>