File size: 2,231 Bytes
939143a
628b9fc
01393b5
628b9fc
 
 
 
3f55409
628b9fc
 
939143a
 
628b9fc
939143a
3f55409
7b24bf7
 
 
 
939143a
 
3f55409
 
 
 
 
 
939143a
 
3f55409
628b9fc
 
 
811c0c0
939143a
 
628b9fc
 
 
 
 
298dbc1
939143a
628b9fc
 
8807c5e
fc731ee
628b9fc
 
 
939143a
10a005e
628b9fc
939143a
628b9fc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# استخدام صورة NVIDIA CUDA
FROM nvidia/cuda:12.2.0-base-ubuntu22.04

# منع الأسئلة التفاعلية أثناء التثبيت
ENV DEBIAN_FRONTEND=noninteractive
ENV JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64

# تحديث المستودعات وتثبيت الأدوات الأساسية
RUN apt-get update && apt-get install -y --no-install-recommends \
    openjdk-17-jdk wget unzip git python3 python3-pip python3-venv \
    apktool aapt binutils file sudo vim curl p7zip-full \
    && apt-get clean

# ---------------------------------------------------------
# تثبيت radare2 (تحميل مباشر من GitHub)
WORKDIR /opt
RUN wget https://github.com/radareorg/radare2/releases/download/5.9.6/radare2_5.9.6_amd64.deb && \
    dpkg -i radare2_5.9.6_amd64.deb || apt-get install -f -y && \
    rm radare2_5.9.6_amd64.deb

# ---------------------------------------------------------
# تثبيت dex2jar يدوياً (تم إصلاح الرابط إلى الإصدار 2.0)
RUN wget https://github.com/pxb1988/dex2jar/releases/download/2.0/dex2jar-2.0.zip && \
    unzip dex2jar-2.0.zip && rm dex2jar-2.0.zip && \
    chmod +x /opt/dex2jar-2.0/*.sh && \
    ln -s /opt/dex2jar-2.0/d2j-dex2jar.sh /usr/local/bin/dex2jar && \
    ln -s /opt/dex2jar-2.0/d2j-dex2jar.sh /usr/local/bin/d2j-dex2jar

# ---------------------------------------------------------
# تثبيت Ghidra (أداة تفكيك التشفير)
RUN wget https://github.com/NationalSecurityAgency/ghidra/releases/download/Ghidra_11.0.2_build/ghidra_11.0.2_PUBLIC_20240606.zip && \
    unzip ghidra*.zip && rm ghidra*.zip && \
    ln -s /opt/ghidra_11.0.2_PUBLIC /opt/ghidra

# ---------------------------------------------------------
# تثبيت مكتبات بايثون
RUN pip3 install --upgrade pip && pip3 install \
    flask flask-socketio eventlet \
    frida-tools objection \
    requests groq python-dotenv \
    lief capstone

# ---------------------------------------------------------
# إعداد مجلد العمل
WORKDIR /app
COPY . .

# إعطاء صلاحيات التشغيل لسكريبت البدء
RUN chmod +x /app/start.sh

# فتح المنفذ
EXPOSE 7860

# نقطة الدخول
CMD ["/app/start.sh"]