MCPcopy Index your code
hub / github.com/ReversecLabs/drozer / append

Method append

src/drozer/modules/common/shell_code.py:5–13  ·  view source on GitHub ↗

Add a byte or list of bytes to the current shell code.

(self, byte_or_bytes)

Source from the content-addressed store, hash-verified

3class ShellCode(object):
4
5 def append(self, byte_or_bytes):
6 """
7 Add a byte or list of bytes to the current shell code.
8 """
9
10 if hasattr(byte_or_bytes, '__iter__'):
11 self.__shell_code.extend(byte_or_bytes)
12 else:
13 self.__shell_code.append(byte_or_bytes)
14
15 def asHex(self):
16 return "".join(map(lambda b: "\\x%0.2X" % b, self.__shell_code))

Callers 15

get_package_dataFunction · 0.45
replyWithMethod · 0.45
recvMethod · 0.45
invokeMethod · 0.45
add_extra_toMethod · 0.45
mainFunction · 0.45
__pathsMethod · 0.45
generateMethod · 0.45
generateMethod · 0.45
generateMethod · 0.45
executeMethod · 0.45

Calls 1

extendMethod · 0.80

Tested by 3

recvMethod · 0.36
invokeMethod · 0.36