angr / patcherex

Shellphish's automated patching engine, originally created for the Cyber Grand Challenge.
BSD 2-Clause "Simplified" License
251 stars 45 forks source link

Errror while compiling binary #37

Closed SpiralBL0CK closed 2 years ago

SpiralBL0CK commented 3 years ago

when running ``` import patcherex import os import subprocess import random from patcherex.backends.reassembler_backend import ReassemblerBackend from patcherex.patches import * from tracer import QEMURunner

def main():

InsertCodePatch we use this and bacnedclass ReassemblerBacked

backend = ReassemblerBackend("origin_bin")
patches = []
address = 0x0400948
transmit_code = '''
    mov qword ptr [ptr + rax*0x8],0x0    
'''

patches.append(AddCodePatch(transmit_code,name="patch"))

backend.apply_patches(patches)
backend.save("ormod")

if name == "main": main()``` i get Traceback (most recent call last): File "/home/pwn/Desktop/dreamhack_pwn_patch.py", line 36, in main() File "/home/pwn/Desktop/dreamhack_pwn_patch.py", line 34, in main backend.save("ormod") File "/home/pwn/patcherex/patcherex/backends/reassembler_backend.py", line 145, in save raise CompilationError("File: %s Error: %s" % (tmp_file_path,res)) and this very long compilation error. Any ideea ? Screenshot from 2021-08-26 18-09-07

github-actions[bot] commented 2 years ago

This issue has been marked as stale because it has no recent activity. Please comment or add the pinned tag to prevent this issue from being closed.

github-actions[bot] commented 2 years ago

This issue has been closed due to inactivity.