Skip to content

Commit 152c14a

Browse files
author
Your Name
committed
Fix 'FROM' 'AS' and bump to latest frida
1 parent 244a935 commit 152c14a

File tree

2 files changed

+26
-26
lines changed

2 files changed

+26
-26
lines changed

.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
FROM cshell as frida-cshell
1+
FROM cshell AS frida-cshell

Dockerfile

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
################################################################################
22
# PLATFORM #
33
################################################################################
4-
FROM ubuntu:22.04 as platform
4+
FROM ubuntu:22.04 AS platform
55
ARG http_proxy
66
ARG https_proxy
77

@@ -64,15 +64,15 @@ ENV PATH=$PATH:/opt/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-linux-gnueabihf/
6464
################################################################################
6565
# KERNEL-SOURCE #
6666
################################################################################
67-
FROM platform as kernel-source
67+
FROM platform AS kernel-source
6868
WORKDIR /root/
6969
RUN wget https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.8.7.tar.xz
7070
RUN tar xf linux-6.8.7.tar.xz
7171

7272
################################################################################
7373
# KERNEL-ARM32 #
7474
################################################################################
75-
FROM platform as kernel-arm32
75+
FROM platform AS kernel-arm32
7676
COPY --from=kernel-source /root/linux-6.8.7 /root/linux-6.8.7
7777
WORKDIR /root/linux-6.8.7
7878

@@ -98,7 +98,7 @@ RUN ARCH=arm \
9898
################################################################################
9999
# KERNEL-ARM64 #
100100
################################################################################
101-
FROM platform as kernel-arm64
101+
FROM platform AS kernel-arm64
102102
COPY --from=kernel-source /root/linux-6.8.7 /root/linux-6.8.7
103103
WORKDIR /root/linux-6.8.7
104104

@@ -118,7 +118,7 @@ RUN ARCH=arm64 \
118118
################################################################################
119119
# KERNEL-x86 #
120120
################################################################################
121-
FROM platform as kernel-x86
121+
FROM platform AS kernel-x86
122122
COPY --from=kernel-source /root/linux-6.8.7 /root/linux-6.8.7
123123
WORKDIR /root/linux-6.8.7
124124

@@ -135,7 +135,7 @@ RUN ARCH=i386 \
135135
################################################################################
136136
# KERNEL-x64 #
137137
################################################################################
138-
FROM platform as kernel-x64
138+
FROM platform AS kernel-x64
139139
COPY --from=kernel-source /root/linux-6.8.7 /root/linux-6.8.7
140140
WORKDIR /root/linux-6.8.7
141141

@@ -151,7 +151,7 @@ RUN make \
151151
################################################################################
152152
# BUSYBOX SOURCE #
153153
################################################################################
154-
FROM platform as busybox-source
154+
FROM platform AS busybox-source
155155
RUN wget \
156156
-O /tmp/busybox-1.36.1.tar.bz2 \
157157
https://busybox.net/downloads/busybox-1.36.1.tar.bz2
@@ -161,7 +161,7 @@ RUN tar -C /root/ -j -x -v -f /tmp/busybox-1.36.1.tar.bz2
161161
################################################################################
162162
# BUSYBOX-ARM32 #
163163
################################################################################
164-
FROM platform as busybox-arm32
164+
FROM platform AS busybox-arm32
165165
COPY --from=busybox-source /root/busybox-1.36.1 /root/busybox-1.36.1
166166
WORKDIR /root/busybox-1.36.1
167167
RUN mkdir build
@@ -182,7 +182,7 @@ RUN make \
182182
################################################################################
183183
# BUSYBOX-ARM64 #
184184
################################################################################
185-
FROM platform as busybox-arm64
185+
FROM platform AS busybox-arm64
186186
COPY --from=busybox-source /root/busybox-1.36.1 /root/busybox-1.36.1
187187
WORKDIR /root/busybox-1.36.1
188188
RUN mkdir build
@@ -205,7 +205,7 @@ RUN make \
205205
################################################################################
206206
# BUSYBOX-x86 #
207207
################################################################################
208-
FROM platform as busybox-x86
208+
FROM platform AS busybox-x86
209209
COPY --from=busybox-source /root/busybox-1.36.1 /root/busybox-1.36.1
210210
WORKDIR /root/busybox-1.36.1
211211
RUN mkdir build
@@ -227,7 +227,7 @@ RUN make \
227227
################################################################################
228228
# BUSYBOX-x64 #
229229
################################################################################
230-
FROM platform as busybox-x64
230+
FROM platform AS busybox-x64
231231
COPY --from=busybox-source /root/busybox-1.36.1 /root/busybox-1.36.1
232232
WORKDIR /root/busybox-1.36.1
233233
RUN mkdir build
@@ -246,7 +246,7 @@ RUN make \
246246
################################################################################
247247
# TARGET #
248248
################################################################################
249-
FROM platform as target
249+
FROM platform AS target
250250
COPY assets/target/target.c /root/target.c
251251
COPY assets/target/module.c /root/module.c
252252
RUN mkdir /root/x64
@@ -327,15 +327,15 @@ RUN aarch64-none-linux-gnu-gcc \
327327
################################################################################
328328
# FRIDA SOURCE #
329329
################################################################################
330-
FROM platform as frida-source
330+
FROM platform AS frida-source
331331
WORKDIR /root/
332-
ENV TAG=c0fb9c6
332+
ENV TAG=fd5a2746804336e0a84c97317dc49594990ab67a
333333
RUN git clone https://github.com/frida/frida-core.git
334334

335335
################################################################################
336336
# FRIDA-arm32 #
337337
################################################################################
338-
FROM platform as frida-arm32
338+
FROM platform AS frida-arm32
339339
COPY --from=frida-source /root/frida-core /root/frida-core
340340
WORKDIR /root/frida-core
341341
RUN CC=arm-none-linux-gnueabihf-gcc \
@@ -533,7 +533,7 @@ RUN cat \
533533
################################################################################
534534
# FRIDA-arm32-sf #
535535
################################################################################
536-
FROM platform as frida-arm32-sf
536+
FROM platform AS frida-arm32-sf
537537
COPY --from=frida-source /root/frida-core /root/frida-core
538538
COPY --from=cpp-arm32 /opt/x-tools/arm-linux-gnueabi /opt/x-tools/arm-linux-gnueabi
539539
WORKDIR /root/frida-core
@@ -557,7 +557,7 @@ RUN make
557557
################################################################################
558558
# FRIDA-arm64 #
559559
################################################################################
560-
FROM platform as frida-arm64
560+
FROM platform AS frida-arm64
561561
COPY --from=frida-source /root/frida-core /root/frida-core
562562
WORKDIR /root/frida-core
563563
RUN CC=aarch64-none-linux-gnu-gcc \
@@ -572,7 +572,7 @@ RUN make
572572
################################################################################
573573
# FRIDA-x86 #
574574
################################################################################
575-
FROM platform as frida-x86
575+
FROM platform AS frida-x86
576576
COPY --from=frida-source /root/frida-core /root/frida-core
577577
WORKDIR /root/frida-core
578578
RUN ./configure --host linux-x86
@@ -581,7 +581,7 @@ RUN make
581581
################################################################################
582582
# FRIDA-x64 #
583583
################################################################################
584-
FROM platform as frida-x64
584+
FROM platform AS frida-x64
585585
COPY --from=frida-source /root/frida-core /root/frida-core
586586
WORKDIR /root/frida-core
587587
RUN ./configure --host linux-x86_64
@@ -590,7 +590,7 @@ RUN make
590590
################################################################################
591591
# INITRD-BASE #
592592
################################################################################
593-
FROM platform as initrd-base
593+
FROM platform AS initrd-base
594594
WORKDIR /root/
595595
RUN mkdir /root/initramfs/
596596
WORKDIR /root/initramfs/
@@ -728,7 +728,7 @@ RUN find . | cpio -o --format=newc -R root:root > /root/initramfs-x64.img
728728
################################################################################
729729
# CSHELL #
730730
################################################################################
731-
FROM platform as cshell
731+
FROM platform AS cshell
732732
COPY --from=kernel-arm32 /root/linux-6.8.7/build/arch/arm/boot/zImage /root/zImage-arm32
733733
COPY --from=kernel-arm64 /root/linux-6.8.7/build/arch/arm64/boot/Image.gz /root/zImage-arm64
734734
COPY --from=kernel-x64 /root/linux-6.8.7/build/arch/x86_64/boot/bzImage /root/bzImage-x64
@@ -754,23 +754,23 @@ WORKDIR /root/
754754
################################################################################
755755
# CSHELL-ARM32 #
756756
################################################################################
757-
FROM cshell as cshell-arm32
757+
FROM cshell AS cshell-arm32
758758
ENTRYPOINT ["/bin/vm-arm32"]
759759

760760
################################################################################
761761
# CSHELL-ARM64 #
762762
################################################################################
763-
FROM cshell as cshell-arm64
763+
FROM cshell AS cshell-arm64
764764
ENTRYPOINT ["/bin/vm-arm64"]
765765

766766
################################################################################
767767
# CSHELL-x86 #
768768
################################################################################
769-
FROM cshell as cshell-x86
769+
FROM cshell AS cshell-x86
770770
ENTRYPOINT ["/bin/vm-x86"]
771771

772772
################################################################################
773773
# CSHELL-x64 #
774774
################################################################################
775-
FROM cshell as cshell-x64
775+
FROM cshell AS cshell-x64
776776
ENTRYPOINT ["/bin/vm-x64"]

0 commit comments

Comments
 (0)