Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?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.xsd">
- <!-- Define our file format DDL -->
- <DataModel name="TestTemplate">
- <XmlElement elementName="Types">
- <XmlAttribute attributeName="xmlnsWTF">
- <String value="http://schemas.openxmlformats.org/package/2006/content-types">
- <Analyzer class="StringToken"/>
- </String>
- </XmlAttribute>
- <XmlElement elementName="Default">
- <XmlAttribute attributeName="Extension">
- <String value="png">
- <Analyzer class="StringToken"/>
- </String>
- </XmlAttribute>
- <XmlAttribute attributeName="ContentType">
- <String value="image/png">
- <Analyzer class="StringToken"/>
- </String>
- </XmlAttribute>
- </XmlElement>
- <XmlElement elementName="Default">
- <XmlAttribute attributeName="Extension">
- <String value="emf">
- <Analyzer class="StringToken"/>
- </String>
- </XmlAttribute>
- <XmlAttribute attributeName="ContentType">
- <String value="image/x-emf">
- <Analyzer class="StringToken"/>
- </String>
- </XmlAttribute>
- </XmlElement>
- <XmlElement elementName="Default">
- <XmlAttribute attributeName="Extension">
- <String value="rels">
- <Analyzer class="StringToken"/>
- </String>
- </XmlAttribute>
- <XmlAttribute attributeName="ContentType">
- <String value="application/vnd.openxmlformats-package.relationships+xml">
- <Analyzer class="StringToken"/>
- </String>
- </XmlAttribute>
- </XmlElement>
- <XmlElement elementName="Default">
- <XmlAttribute attributeName="Extension">
- <String value="xml">
- <Analyzer class="StringToken"/>
- </String>
- </XmlAttribute>
- <XmlAttribute attributeName="ContentType">
- <String value="application/xml">
- <Analyzer class="StringToken"/>
- </String>
- </XmlAttribute>
- </XmlElement>
- <XmlElement elementName="Default">
- <XmlAttribute attributeName="Extension">
- <String value="vsdx">
- <Analyzer class="StringToken"/>
- </String>
- </XmlAttribute>
- <XmlAttribute attributeName="ContentType">
- <String value="application/vnd.ms-visio.drawing">
- <Analyzer class="StringToken"/>
- </String>
- </XmlAttribute>
- </XmlElement>
- <XmlElement elementName="Default">
- <XmlAttribute attributeName="Extension">
- <String value="wdp">
- <Analyzer class="StringToken"/>
- </String>
- </XmlAttribute>
- <XmlAttribute attributeName="ContentType">
- <String value="image/vnd.ms-photo">
- <Analyzer class="StringToken"/>
- </String>
- </XmlAttribute>
- </XmlElement>
- <XmlElement elementName="Override">
- <XmlAttribute attributeName="PartName">
- <String value="/word/document.xml">
- <Analyzer class="StringToken"/>
- </String>
- </XmlAttribute>
- <XmlAttribute attributeName="ContentType">
- <String value="application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml">
- <Analyzer class="StringToken"/>
- </String>
- </XmlAttribute>
- </XmlElement>
- </XmlElement>
- </DataModel>
- <!-- Define a simple state machine that will write the file and
- then launch a program using the FileWriter and DebuggerLaucher publishers -->
- <StateModel name="State" initialState="Initial">
- <State name="Initial">
- <!-- Write out contents of file. The publisher attribute matches
- the name we provide for the publisher in the Test section. -->
- <Action type="output">
- <DataModel ref="TestTemplate" />
- </Action>
- <!-- Close file -->
- <Action type="close" />
- <!-- Launch the file consumer -->
- <Action type="call" method="ScoobySnacks" publisher="Peach.Agent"/>
- </State>
- </StateModel>
- <!-- Setup a local agent that will monitor for faults -->
- <Agent name="LocalAgent">
- <Monitor class="WindowsDebugger">
- <!-- The command line to run. Notice the filename provided matched up
- to what is provided below in the Publisher configuration -->
- <!-- <Param name="CommandLine" value="c:\windows\system32\notepad.exe fuzzfile.bin" /> -->
- <Param name="CommandLine" value="C:\Program Files\Sublime Text 3\subl.exe fuzzfile.bin" />
- <Param name="WinDbgPath" value="C:\Program Files\Windows Kits\10\Debuggers\x86\" />
- <Param name="StartOnCall" value="ScoobySnacks" />
- </Monitor>
- <!-- Enable heap debugging on our process as well. -->
- <Monitor class="PageHeap">
- <!-- <Param name="Executable" value="notepad.exe"/> -->
- <Param name="Executable" value="C:\Program Files\Sublime Text 3\subl.exe"/>
- <Param name="WinDbgPath" value="C:\Program Files\Windows Kits\10\Debuggers\x86\" />
- </Monitor>
- </Agent>
- <Test name="Default">
- <Agent ref="LocalAgent" />
- <StateModel ref="State"/>
- <!-- Configure our publisher with correct filename to write too -->
- <Publisher class="File">
- <Param name="FileName" value="fuzzfile.bin" />
- </Publisher>
- <!-- Configure a logger to store collected information -->
- <Logger class="Filesystem">
- <Param name="Path" value="logtest" />
- </Logger>
- </Test>
- </Peach>
- <!-- end -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement