-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
125 lines (101 loc) · 2.94 KB
/
Dockerfile
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
FROM consol/ubuntu-xfce-vnc:latest
LABEL maintainer Niko "aug3073911@outlook.com"
ENV REFRESHED_AT 2022-11-24
ENV VNC_RESOLUTION 1920x1080
ENV VNC_PW ppllmmoo
ENV HOME=/headless
WORKDIR $HOME
# Set wallpaper
RUN rm -rf $HOME/.config/bg_sakuli.png
ADD wallpaper.png $HOME/.config/bg_sakuli.png
# Switch to root user to install pakcages
USER 0
RUN set -x; \
apt update \
&& apt -y upgrade
RUN apt install -y software-properties-common sudo git
# JDK8
RUN add-apt-repository ppa:openjdk-r/ppa && apt-get update \
&& apt install -y openjdk-8-jdk
# Back to normal
USER 1000
# Jadx
WORKDIR $HOME
RUN mkdir project
WORKDIR $HOME/project
RUN git clone https://github.com/skylot/jadx.git jadx \
&& cd jadx \
&& ./gradlew dist \
&& ln -s $HOME/project/jadx/jadx-gui/build/install/jadx-gui/bin/jadx-gui $HOME/jadx-gui
# Homebrew
WORKDIR $HOME
USER 0
RUN add-apt-repository -y ppa:git-core/ppa \
&& apt update \
&& apt install -y --no-install-recommends \
bzip2 \
ca-certificates \
curl \
file \
fonts-dejavu-core \
g++ \
locales \
make \
openssh-client \
patch \
uuid-runtime
RUN localedef -i en_US -f UTF-8 en_US.UTF-8 \
&& useradd -m -s /bin/bash linuxbrew \
&& echo 'linuxbrew ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
ENV PATH="/home/linuxbrew/.linuxbrew/bin:${PATH}"
USER 1000
RUN /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
ENV PATH="/home/linuxbrew/.linuxbrew/bin:${PATH}"
# Python pyenv pip3 setuptools
USER 1000
WORKDIR $HOME
RUN brew install python@3.9 pyenv
RUN python3.9 -m pip install --upgrade pip
RUN python3.9 -m pip install --upgrade setuptools
# adb
USER 0
RUN add-apt-repository ppa:nilarimogard/webupd8 && apt update \
&& apt -y install android-tools-adb android-tools-fastboot
USER 1000
# frida
RUN pip3 install frida-tools
# frida-dexdump
RUN pip3 install frida-dexdump
# frida-server
USER 0
RUN apt -y install xz-utils
USER 1000
WORKDIR $HOME
ENV FILENAME_FRIDASERVER="frida-server-16.0.3-android-arm64"
COPY "$FILENAME_FRIDASERVER".xz $HOME
RUN sudo chown 1000:1000 $FILENAME_FRIDASERVER.xz \
&& unxz $FILENAME_FRIDASERVER.xz
# Bash script to setup frida-server
USER 1000
WORKDIR $HOME
COPY frida_setup.sh $HOME
# Objection
USER 1000
WORKDIR $HOME
RUN pip3 install objection
# lamda
USER 0
RUN apt install -y wget
USER 1000
WORKDIR $HOME
ENV FILENAME_LAMDA_SETUP="lamda_setup.sh"
ENV FILENAME_LAMDA="arm64-v8a.tar.gz-install.sh"
ENV FILENAME_LAMDA_URL="https://github.com/rev1si0n/lamda/releases/download/3.0.47/arm64-v8a.tar.gz-install.sh"
RUN wget $FILENAME_LAMDA_URL
COPY "$FILENAME_LAMDA_SETUP" $HOME
# clean
USER 0
RUN apt autoremove --purge -y && apt clean && apt autoclean && rm -rf /var/lib/apt/lists/*
USER 1000
RUN set +x
WORKDIR $HOME