Skip to content

Commit d39de8b

Browse files
author
axelle
committed
Dexcalibur in a container
1 parent b3337e1 commit d39de8b

File tree

2 files changed

+47
-1
lines changed

2 files changed

+47
-1
lines changed

Dockerfile.dexcalibur

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# ------------------------- Dexcalibur Docker image
2+
FROM ubuntu:20.04
3+
4+
MAINTAINER Axelle Apvrille
5+
ENV REFRESHED_AT 2021-03-08
6+
7+
ARG DEBIAN_FRONTEND=noninteractive
8+
ARG JDK_VERSION=8
9+
ENV FRIDA_VERSION 14.2.13
10+
ENV FRIDA_SERVER frida-server-${FRIDA_VERSION}-android-x86_64.xz
11+
12+
# --------------------- Various requirements -------------------------
13+
RUN apt-get update && \
14+
apt-get install -yqq curl dirmngr apt-transport-https lsb-release ca-certificates adb \
15+
python3-pip python openjdk-${JDK_VERSION}-jdk build-essential wget
16+
17+
# ----------------------- Install Dexcalibur -----------------------------------------------
18+
RUN curl -fsSL https://deb.nodesource.com/setup_12.x | bash -
19+
RUN apt-get install -yqq nodejs
20+
RUN pip3 install frida-tools
21+
RUN npm install -g npm && npm install -g dexcalibur
22+
RUN mkdir -p /workshop && wget -q -O /workshop/${FRIDA_SERVER} https://github.com/frida/frida/releases/download/${FRIDA_VERSION}/${FRIDA_SERVER} && cd /workshop && unxz ${FRIDA_SERVER}
23+
24+
# ------------------------- Clean up
25+
RUN apt-get clean && apt-get autoclean && apt-get autoremove -y && \
26+
rm -rf /var/lib/apt/lists/* /tmp/* /usr/share/doc/* > /dev/null 2>&1
27+
28+
# ------------------------- Final matter
29+
WORKDIR /workshop
30+
VOLUME ["/data"]
31+
CMD [ "/bin/bash" ]
32+
33+
34+
EXPOSE 8000
35+

docker-compose.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ services:
88
args:
99
- SSH_PASSWORD=mypass
1010
- VNC_PASSWORD=mypass
11-
image: cryptax/android-emu:2021.02
11+
image: cryptax/android-emu:2021.03
1212
container_name: android-emulators
1313
ports:
1414
- "5022:22"
@@ -18,6 +18,17 @@ services:
1818
privileged: true
1919
volumes:
2020
- /tmp/emulators:/workshop
21+
android-dexcalibur:
22+
build:
23+
context: .
24+
dockerfile: Dockerfile.dexcalibur
25+
image: cryptax/dexcalibur:2021.03
26+
container_name: android-dexcalibur
27+
ports:
28+
- "5800:8000"
29+
network_mode: "host"
30+
volumes:
31+
- /tmp/dexcalibur:/workshop
2132
android-retools:
2233
build:
2334
context: .

0 commit comments

Comments
 (0)