File tree Expand file tree Collapse file tree 3 files changed +56
-0
lines changed
Expand file tree Collapse file tree 3 files changed +56
-0
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,17 @@ USER 1000
104104WORKDIR $HOME
105105RUN pip3 install objection
106106
107+ # lamda
108+ USER 0
109+ RUN apt install -y wget
110+ USER 1000
111+ WORKDIR $HOME
112+ ENV FILENAME_LAMDA_SETUP="lamda_setup.sh"
113+ ENV FILENAME_LAMDA="arm64-v8a.tar.gz-install.sh"
114+ ENV FILENAME_LAMDA_URL="https://github.com/rev1si0n/lamda/releases/download/3.0.47/arm64-v8a.tar.gz-install.sh"
115+ RUN wget $FILENAME_LAMDA_URL
116+ COPY "$FILENAME_LAMDA_SETUP" $HOME
117+
107118# clean
108119USER 0
109120RUN apt autoremove --purge -y && apt clean && apt autoclean && rm -rf /var/lib/apt/lists/*
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ Docker image for Android reverse engineering tools. Android逆向工程工具Doc
10105 . V1.4: Add frida-dexdump
11116 . V1.5: Add frida-server, Bash script to setup frida-server
12127 . V1.6: Add Objection
13+ 8 . V1.7: Add Lamda
1314
1415# Usage
1516
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ function lamda_server_start() {
4+ echo Lamda starting
5+ # adb shell "nohup 2>&1 1&>/dev/null sh /data/local/tmp/arm64-v8a/bin/launch.sh" &
6+ adb shell << EOF
7+ sh /data/local/tmp/arm64-v8a/bin/launch.sh
8+ exit
9+ EOF
10+ }
11+
12+ function lamda_server_setup_then_start() {
13+ echo Lamda setup
14+ adb push $HOME /$FILENAME_LAMDA /data/local/tmp
15+ # adb shell "nohup 2>&1 1&>/dev/null sh /data/local/tmp/$FILENAME_LAMDA" &
16+ adb shell << EOF
17+ sh /data/local/tmp/$FILENAME_LAMDA
18+ exit
19+ EOF
20+ }
21+
22+ function lamda_server_setup() {
23+ local exists=` adb shell " [ -f /data/local/tmp/arm64-v8a/bin/launch.sh ] || echo 1" `
24+ if [ -z " $exists " ]; then
25+ echo " Lamda exists" ;
26+ lamda_server_start
27+ else
28+ echo " Lamda doesn't exist" ;
29+ lamda_server_setup_then_start
30+ fi
31+ }
32+
33+ function lamda_server_clean() {
34+ rm -rf /data/local/tmp/arm64-v8a
35+ rm -rf /data/usr
36+ }
37+
38+ adb root
39+
40+ lamda_server_setup &
41+ pip3 install -U lamda -q 1> /dev/null
42+ echo Waiting lamda server up...
43+ wait
44+
You can’t perform that action at this time.
0 commit comments