Module antiparser :: Class antiparser
[frames | no frames]

Class antiparser


Main class - should be imported into fuzzer scripts.
Method Summary
  __init__(self)
Constructor that is called when the class is instantiated.
  append(self, item)
Append data to the antiparser.
  delete(self, item)
Remove data by name from the antiparser.
  display(self)
Prints all of the objects in the antiparser.
  displayModes(self)
Display a list of supported modes for antiparser.permute().
  getDebug(self)
Returns the debugging status.
  getGlobalDebug(self)
Returns the global debugging status.
  getList(self)
Return lists of data objects in the current antiparser instance.
  getPayload(self)
Returns the payload of the current permutation.
  juggle(self)
Randomly rearrange the ordering of data objects in the antiparser instance.
  load(self, fileName)
Loads a file containing a saved antiparser permutation.
  permute(self)
Creates a random permutation of the content for each data object in the antiparser.
  save(self, fileName)
Saves the current antiparser permutation to a file.
  setDebug(self, debug)
Sets the debugging status to True or False.
  setGlobalDebug(self, debug)
Sets the debugging status to True or False for all data objects in the antiparser.
  version(self)
Prints the version.
  writeFile(self, fileName)
Writes the payload to a file for use in file format fuzzing.

Method Details

__init__(self)
(Constructor)

Constructor that is called when the class is instantiated.

append(self, item)

Append data to the antiparser.

This method also extracts a new payload from the data set.

delete(self, item)

Remove data by name from the antiparser.

This method also extracts a new payload from the data set.

display(self)

Prints all of the objects in the antiparser.

displayModes(self)

Display a list of supported modes for antiparser.permute().

getDebug(self)

Returns the debugging status.

getGlobalDebug(self)

Returns the global debugging status.

getList(self)

Return lists of data objects in the current antiparser instance.

getPayload(self)

Returns the payload of the current permutation.

The payload is the random output to be used in fuzzer scripts.

juggle(self)

Randomly rearrange the ordering of data objects in the antiparser instance.

This method extracts the payload of the altered antiparser data. juggle() does not permute the data, just randomly reorders it. Users can then permit the data if they wish.

load(self, fileName)

Loads a file containing a saved antiparser permutation.

permute(self)

Creates a random permutation of the content for each data object in the antiparser.

save(self, fileName)

Saves the current antiparser permutation to a file.

setDebug(self, debug)

Sets the debugging status to True or False. Defaults to False.

setDebug() sets the debugging status for the antiparser container only. For global debugging of all data objects in the container, use setGlobalDebug().

setGlobalDebug(self, debug)

Sets the debugging status to True or False for all data objects in the antiparser. Defaults to False.

setGlobalDebug() will set the debug status for all of the data objects that have been appended to the current antiparser instance.

version(self)

Prints the version.

writeFile(self, fileName)

Writes the payload to a file for use in file format fuzzing.

Generated by Epydoc 2.1 on Wed Aug 17 09:02:50 2005 http://epydoc.sf.net
SourceForge.net Logo