String
The String element defines a single or double byte string. The String element is a child element of DataModel or Block.
To indicate this is a numerical string use the NumericalString hint.
<String value="Hello World!" />
<String value="Null terminated string" nullTerminated="true" />
Attributes:
name -- Name of the data model [optional]
minOccurs -- The minimum number of times this block must occur [optional]
maxOccurs -- The maximum number of times this block can occur [optional]
isStatic -- This element should be treated as a token when parsing, defaults to False [DEPRECATED] [optional]
token -- (Peach 2.3)This element should be treated as a token when parsing, defaults to False [optional]
length -- Length in characters of the string [optional]
nullTerminated -- Is this string null terminated (true/false) [optional]
padCharacter -- Character to pad string with to length (default is 0x00) [optional]
pointer -- (Peach 2.3) Is this a pointer to a structure (true|false), default is false [optional]
pointerDepth -- (Peach 2.3) How many levels of pointers (e.g. void** p is 2), default is 1 [optional]
constraint -- (Peach 2.3) A constraint in the form of a python expression. Used during data cracking [optional]
mutable -- (Peach 2.3) Is data element changeable (should it be mutated), defaults to true [optional]
Valid Child-Elements:
Peach Fuzzing Platform