-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMyCustomPublisherDataModel.xml
More file actions
50 lines (41 loc) · 1.64 KB
/
MyCustomPublisherDataModel.xml
File metadata and controls
50 lines (41 loc) · 1.64 KB
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
<?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@foundstone.com">
<!--
Sample DataModel to be used with MyCustomPublisher decribed in
http://blog.opensecurityresearch.com
Brad Antoniewicz
Foundstone
brad.antoniewicz@foundstone.com
-->
<!--
This will be encapsulated within UDP and ABC Proto
-->
<DataModel name="CustomProtocol">
<Blob name="CustomProtocolData" value="SomeSuperFancyDataThatCustomProtocolSends"/>
</DataModel>
<StateModel name="CustomProtocolOutput" initialState="SendData">
<State name="SendData">
<!--
We've only defined a unique output action for our publisher so
this is the only Action type that will actually include
ABC Proto.
This is linked to our OnOutput() function within the Publisher
-->
<Action type="output">
<DataModel ref="CustomProtocol"/>
</Action>
</State>
</StateModel>
<Test name="Default">
<StateModel ref="CustomProtocolOutput"/>
<!--
This is where we invoke our custom Abc Proto Publisher!
-->
<Publisher class="MyCustomPublisher">
<Param name="Host" value="10.219.1.207"/>
<Param name="Port" value="12345"/>
<Param name="StrictLength" value="true"/> <!-- true is default -->
</Publisher>
</Test>
</Peach>