MCPcopy
hub / github.com/fortra/impacket / hexdump

Function hexdump

impacket/structure.py:650–670  ·  view source on GitHub ↗
(data, indent = '')

Source from the content-addressed store, hash-verified

648 return u'.'
649
650def hexdump(data, indent = ''):
651 if data is None:
652 return
653 if isinstance(data, int):
654 data = str(data).encode('utf-8')
655 x=bytearray(data)
656 strLen = len(x)
657 i = 0
658 while i < strLen:
659 line = " %s%04x " % (indent, i)
660 for j in range(16):
661 if i+j < strLen:
662 line += "%02X " % x[i+j]
663 else:
664 line += u" "
665 if j%16 == 7:
666 line += " "
667 line += " "
668 line += ''.join(pretty_print(x) for x in x[i:i+16] )
669 print (line)
670 i += 16
671
672def parse_bitmask(dict, value):
673 ret = ''

Callers 15

dumpMethod · 0.90
dumpMethod · 0.90
dumpMethod · 0.90
printValueMethod · 0.90
printValueMethod · 0.90
getValueMethod · 0.90
__parse_lp_dataMethod · 0.90
__printSecretMethod · 0.90
__printSecretMethod · 0.90
setUpMethod · 0.90
test_ntlmv1Method · 0.90
test_ntlmv2Method · 0.90

Calls 2

pretty_printFunction · 0.85
encodeMethod · 0.80

Tested by 15

setUpMethod · 0.72
test_ntlmv1Method · 0.72
test_ntlmv2Method · 0.72
__pack_and_parseMethod · 0.72
test_encodedecodenameMethod · 0.72
test_RpcEnumPrintersMethod · 0.72
test_hRpcEnumPrintersMethod · 0.72
test_2Method · 0.68
test_3Method · 0.68
test_4Method · 0.68
test_5Method · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…