(self)
| 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 |
no test coverage detected