MCPcopy Create free account
hub / github.com/ELMERIKH/PyinMemoryPE / _reduce_shellcode

Method _reduce_shellcode

windows/native_exec/simple_x86.py:1037–1043  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1035 return
1036
1037 def _reduce_shellcode(self):
1038 to_remove = [offset for offset, instr in self.instrs.items() if type(instr) == _NopArtifact]
1039 while to_remove:
1040 self._remove_nop_artifact(to_remove[0])
1041 # _remove_nop_artifact will change the offsets of the nop
1042 # Need to refresh these offset
1043 to_remove = [offset for offset, instr in self.instrs.items() if type(instr) == _NopArtifact]
1044
1045 def _remove_nop_artifact(self, offset):
1046 # Remove a NOP from the shellcode

Callers 1

add_labelMethod · 0.95

Calls 2

_remove_nop_artifactMethod · 0.95
itemsMethod · 0.45

Tested by

no test coverage detected