Public Member Functions | |
def | storeXML |
Stores content of Main Window widgets into XML file. | |
def | loadXML |
Loads content of peach XML file into Main Window widgets. | |
def | storeElements |
Stores content of Main Window widgets into our XML element tree. | |
def | loadElements |
Loads content of our XML element tree into Main Window widgets. | |
def | storeServerAgent |
Stores content of Main Window widgets associated with server agent into our XML element tree. | |
def | storeClientAgent |
Stores content of Main Window widgets associated with client agent into our XML element tree. | |
def | storePublishers |
Stores content of Main Window widgets associated with publisher into our XML element tree. | |
def | loadDataModels |
Loads content of XML element tree into Main Window data model widget. | |
def | loadDataModel |
Loads content of XML element tree (single data model) into Main Window data model widget. | |
def | loadStateModels |
Loads content of peach XML into Main Window state model widget. | |
def | loadStateModel |
Loads content of XML element tree (single state model) into Main Window state model widget. | |
def | loadMutators |
Finds used mutators in XML element tree and checks / unchecks checkbox associated with single mutator. | |
def | loadPublishers |
Loads content of our XML element tree into Main Window widgets associated with publisher. | |
def | loadServerAgent |
Loads content of our XML element tree into Main Window widgets associated with server agent. | |
def | loadClientAgent |
Loads content of our XML element tree into Main Window widgets associated with client agent. | |
def | clearElements |
Clear all necessary Main window elements. |
Class used for storing/loading content of Main Widow to/from peach XML file, which is used for fuzzing. This class reads and modifies content of second and third tab of Main Window. It's used to visualize and modify some parts of peach XML. It uses peachXmlWriter and peachXmlReader for writing and storing XML files.
This class represents link between Main Window content and our XML element tree.
def xmlmanipulators::fuzzingXmlManipulator::clearElements | ( | self | ) |
Clear all necessary Main window elements.
This function is used before loading new XML element tree into Main Window
self | The object pointer. |
def xmlmanipulators::fuzzingXmlManipulator::loadClientAgent | ( | self, | ||
root, | ||||
silent = False | ||||
) |
Loads content of our XML element tree into Main Window widgets associated with client agent.
self | The object pointer. | |
silent | Indicates whether to display error QMessageBox on failure. | |
root | Tree node which tag is named "Peach". |
def xmlmanipulators::fuzzingXmlManipulator::loadDataModel | ( | self, | ||
parent, | ||||
treeNode | ||||
) |
Loads content of XML element tree (single data model) into Main Window data model widget.
self | The object pointer. | |
parent | Parent HotFuzzTreeWidgetItem. | |
treeNode | currently processed xml element tree node. |
def xmlmanipulators::fuzzingXmlManipulator::loadDataModels | ( | self, | ||
root, | ||||
silent = False | ||||
) |
Loads content of XML element tree into Main Window data model widget.
Note this function uses fuzzingXmlManipulator::loadDataModel for creating non root level elements.
self | The object pointer. | |
silent | Indicates whether to display error QMessageBox on failure. | |
root | Tree node which tag is named "Peach". |
def xmlmanipulators::fuzzingXmlManipulator::loadElements | ( | self, | ||
silent = False | ||||
) |
Loads content of our XML element tree into Main Window widgets.
self | The object pointer. | |
silent | Indicates whether to display error QMessageBox on failure. |
def xmlmanipulators::fuzzingXmlManipulator::loadMutators | ( | self, | ||
root, | ||||
silent = False | ||||
) |
Finds used mutators in XML element tree and checks / unchecks checkbox associated with single mutator.
self | The object pointer. | |
silent | Indicates whether to display error QMessageBox on failure. | |
root | Tree node which tag is named "Peach". |
def xmlmanipulators::fuzzingXmlManipulator::loadPublishers | ( | self, | ||
root, | ||||
silent = False | ||||
) |
Loads content of our XML element tree into Main Window widgets associated with publisher.
self | The object pointer. | |
silent | Indicates whether to display error QMessageBox on failure. | |
root | Tree node which tag is named "Peach". |
def xmlmanipulators::fuzzingXmlManipulator::loadServerAgent | ( | self, | ||
root, | ||||
silent = False | ||||
) |
Loads content of our XML element tree into Main Window widgets associated with server agent.
self | The object pointer. | |
silent | Indicates whether to display error QMessageBox on failure. | |
root | Tree node which tag is named "Peach". |
def xmlmanipulators::fuzzingXmlManipulator::loadStateModel | ( | self, | ||
parent, | ||||
treeNode | ||||
) |
Loads content of XML element tree (single state model) into Main Window state model widget.
self | The object pointer. | |
parent | Parent HotFuzzTreeWidgetItem. | |
treeNode | currently processed XML element tree node. |
def xmlmanipulators::fuzzingXmlManipulator::loadStateModels | ( | self, | ||
root, | ||||
silent = False | ||||
) |
Loads content of peach XML into Main Window state model widget.
Note this function uses fuzzingXmlManipulator::loadStateModel for creating non root level elements.
self | The object pointer. | |
silent | Indicates whether to display error QMessageBox on failure. | |
root | Tree node which tag is named "Peach". |
def xmlmanipulators::fuzzingXmlManipulator::loadXML | ( | self, | ||
path, | ||||
silent = False | ||||
) |
Loads content of peach XML file into Main Window widgets.
self | The object pointer. | |
path | Path to XML file. | |
silent | Indicates whether to display error QMessageBox on failure. |
def xmlmanipulators::fuzzingXmlManipulator::storeClientAgent | ( | self, | ||
root, | ||||
silent = False | ||||
) |
Stores content of Main Window widgets associated with client agent into our XML element tree.
self | The object pointer. | |
silent | Indicates whether to display error QMessageBox on failure. | |
root | Tree node which tag is named "Peach". |
def xmlmanipulators::fuzzingXmlManipulator::storeElements | ( | self, | ||
loggerPath, | ||||
silent = False | ||||
) |
Stores content of Main Window widgets into our XML element tree.
self | The object pointer. | |
loggerPath | Path where to store crashes. | |
silent | Indicates whether to display error QMessageBox on failure. |
def xmlmanipulators::fuzzingXmlManipulator::storePublishers | ( | self, | ||
root, | ||||
silent = False | ||||
) |
Stores content of Main Window widgets associated with publisher into our XML element tree.
self | The object pointer. | |
silent | Indicates whether to display error QMessageBox on failure. | |
root | Tree node which tag is named "Peach". |
def xmlmanipulators::fuzzingXmlManipulator::storeServerAgent | ( | self, | ||
root, | ||||
silent = False | ||||
) |
Stores content of Main Window widgets associated with server agent into our XML element tree.
self | The object pointer. | |
silent | Indicates whether to display error QMessageBox on failure. | |
root | Tree node which tag is named "Peach". |
def xmlmanipulators::fuzzingXmlManipulator::storeXML | ( | self, | ||
path, | ||||
loggerPath = None , |
||||
silent = False | ||||
) |
Stores content of Main Window widgets into XML file.
self | The object pointer. | |
path | Path to XML file. | |
loggerPath | Path where to store crashes. | |
silent | Indicates whether to display error QMessageBox on failure. |