MCPcopy Create free account
hub / github.com/sqlmapproject/sqlmap / cloak

Function cloak

extra/cloak/cloak.py:29–34  ·  view source on GitHub ↗
(inputFile=None, data=None)

Source from the content-addressed store, hash-verified

27 return b"".join(struct.pack('B', ord(message[i]) ^ ord(key[i % len(key)])) for i in range(len(message)))
28
29def cloak(inputFile=None, data=None):
30 if data is None:
31 with open(inputFile, "rb") as f:
32 data = f.read()
33
34 return xor(zlib.compress(data), KEY)
35
36def decloak(inputFile=None, data=None):
37 if data is None:

Callers 2

uploadShellcodeexecMethod · 0.90
mainFunction · 0.85

Calls 2

xorFunction · 0.85
readMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…