-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhtml3.xml
96 lines (74 loc) · 4.38 KB
/
html3.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<?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">
<!-- html3.xml -->
<!-- Very basic HTML fuzz example based off of example.com, more advanced version coming soon -->
<!-- Author: Elias Augusto -->
<!-- Written for Peach Community Edition v3.1+ -->
<!-- Unsigned -->
<Defaults>
<Number signed="false"/>
</Defaults>
<!-- Our target. -->
<DataModel name="target">
<Block name="htmlfile">
<String name="doctype1" value="<!DOCTYPE HTML PUBLIC "" nullTerminated="false" mutable="true" token="true" length="23"/>
<String name="doctype2" value="-//W3C//DTD HTML 3.0 //EN" nullTerminated="false" mutable="true" length="25"/>
<String name="doctype3" value="">" nullTerminated="false" mutable="false" token="true" length="2"/>
<String name="htmlopen" value="<html>" nullTerminated="false" mutable="true" length="6"/>
<String name="headopen" value="<head>" nullTerminated="false" mutable="true" length="6"/>
<String name="titleopen" value="<title>" nullTerminated="false" mutable="true" length="7"/>
<String name="titletext" value="Example Domain" nullTerminated="false" mutable="true" length="14"/>
<String name="titleclose" value="</title>" nullTerminated="false" mutable="true" length="8"/>
<String name="headclose" value="</head>" nullTerminated="false" mutable="true" length="7"/>
<String name="bodyopen" value="<body>" nullTerminated="false" mutable="true" length="6"/>
<String name="divopen" value="<div>" nullTerminated="false" mutable="true" length="5"/>
<String name="h1open" value="<h1>" nullTerminated="false" mutable="true" length="4"/>
<String name="h1text" value="Example Domain" nullTerminated="false" mutable="true" length="14"/>
<String name="h1close" value="</h1>" nullTerminated="false" mutable="true" length="5"/>
<String name="popen" value="<p>" nullTerminated="false" mutable="true" length="3"/>
<String name="ptext" value="This domain is for use in illustrative examples in documents. You may use this domain in literature without prior coordination or asking for permission." nullTerminated="false" mutable="true" length="152"/>
<String name="pclose" value="</p>" nullTerminated="false" mutable="true" length="4"/>
<String name="link1" value="<a href="" nullTerminated="false" mutable="false" token="true" length="9"/>
<String name="link2" value="https://www.iana.org/domains/example" nullTerminated="false" mutable="true" length="36"/>
<String name="link3" value="">" nullTerminated="false" mutable="false" token="true" length="2"/>
<String name="linktext" value="More information..." nullTerminated="false" mutable="true" length="19"/>
<String name="linkclose" value="</a>" nullTerminated="false" mutable="false" token="true" length="4"/>
<String name="divclose" value="</div>" nullTerminated="false" mutable="true" length="6"/>
<String name="bodyclose" value="</body>" nullTerminated="false" mutable="true" length="7"/>
<String name="htmlclose" value="</html>" nullTerminated="true" mutable="false" token="true" length="8"/>
</Block>
</DataModel>
<StateModel name="TheState" initialState="Initial">
<State name="Initial">
<Action type="output">
<DataModel ref="target"/>
</Action>
<Action type="close"/>
<Action type="call" method="Harness" publisher="Peach.Agent"/>
</State>
</StateModel>
<Agent name="TheAgent">
<Monitor class="Socket">
<Param name="Port" value="8457" />
<Param name="Timeout" value="5000" />
<Param name="StartOnCall" value="Harness"/>
</Monitor>
</Agent>
<Test name="Default">
<Strategy class="RandomDeterministic"/>
<Agent ref="TheAgent"/>
<StateModel ref="TheState"/>
<!-- Our 10s timeout here helps ensure faults are actually processed -->
<Publisher class="TcpClient">
<Param name="Host" value="1.2.3.4" />
<Param name="Port" value="8337" />
<Param name="SendTimeout" value="10000" />
<Param name="ConnectTimeout" value="10000" />
</Publisher>
<Logger class="File">
<Param name="Path" value="logs"/>
</Logger>
</Test>
</Peach>
<!-- end -->