Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errror while compiling binary #37

Closed
SpiralBL0CK opened this issue Aug 26, 2021 · 2 comments
Closed

Errror while compiling binary #37

SpiralBL0CK opened this issue Aug 26, 2021 · 2 comments
Labels

Comments

@SpiralBL0CK
Copy link

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
Copy link

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 github-actions bot added the stale label May 18, 2022
@github-actions
Copy link

This issue has been closed due to inactivity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant