first commit
This commit is contained in:
commit
cd1e91bb99
287 changed files with 86425 additions and 0 deletions
33
rasta_exp/docker/amandroid/home_build/Dockerfile
Normal file
33
rasta_exp/docker/amandroid/home_build/Dockerfile
Normal file
|
@ -0,0 +1,33 @@
|
|||
FROM ubuntu:22.04
|
||||
|
||||
# RUN sed -i -e "s/archive.ubuntu.com/old-releases.ubuntu.com/g" /etc/apt/sources.list
|
||||
|
||||
RUN apt-get update && apt-get install -y git time unzip wget
|
||||
|
||||
RUN mkdir /workspace
|
||||
RUN git init /workspace/amandroid && \
|
||||
cd /workspace/amandroid && \
|
||||
git remote add origin https://github.com/arguslab/Argus-SAF.git && \
|
||||
git fetch --depth=1 origin v3.2.0 && \
|
||||
git reset --hard FETCH_HEAD
|
||||
|
||||
# Avoid downloading this each time we launch a new docker
|
||||
RUN mkdir -p /workspace/.amandroid_stash && \
|
||||
cd /workspace/.amandroid_stash && \
|
||||
wget https://www.fengguow.dev/resources/amandroid.zip && \
|
||||
wget https://www.fengguow.dev/resources/amandroid.checksum && \
|
||||
unzip amandroid.zip
|
||||
|
||||
RUN apt-get update && apt-get install -y openjdk-8-jdk
|
||||
|
||||
RUN cd /workspace/amandroid && \
|
||||
sed -i 's/val remotec = getRemoteChecksum("amandroid.checksum")/\/\/val remotec = getRemoteChecksum("amandroid.checksum")/' /workspace/amandroid/amandroid/src/main/scala/org/argus/amandroid/core/AndroidGlobalConfig.scala && \
|
||||
sed -i '46i\\ val remotec = localc' /workspace/amandroid/amandroid/src/main/scala/org/argus/amandroid/core/AndroidGlobalConfig.scala && \
|
||||
sed -i '164i javacOptions in jawa ++= Seq("-encoding", "UTF-8")' /workspace/amandroid/build.sbt
|
||||
|
||||
RUN cd /workspace/amandroid && \
|
||||
./tools/bin/sbt -Duser.home=/workspace clean compile assembly test
|
||||
|
||||
RUN ln -s /workspace/amandroid/target/scala-2.12/argus-saf-3.2.0-assembly.jar /workspace/amandroid/argus-saf.jar
|
||||
|
||||
COPY run.sh /
|
20
rasta_exp/docker/amandroid/home_build/run.sh
Executable file
20
rasta_exp/docker/amandroid/home_build/run.sh
Executable file
|
@ -0,0 +1,20 @@
|
|||
APK_FILENAME=$1
|
||||
|
||||
export TIME="time: %e
|
||||
kernel-cpu-time: %S
|
||||
user-cpu-time: %U
|
||||
max-rss-mem: %M
|
||||
avg-rss-mem: %t
|
||||
avg-total-mem: %K
|
||||
page-size: %Z
|
||||
nb-major-page-fault: %F
|
||||
nb-minor-page-fault: %R
|
||||
nb-fs-input: %I
|
||||
nb-fs-output: %O
|
||||
nb-socket-msg-received: %r
|
||||
nb-socket-msg-sent: %s
|
||||
nb-signal-delivered: %k
|
||||
exit-status: %x"
|
||||
|
||||
|
||||
/usr/bin/time -o /mnt/report -q /usr/bin/timeout --kill-after=20s ${TIMEOUT} java ${JAVA_PARAM} -Duser.home=/workspace -jar /workspace/amandroid/argus-saf.jar taint -a COMPONENT_BASED -o /mnt/out /mnt/${APK_filename} > /mnt/stdout 2> /mnt/stderr
|
Loading…
Add table
Add a link
Reference in a new issue