hexDump

Prints the given input as a hex-editor style string

Functions

hexDump(data)

Prepares a hexdump string to be nicely printed by a logger

Parameters:data – (str): binary blob to be converted to a nice hexdump
Returns:hexdump formatted string (possibly with multiple lines)

Usage Examples

Debug logging the hex dump of a compiled shellcode:
logger.debug(hexDump(shellcode))