refactor submodule to include additional disassemblers

master
JoYo 2022-01-24 13:27:11 -05:00
parent c370df827c
commit 8cb6a2f393
3 changed files with 17 additions and 34 deletions

View File

@ -1,6 +1,6 @@
FROM ubuntu:22.04 FROM rizin/rizin:latest
ENV DEBIAN_FRONTEND noninteractive
USER root
RUN apt-get update && apt-get install --yes \ RUN apt-get update && apt-get install --yes \
build-essential \ build-essential \
git \ git \
@ -18,6 +18,4 @@ COPY subdisassem /app/subdisassem/
WORKDIR /app/ WORKDIR /app/
RUN python3 setup.py install RUN python3 setup.py install
RUN useradd -m subdisassem USER rizin
WORKDIR /home/subdisassem
ENV HOME /home/subdisassem

View File

@ -4,22 +4,7 @@ from pathlib import Path
from sqlalchemy import desc from sqlalchemy import desc
import logging import logging
from .disassemble import ( from . import capstone_wrapper
x86_16,
x86_32,
x86_64,
armv7,
thumb2,
aarch64,
mips32,
mips64_el,
ppc64,
sparc,
sparcv9,
systemz,
xcore,
)
from .schema import db_config, Disassembly from .schema import db_config, Disassembly
@ -74,19 +59,19 @@ def subdisassem_script():
logging.info(f"sha1sum: {checksum}") logging.info(f"sha1sum: {checksum}")
archs = [ archs = [
x86_16, capstone_wrapper.x86_16,
x86_32, capstone_wrapper.x86_32,
x86_64, capstone_wrapper.x86_64,
armv7, capstone_wrapper.armv7,
thumb2, capstone_wrapper.thumb2,
aarch64, capstone_wrapper.aarch64,
mips32, capstone_wrapper.mips32,
mips64_el, capstone_wrapper.mips64_el,
ppc64, capstone_wrapper.ppc64,
sparc, capstone_wrapper.sparc,
sparcv9, capstone_wrapper.sparcv9,
systemz, capstone_wrapper.systemz,
xcore, capstone_wrapper.xcore,
] ]
for arch in archs: for arch in archs: