Package Peach :: Package Engine :: Module peachshark :: Class PeachShark
[hide private]

Class PeachShark

source code

Instance Methods [hide private]
 
__init__(self) source code
 
inStr(self, str, values) source code
 
findSizeRelation(self, sizeNode, node) source code
 
findSizes(self, nodes)
Find nodes that could be sizes or lengths.
source code
 
findSizeGetSize(self, node)
Take a size/length node and figure out it's value.
source code
 
findSizeRelationCheckSelf(self, node)
Check if parent - me + prior siblings == size
source code
 
findSizeRelations(self, nodes)
Find and resolve size relations.
source code
 
removeTextNodes(self, node) source code
 
htmlEncode(self, strInput, default='') source code
 
getNodeName(self, node)
Check for name and show attributes.
source code
 
peachNode(self, node, tabCount, size, parent) source code
 
hex2bin(self, h)
Convert hex string to binary string
source code
 
isWideString(self, str)
Is this a wchar string?
source code
 
isPaddedWideString(self, str)
Is this a wchar string with nulls at the end?
source code
 
isString(self, str)
Is this a char string?
source code
 
isPaddedString(self, str)
Is this a char string with nulls at the end?
source code
 
getFlagBits(self, node)
Checks out the showname field to see if we can determin the number of bits this flag is and it's offset in the packet.
source code
 
figureType(self, node) source code
 
figureOutPublisher(self, doc)
Look for udp or tcp protocol and pull out address and port.
source code
Method Details [hide private]

getNodeName(self, node)

source code 

Check for name and show attributes. Figureout a possible name for this node.