├── .github ├── actions │ └── install-patcherex2 │ │ └── action.yml └── workflows │ ├── ci.yml │ ├── docker.yml │ ├── docs.yml │ └── pypi.yml ├── .gitignore ├── Dockerfile ├── LICENSE ├── README.md ├── docs ├── .pages ├── _css │ └── extra.css ├── advanced_usages │ ├── add_new_target_support.md │ └── advanced_usage.md ├── api_references │ ├── patcherex.md │ └── patches.md ├── core_ideas │ └── patches.md ├── examples │ ├── insert_instruction_patch.md │ ├── modify_function_patch.md │ └── multiple_patches.md └── index.md ├── examples ├── insert_instruction_patch │ ├── add │ ├── add.c │ └── patch.py ├── insert_instruction_patch_c │ ├── add │ ├── add.c │ └── patch.py ├── modify_function_patch │ ├── add.c │ └── patch.py └── multiple_patches │ ├── getline │ ├── getline.c │ └── patch.py ├── mkdocs.yml ├── patcherex2.png ├── pyproject.toml ├── src └── patcherex2 │ ├── __init__.py │ ├── components │ ├── allocation_managers │ │ ├── __init__.py │ │ └── allocation_manager.py │ ├── archinfo │ │ ├── __init__.py │ │ ├── aarch64.py │ │ ├── amd64.py │ │ ├── arm.py │ │ ├── mips.py │ │ ├── mips64.py │ │ ├── ppc.py │ │ ├── ppc64.py │ │ ├── ppc_vle.py │ │ ├── riscv32.py │ │ ├── s390x.py │ │ ├── sparc.py │ │ └── x86.py │ ├── assemblers │ │ ├── __init__.py │ │ ├── assembler.py │ │ ├── bcc.py │ │ ├── keystone.py │ │ ├── keystone_arm.py │ │ ├── keystone_sparc.py │ │ ├── nyxstone.py │ │ └── ppc_vle.py │ ├── assets │ │ ├── .gitignore │ │ └── assets.py │ ├── binary_analyzers │ │ ├── __init__.py │ │ ├── angr.py │ │ ├── binary_analyzer.py │ │ ├── ghidra.py │ │ └── ida.py │ ├── binfmt_tools │ │ ├── __init__.py │ │ ├── binary.py │ │ ├── binfmt_tool.py │ │ ├── elf.py │ │ └── ihex.py │ ├── compilers │ │ ├── __init__.py │ │ ├── bcc.py │ │ ├── clang.py │ │ ├── clang_arm.py │ │ ├── compiler.py │ │ ├── llvm_recomp.py │ │ ├── llvm_recomp_arm.py │ │ └── ppc_vle.py │ ├── disassemblers │ │ ├── __init__.py │ │ ├── capstone.py │ │ ├── capstone_arm.py │ │ ├── disassembler.py │ │ ├── nyxstone.py │ │ └── ppc_vle.py │ ├── patch_managers │ │ ├── __init__.py │ │ ├── builtin.py │ │ ├── imp.py │ │ └── patch_manager.py │ └── utils │ │ ├── __init__.py │ │ └── utils.py │ ├── patcherex.py │ ├── patches │ ├── __init__.py │ ├── data_patches.py │ ├── dummy_patches.py │ ├── function_patches.py │ ├── instruction_patches.py │ ├── patch.py │ └── raw_patches.py │ └── targets │ ├── __init__.py │ ├── bin_arm_bare.py │ ├── elf_aarch64_linux.py │ ├── elf_amd64_linux.py │ ├── elf_amd64_linux_recomp.py │ ├── elf_arm_bare.py │ ├── elf_arm_linux.py │ ├── elf_arm_linux_recomp.py │ ├── elf_arm_mimxrt1052.py │ ├── elf_leon3_bare.py │ ├── elf_mips64_linux.py │ ├── elf_mips64el_linux.py │ ├── elf_mips_linux.py │ ├── elf_mipsel_linux.py │ ├── elf_ppc64_linux.py │ ├── elf_ppc64le_linux.py │ ├── elf_ppc_linux.py │ ├── elf_s390x_linux.py │ ├── elf_x86_linux.py │ ├── ihex_ppc_bare.py │ ├── ihex_riscv32_bare.py │ └── target.py └── tests ├── test_aarch64.py ├── test_arm.py ├── test_binaries ├── aarch64 │ ├── iip_c │ ├── iip_c.c │ ├── iip_c_asm_header │ ├── iip_c_asm_header.c │ ├── iip_c_float │ ├── iip_c_float.c │ ├── printf_nopie │ ├── printf_pie │ └── replace_function_patch ├── amd64 │ ├── iip_c │ ├── iip_c.c │ ├── iip_c_asm_header │ ├── iip_c_asm_header.c │ ├── iip_c_float │ ├── iip_c_float.c │ ├── issue8 │ ├── printf_nopie │ ├── printf_pie │ └── replace_function_patch ├── armhf │ ├── iip_c │ ├── iip_c.c │ ├── printf_nopie │ ├── printf_pie │ └── replace_function_patch ├── mips │ ├── printf_nopie │ ├── printf_pie │ └── replace_function_patch ├── mips64 │ ├── printf_nopie │ ├── printf_pie │ └── replace_function_patch ├── mips64el │ ├── printf_nopie │ ├── printf_pie │ └── replace_function_patch ├── mipsel │ ├── printf_nopie │ ├── printf_pie │ └── replace_function_patch ├── ppc │ ├── printf_nopie │ └── replace_function_patch ├── ppc64 │ ├── printf_nopie │ ├── printf_pie │ └── replace_function_patch ├── ppc64le │ ├── printf_nopie │ ├── printf_pie │ └── replace_function_patch ├── s390x │ ├── printf.c │ ├── printf_nopie │ ├── printf_pie │ ├── replace_function_patch │ └── replace_function_patch.c └── x86 │ ├── printf_nopie │ ├── printf_pie │ └── replace_function_patch ├── test_i386.py ├── test_mips.py ├── test_mips64.py ├── test_mips64el.py ├── test_mipsel.py ├── test_ppc.py ├── test_ppc64.py ├── test_ppc64le.py ├── test_s390x.py └── test_x86_64.py /.github/actions/install-patcherex2/action.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/.github/actions/install-patcherex2/action.yml -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.github/workflows/docker.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/.github/workflows/docker.yml -------------------------------------------------------------------------------- /.github/workflows/docs.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/.github/workflows/docs.yml -------------------------------------------------------------------------------- /.github/workflows/pypi.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/.github/workflows/pypi.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/.gitignore -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/README.md -------------------------------------------------------------------------------- /docs/.pages: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/docs/.pages -------------------------------------------------------------------------------- /docs/_css/extra.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/docs/_css/extra.css -------------------------------------------------------------------------------- /docs/advanced_usages/add_new_target_support.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/docs/advanced_usages/add_new_target_support.md -------------------------------------------------------------------------------- /docs/advanced_usages/advanced_usage.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/docs/advanced_usages/advanced_usage.md -------------------------------------------------------------------------------- /docs/api_references/patcherex.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/docs/api_references/patcherex.md -------------------------------------------------------------------------------- /docs/api_references/patches.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/docs/api_references/patches.md -------------------------------------------------------------------------------- /docs/core_ideas/patches.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/docs/core_ideas/patches.md -------------------------------------------------------------------------------- /docs/examples/insert_instruction_patch.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/docs/examples/insert_instruction_patch.md -------------------------------------------------------------------------------- /docs/examples/modify_function_patch.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/docs/examples/modify_function_patch.md -------------------------------------------------------------------------------- /docs/examples/multiple_patches.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/docs/examples/multiple_patches.md -------------------------------------------------------------------------------- /docs/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/docs/index.md -------------------------------------------------------------------------------- /examples/insert_instruction_patch/add: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/examples/insert_instruction_patch/add -------------------------------------------------------------------------------- /examples/insert_instruction_patch/add.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/examples/insert_instruction_patch/add.c -------------------------------------------------------------------------------- /examples/insert_instruction_patch/patch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/examples/insert_instruction_patch/patch.py -------------------------------------------------------------------------------- /examples/insert_instruction_patch_c/add: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/examples/insert_instruction_patch_c/add -------------------------------------------------------------------------------- /examples/insert_instruction_patch_c/add.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/examples/insert_instruction_patch_c/add.c -------------------------------------------------------------------------------- /examples/insert_instruction_patch_c/patch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/examples/insert_instruction_patch_c/patch.py -------------------------------------------------------------------------------- /examples/modify_function_patch/add.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/examples/modify_function_patch/add.c -------------------------------------------------------------------------------- /examples/modify_function_patch/patch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/examples/modify_function_patch/patch.py -------------------------------------------------------------------------------- /examples/multiple_patches/getline: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/examples/multiple_patches/getline -------------------------------------------------------------------------------- /examples/multiple_patches/getline.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/examples/multiple_patches/getline.c -------------------------------------------------------------------------------- /examples/multiple_patches/patch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/examples/multiple_patches/patch.py -------------------------------------------------------------------------------- /mkdocs.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/mkdocs.yml -------------------------------------------------------------------------------- /patcherex2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/patcherex2.png -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/pyproject.toml -------------------------------------------------------------------------------- /src/patcherex2/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/__init__.py -------------------------------------------------------------------------------- /src/patcherex2/components/allocation_managers/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/patcherex2/components/allocation_managers/allocation_manager.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/components/allocation_managers/allocation_manager.py -------------------------------------------------------------------------------- /src/patcherex2/components/archinfo/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/patcherex2/components/archinfo/aarch64.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/components/archinfo/aarch64.py -------------------------------------------------------------------------------- /src/patcherex2/components/archinfo/amd64.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/components/archinfo/amd64.py -------------------------------------------------------------------------------- /src/patcherex2/components/archinfo/arm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/components/archinfo/arm.py -------------------------------------------------------------------------------- /src/patcherex2/components/archinfo/mips.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/components/archinfo/mips.py -------------------------------------------------------------------------------- /src/patcherex2/components/archinfo/mips64.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/components/archinfo/mips64.py -------------------------------------------------------------------------------- /src/patcherex2/components/archinfo/ppc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/components/archinfo/ppc.py -------------------------------------------------------------------------------- /src/patcherex2/components/archinfo/ppc64.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/components/archinfo/ppc64.py -------------------------------------------------------------------------------- /src/patcherex2/components/archinfo/ppc_vle.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/components/archinfo/ppc_vle.py -------------------------------------------------------------------------------- /src/patcherex2/components/archinfo/riscv32.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/components/archinfo/riscv32.py -------------------------------------------------------------------------------- /src/patcherex2/components/archinfo/s390x.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/components/archinfo/s390x.py -------------------------------------------------------------------------------- /src/patcherex2/components/archinfo/sparc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/components/archinfo/sparc.py -------------------------------------------------------------------------------- /src/patcherex2/components/archinfo/x86.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/components/archinfo/x86.py -------------------------------------------------------------------------------- /src/patcherex2/components/assemblers/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/patcherex2/components/assemblers/assembler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/components/assemblers/assembler.py -------------------------------------------------------------------------------- /src/patcherex2/components/assemblers/bcc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/components/assemblers/bcc.py -------------------------------------------------------------------------------- /src/patcherex2/components/assemblers/keystone.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/components/assemblers/keystone.py -------------------------------------------------------------------------------- /src/patcherex2/components/assemblers/keystone_arm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/components/assemblers/keystone_arm.py -------------------------------------------------------------------------------- /src/patcherex2/components/assemblers/keystone_sparc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/components/assemblers/keystone_sparc.py -------------------------------------------------------------------------------- /src/patcherex2/components/assemblers/nyxstone.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/components/assemblers/nyxstone.py -------------------------------------------------------------------------------- /src/patcherex2/components/assemblers/ppc_vle.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/components/assemblers/ppc_vle.py -------------------------------------------------------------------------------- /src/patcherex2/components/assets/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | !assets.py 4 | -------------------------------------------------------------------------------- /src/patcherex2/components/assets/assets.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/components/assets/assets.py -------------------------------------------------------------------------------- /src/patcherex2/components/binary_analyzers/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/patcherex2/components/binary_analyzers/angr.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/components/binary_analyzers/angr.py -------------------------------------------------------------------------------- /src/patcherex2/components/binary_analyzers/binary_analyzer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/components/binary_analyzers/binary_analyzer.py -------------------------------------------------------------------------------- /src/patcherex2/components/binary_analyzers/ghidra.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/components/binary_analyzers/ghidra.py -------------------------------------------------------------------------------- /src/patcherex2/components/binary_analyzers/ida.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/components/binary_analyzers/ida.py -------------------------------------------------------------------------------- /src/patcherex2/components/binfmt_tools/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/patcherex2/components/binfmt_tools/binary.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/components/binfmt_tools/binary.py -------------------------------------------------------------------------------- /src/patcherex2/components/binfmt_tools/binfmt_tool.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/components/binfmt_tools/binfmt_tool.py -------------------------------------------------------------------------------- /src/patcherex2/components/binfmt_tools/elf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/components/binfmt_tools/elf.py -------------------------------------------------------------------------------- /src/patcherex2/components/binfmt_tools/ihex.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/components/binfmt_tools/ihex.py -------------------------------------------------------------------------------- /src/patcherex2/components/compilers/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/patcherex2/components/compilers/bcc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/components/compilers/bcc.py -------------------------------------------------------------------------------- /src/patcherex2/components/compilers/clang.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/components/compilers/clang.py -------------------------------------------------------------------------------- /src/patcherex2/components/compilers/clang_arm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/components/compilers/clang_arm.py -------------------------------------------------------------------------------- /src/patcherex2/components/compilers/compiler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/components/compilers/compiler.py -------------------------------------------------------------------------------- /src/patcherex2/components/compilers/llvm_recomp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/components/compilers/llvm_recomp.py -------------------------------------------------------------------------------- /src/patcherex2/components/compilers/llvm_recomp_arm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/components/compilers/llvm_recomp_arm.py -------------------------------------------------------------------------------- /src/patcherex2/components/compilers/ppc_vle.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/components/compilers/ppc_vle.py -------------------------------------------------------------------------------- /src/patcherex2/components/disassemblers/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/patcherex2/components/disassemblers/capstone.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/components/disassemblers/capstone.py -------------------------------------------------------------------------------- /src/patcherex2/components/disassemblers/capstone_arm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/components/disassemblers/capstone_arm.py -------------------------------------------------------------------------------- /src/patcherex2/components/disassemblers/disassembler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/components/disassemblers/disassembler.py -------------------------------------------------------------------------------- /src/patcherex2/components/disassemblers/nyxstone.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/components/disassemblers/nyxstone.py -------------------------------------------------------------------------------- /src/patcherex2/components/disassemblers/ppc_vle.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/components/disassemblers/ppc_vle.py -------------------------------------------------------------------------------- /src/patcherex2/components/patch_managers/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/components/patch_managers/__init__.py -------------------------------------------------------------------------------- /src/patcherex2/components/patch_managers/builtin.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/components/patch_managers/builtin.py -------------------------------------------------------------------------------- /src/patcherex2/components/patch_managers/imp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/components/patch_managers/imp.py -------------------------------------------------------------------------------- /src/patcherex2/components/patch_managers/patch_manager.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/components/patch_managers/patch_manager.py -------------------------------------------------------------------------------- /src/patcherex2/components/utils/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/patcherex2/components/utils/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/components/utils/utils.py -------------------------------------------------------------------------------- /src/patcherex2/patcherex.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/patcherex.py -------------------------------------------------------------------------------- /src/patcherex2/patches/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/patches/__init__.py -------------------------------------------------------------------------------- /src/patcherex2/patches/data_patches.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/patches/data_patches.py -------------------------------------------------------------------------------- /src/patcherex2/patches/dummy_patches.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/patches/dummy_patches.py -------------------------------------------------------------------------------- /src/patcherex2/patches/function_patches.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/patches/function_patches.py -------------------------------------------------------------------------------- /src/patcherex2/patches/instruction_patches.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/patches/instruction_patches.py -------------------------------------------------------------------------------- /src/patcherex2/patches/patch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/patches/patch.py -------------------------------------------------------------------------------- /src/patcherex2/patches/raw_patches.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/patches/raw_patches.py -------------------------------------------------------------------------------- /src/patcherex2/targets/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/targets/__init__.py -------------------------------------------------------------------------------- /src/patcherex2/targets/bin_arm_bare.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/targets/bin_arm_bare.py -------------------------------------------------------------------------------- /src/patcherex2/targets/elf_aarch64_linux.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/targets/elf_aarch64_linux.py -------------------------------------------------------------------------------- /src/patcherex2/targets/elf_amd64_linux.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/targets/elf_amd64_linux.py -------------------------------------------------------------------------------- /src/patcherex2/targets/elf_amd64_linux_recomp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/targets/elf_amd64_linux_recomp.py -------------------------------------------------------------------------------- /src/patcherex2/targets/elf_arm_bare.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/targets/elf_arm_bare.py -------------------------------------------------------------------------------- /src/patcherex2/targets/elf_arm_linux.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/targets/elf_arm_linux.py -------------------------------------------------------------------------------- /src/patcherex2/targets/elf_arm_linux_recomp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/targets/elf_arm_linux_recomp.py -------------------------------------------------------------------------------- /src/patcherex2/targets/elf_arm_mimxrt1052.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/targets/elf_arm_mimxrt1052.py -------------------------------------------------------------------------------- /src/patcherex2/targets/elf_leon3_bare.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/targets/elf_leon3_bare.py -------------------------------------------------------------------------------- /src/patcherex2/targets/elf_mips64_linux.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/targets/elf_mips64_linux.py -------------------------------------------------------------------------------- /src/patcherex2/targets/elf_mips64el_linux.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/targets/elf_mips64el_linux.py -------------------------------------------------------------------------------- /src/patcherex2/targets/elf_mips_linux.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/targets/elf_mips_linux.py -------------------------------------------------------------------------------- /src/patcherex2/targets/elf_mipsel_linux.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/targets/elf_mipsel_linux.py -------------------------------------------------------------------------------- /src/patcherex2/targets/elf_ppc64_linux.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/targets/elf_ppc64_linux.py -------------------------------------------------------------------------------- /src/patcherex2/targets/elf_ppc64le_linux.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/targets/elf_ppc64le_linux.py -------------------------------------------------------------------------------- /src/patcherex2/targets/elf_ppc_linux.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/targets/elf_ppc_linux.py -------------------------------------------------------------------------------- /src/patcherex2/targets/elf_s390x_linux.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/targets/elf_s390x_linux.py -------------------------------------------------------------------------------- /src/patcherex2/targets/elf_x86_linux.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/targets/elf_x86_linux.py -------------------------------------------------------------------------------- /src/patcherex2/targets/ihex_ppc_bare.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/targets/ihex_ppc_bare.py -------------------------------------------------------------------------------- /src/patcherex2/targets/ihex_riscv32_bare.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/targets/ihex_riscv32_bare.py -------------------------------------------------------------------------------- /src/patcherex2/targets/target.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/src/patcherex2/targets/target.py -------------------------------------------------------------------------------- /tests/test_aarch64.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_aarch64.py -------------------------------------------------------------------------------- /tests/test_arm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_arm.py -------------------------------------------------------------------------------- /tests/test_binaries/aarch64/iip_c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_binaries/aarch64/iip_c -------------------------------------------------------------------------------- /tests/test_binaries/aarch64/iip_c.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_binaries/aarch64/iip_c.c -------------------------------------------------------------------------------- /tests/test_binaries/aarch64/iip_c_asm_header: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_binaries/aarch64/iip_c_asm_header -------------------------------------------------------------------------------- /tests/test_binaries/aarch64/iip_c_asm_header.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_binaries/aarch64/iip_c_asm_header.c -------------------------------------------------------------------------------- /tests/test_binaries/aarch64/iip_c_float: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_binaries/aarch64/iip_c_float -------------------------------------------------------------------------------- /tests/test_binaries/aarch64/iip_c_float.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_binaries/aarch64/iip_c_float.c -------------------------------------------------------------------------------- /tests/test_binaries/aarch64/printf_nopie: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_binaries/aarch64/printf_nopie -------------------------------------------------------------------------------- /tests/test_binaries/aarch64/printf_pie: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_binaries/aarch64/printf_pie -------------------------------------------------------------------------------- /tests/test_binaries/aarch64/replace_function_patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_binaries/aarch64/replace_function_patch -------------------------------------------------------------------------------- /tests/test_binaries/amd64/iip_c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_binaries/amd64/iip_c -------------------------------------------------------------------------------- /tests/test_binaries/amd64/iip_c.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_binaries/amd64/iip_c.c -------------------------------------------------------------------------------- /tests/test_binaries/amd64/iip_c_asm_header: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_binaries/amd64/iip_c_asm_header -------------------------------------------------------------------------------- /tests/test_binaries/amd64/iip_c_asm_header.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_binaries/amd64/iip_c_asm_header.c -------------------------------------------------------------------------------- /tests/test_binaries/amd64/iip_c_float: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_binaries/amd64/iip_c_float -------------------------------------------------------------------------------- /tests/test_binaries/amd64/iip_c_float.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_binaries/amd64/iip_c_float.c -------------------------------------------------------------------------------- /tests/test_binaries/amd64/issue8: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_binaries/amd64/issue8 -------------------------------------------------------------------------------- /tests/test_binaries/amd64/printf_nopie: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_binaries/amd64/printf_nopie -------------------------------------------------------------------------------- /tests/test_binaries/amd64/printf_pie: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_binaries/amd64/printf_pie -------------------------------------------------------------------------------- /tests/test_binaries/amd64/replace_function_patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_binaries/amd64/replace_function_patch -------------------------------------------------------------------------------- /tests/test_binaries/armhf/iip_c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_binaries/armhf/iip_c -------------------------------------------------------------------------------- /tests/test_binaries/armhf/iip_c.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_binaries/armhf/iip_c.c -------------------------------------------------------------------------------- /tests/test_binaries/armhf/printf_nopie: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_binaries/armhf/printf_nopie -------------------------------------------------------------------------------- /tests/test_binaries/armhf/printf_pie: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_binaries/armhf/printf_pie -------------------------------------------------------------------------------- /tests/test_binaries/armhf/replace_function_patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_binaries/armhf/replace_function_patch -------------------------------------------------------------------------------- /tests/test_binaries/mips/printf_nopie: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_binaries/mips/printf_nopie -------------------------------------------------------------------------------- /tests/test_binaries/mips/printf_pie: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_binaries/mips/printf_pie -------------------------------------------------------------------------------- /tests/test_binaries/mips/replace_function_patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_binaries/mips/replace_function_patch -------------------------------------------------------------------------------- /tests/test_binaries/mips64/printf_nopie: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_binaries/mips64/printf_nopie -------------------------------------------------------------------------------- /tests/test_binaries/mips64/printf_pie: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_binaries/mips64/printf_pie -------------------------------------------------------------------------------- /tests/test_binaries/mips64/replace_function_patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_binaries/mips64/replace_function_patch -------------------------------------------------------------------------------- /tests/test_binaries/mips64el/printf_nopie: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_binaries/mips64el/printf_nopie -------------------------------------------------------------------------------- /tests/test_binaries/mips64el/printf_pie: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_binaries/mips64el/printf_pie -------------------------------------------------------------------------------- /tests/test_binaries/mips64el/replace_function_patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_binaries/mips64el/replace_function_patch -------------------------------------------------------------------------------- /tests/test_binaries/mipsel/printf_nopie: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_binaries/mipsel/printf_nopie -------------------------------------------------------------------------------- /tests/test_binaries/mipsel/printf_pie: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_binaries/mipsel/printf_pie -------------------------------------------------------------------------------- /tests/test_binaries/mipsel/replace_function_patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_binaries/mipsel/replace_function_patch -------------------------------------------------------------------------------- /tests/test_binaries/ppc/printf_nopie: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_binaries/ppc/printf_nopie -------------------------------------------------------------------------------- /tests/test_binaries/ppc/replace_function_patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_binaries/ppc/replace_function_patch -------------------------------------------------------------------------------- /tests/test_binaries/ppc64/printf_nopie: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_binaries/ppc64/printf_nopie -------------------------------------------------------------------------------- /tests/test_binaries/ppc64/printf_pie: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_binaries/ppc64/printf_pie -------------------------------------------------------------------------------- /tests/test_binaries/ppc64/replace_function_patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_binaries/ppc64/replace_function_patch -------------------------------------------------------------------------------- /tests/test_binaries/ppc64le/printf_nopie: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_binaries/ppc64le/printf_nopie -------------------------------------------------------------------------------- /tests/test_binaries/ppc64le/printf_pie: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_binaries/ppc64le/printf_pie -------------------------------------------------------------------------------- /tests/test_binaries/ppc64le/replace_function_patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_binaries/ppc64le/replace_function_patch -------------------------------------------------------------------------------- /tests/test_binaries/s390x/printf.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_binaries/s390x/printf.c -------------------------------------------------------------------------------- /tests/test_binaries/s390x/printf_nopie: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_binaries/s390x/printf_nopie -------------------------------------------------------------------------------- /tests/test_binaries/s390x/printf_pie: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_binaries/s390x/printf_pie -------------------------------------------------------------------------------- /tests/test_binaries/s390x/replace_function_patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_binaries/s390x/replace_function_patch -------------------------------------------------------------------------------- /tests/test_binaries/s390x/replace_function_patch.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_binaries/s390x/replace_function_patch.c -------------------------------------------------------------------------------- /tests/test_binaries/x86/printf_nopie: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_binaries/x86/printf_nopie -------------------------------------------------------------------------------- /tests/test_binaries/x86/printf_pie: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_binaries/x86/printf_pie -------------------------------------------------------------------------------- /tests/test_binaries/x86/replace_function_patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_binaries/x86/replace_function_patch -------------------------------------------------------------------------------- /tests/test_i386.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_i386.py -------------------------------------------------------------------------------- /tests/test_mips.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_mips.py -------------------------------------------------------------------------------- /tests/test_mips64.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_mips64.py -------------------------------------------------------------------------------- /tests/test_mips64el.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_mips64el.py -------------------------------------------------------------------------------- /tests/test_mipsel.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_mipsel.py -------------------------------------------------------------------------------- /tests/test_ppc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_ppc.py -------------------------------------------------------------------------------- /tests/test_ppc64.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_ppc64.py -------------------------------------------------------------------------------- /tests/test_ppc64le.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_ppc64le.py -------------------------------------------------------------------------------- /tests/test_s390x.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_s390x.py -------------------------------------------------------------------------------- /tests/test_x86_64.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/purseclab/Patcherex2/HEAD/tests/test_x86_64.py --------------------------------------------------------------------------------