MCPcopy Create free account
hub / github.com/JonathanSalwan/Triton / getMemoryString

Function getMemoryString

src/examples/python/hooking_libc.py:72–82  ·  view source on GitHub ↗
(addr)

Source from the content-addressed store, hash-verified

70
71
72def getMemoryString(addr):
73 s = str()
74 index = 0
75
76 while Triton.getConcreteMemoryValue(addr+index):
77 c = chr(Triton.getConcreteMemoryValue(addr+index))
78 if c not in string.printable: c = ""
79 s += c
80 index += 1
81
82 return s
83
84
85def getFormatString(addr):

Callers 2

getFormatStringFunction · 0.70
strlenHandlerFunction · 0.70

Calls 1

Tested by

no test coverage detected