MCPcopy Create free account
hub / github.com/Fadi002/de4py / d3

Method d3

de4py/engines/onyx/string_decoder.py:344–350  ·  view source on GitHub ↗
(m)

Source from the content-addressed store, hash-verified

342 source = p2.sub(d2, source)
343 p3 = re.compile(r'["\']["\']\.join\s*\(\s*\[\s*((?:chr\s*\(\s*\d{1,3}\s*\)\s*,?\s*)+)\]\s*\)')
344 def d3(m):
345 try:
346 nums = [int(x) for x in re.findall(r'chr\s*\(\s*(\d{1,3})\s*\)', m.group(1))]
347 r = ''.join(chr(n) for n in nums)
348 return repr(r) if r.isprintable() else m.group(0)
349 except Exception:
350 return m.group(0)
351 return p3.sub(d3, source)
352
353 def _decode_join_chr_map(self, source: str) -> str:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected