Advertisement
Guest User

Untitled

a guest
Mar 20th, 2016
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 5.26 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Peach xmlns="http://peachfuzzer.com/2012/Peach" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3.     xsi:schemaLocation="http://peachfuzzer.com/2012/Peach ../peach.xsd">
  4.    
  5.     <!-- Define our file format DDL -->
  6.     <DataModel name="TestTemplate">
  7.         <XmlElement elementName="Types">
  8.                 <XmlAttribute attributeName="xmlnsWTF">
  9.                         <String value="http://schemas.openxmlformats.org/package/2006/content-types">
  10.                         <Analyzer class="StringToken"/>
  11.                         </String>
  12.                 </XmlAttribute>
  13.             <XmlElement elementName="Default">
  14.                 <XmlAttribute attributeName="Extension">
  15.                         <String value="png">
  16.                         <Analyzer class="StringToken"/>
  17.                         </String>
  18.                 </XmlAttribute>
  19.                 <XmlAttribute attributeName="ContentType">
  20.                         <String value="image/png">
  21.                         <Analyzer class="StringToken"/>
  22.                         </String>
  23.                 </XmlAttribute>
  24.             </XmlElement>
  25.             <XmlElement elementName="Default">
  26.                 <XmlAttribute attributeName="Extension">
  27.                         <String value="emf">
  28.                         <Analyzer class="StringToken"/>
  29.                         </String>
  30.                 </XmlAttribute>
  31.                 <XmlAttribute attributeName="ContentType">
  32.                         <String value="image/x-emf">
  33.                         <Analyzer class="StringToken"/>
  34.                         </String>
  35.                 </XmlAttribute>
  36.             </XmlElement>
  37.             <XmlElement elementName="Default">
  38.                 <XmlAttribute attributeName="Extension">
  39.                         <String value="rels">
  40.                         <Analyzer class="StringToken"/>
  41.                         </String>
  42.                 </XmlAttribute>
  43.                 <XmlAttribute attributeName="ContentType">
  44.                         <String value="application/vnd.openxmlformats-package.relationships+xml">
  45.                         <Analyzer class="StringToken"/>
  46.                         </String>
  47.                 </XmlAttribute>
  48.             </XmlElement>
  49.             <XmlElement elementName="Default">
  50.                 <XmlAttribute attributeName="Extension">
  51.                         <String value="xml">
  52.                         <Analyzer class="StringToken"/>
  53.                         </String>
  54.                 </XmlAttribute>
  55.                 <XmlAttribute attributeName="ContentType">
  56.                         <String value="application/xml">
  57.                         <Analyzer class="StringToken"/>
  58.                         </String>
  59.                 </XmlAttribute>
  60.             </XmlElement>
  61.             <XmlElement elementName="Default">
  62.                 <XmlAttribute attributeName="Extension">
  63.                         <String value="vsdx">
  64.                         <Analyzer class="StringToken"/>
  65.                         </String>
  66.                 </XmlAttribute>
  67.                 <XmlAttribute attributeName="ContentType">
  68.                         <String value="application/vnd.ms-visio.drawing">
  69.                         <Analyzer class="StringToken"/>
  70.                         </String>
  71.                 </XmlAttribute>
  72.             </XmlElement>
  73.             <XmlElement elementName="Default">
  74.                 <XmlAttribute attributeName="Extension">
  75.                         <String value="wdp">
  76.                         <Analyzer class="StringToken"/>
  77.                         </String>
  78.                 </XmlAttribute>
  79.                 <XmlAttribute attributeName="ContentType">
  80.                         <String value="image/vnd.ms-photo">
  81.                         <Analyzer class="StringToken"/>
  82.                         </String>
  83.                 </XmlAttribute>
  84.             </XmlElement>
  85.  
  86.             <XmlElement elementName="Override">
  87.                 <XmlAttribute attributeName="PartName">
  88.                         <String value="/word/document.xml">
  89.                         <Analyzer class="StringToken"/>
  90.                         </String>
  91.                 </XmlAttribute>
  92.                 <XmlAttribute attributeName="ContentType">
  93.                         <String value="application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml">
  94.                         <Analyzer class="StringToken"/>
  95.                         </String>
  96.                 </XmlAttribute>
  97.             </XmlElement>
  98.         </XmlElement>
  99.     </DataModel>
  100.    
  101.     <!-- Define a simple state machine that will write the file and
  102.         then launch a program using the FileWriter and DebuggerLaucher publishers -->
  103.     <StateModel name="State" initialState="Initial">
  104.         <State name="Initial">
  105.            
  106.             <!-- Write out contents of file.  The publisher attribute matches
  107.             the name we provide for the publisher in the Test section. -->
  108.             <Action type="output">
  109.                 <DataModel ref="TestTemplate" />
  110.             </Action>
  111.            
  112.             <!-- Close file -->
  113.             <Action type="close" />
  114.            
  115.             <!-- Launch the file consumer -->
  116.             <Action type="call" method="ScoobySnacks" publisher="Peach.Agent"/>
  117.            
  118.         </State>
  119.     </StateModel>
  120.    
  121.     <!-- Setup a local agent that will monitor for faults -->
  122.     <Agent name="LocalAgent">
  123.         <Monitor class="WindowsDebugger">
  124.            
  125.             <!-- The command line to run.  Notice the filename provided matched up
  126.                 to what is provided below in the Publisher configuration -->
  127.             <!-- <Param name="CommandLine" value="c:\windows\system32\notepad.exe fuzzfile.bin" /> -->
  128.             <Param name="CommandLine" value="C:\Program Files\Sublime Text 3\subl.exe fuzzfile.bin" />
  129.             <Param name="WinDbgPath" value="C:\Program Files\Windows Kits\10\Debuggers\x86\" />
  130.            
  131.             <Param name="StartOnCall" value="ScoobySnacks" />
  132.            
  133.         </Monitor>
  134.        
  135.         <!-- Enable heap debugging on our process as well. -->
  136.         <Monitor class="PageHeap">
  137.             <!-- <Param name="Executable" value="notepad.exe"/> -->
  138.             <Param name="Executable" value="C:\Program Files\Sublime Text 3\subl.exe"/>
  139.             <Param name="WinDbgPath" value="C:\Program Files\Windows Kits\10\Debuggers\x86\" />
  140.         </Monitor>
  141.     </Agent>
  142.    
  143.     <Test name="Default">
  144.         <Agent ref="LocalAgent" />
  145.         <StateModel ref="State"/>
  146.        
  147.         <!-- Configure our publisher with correct filename to write too -->
  148.         <Publisher class="File">
  149.             <Param name="FileName" value="fuzzfile.bin" />
  150.         </Publisher>
  151.  
  152.         <!-- Configure a logger to store collected information -->
  153.         <Logger class="Filesystem">
  154.             <Param name="Path" value="logtest" />
  155.         </Logger>
  156.     </Test>
  157.    
  158. </Peach>
  159. <!-- end -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement