-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathlazyDroid.sh
executable file
·693 lines (613 loc) · 20.9 KB
/
lazyDroid.sh
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
#!/usr/bin/env bash
# lazyDroid
# 2017 By Dani Martinez (@dan1t0) / NCCGroup
VERSION="0.4.1"
#######################
# CHANGE THIS #
#######################
APKTOOL="apktool"
JARSIGNER="jarsigner"
ADB="adb"
AAPT="aapt"
KEYSTORE="keystore.key"
KEYALIAS="danito"
MYSHELL="gnome-terminal"
#######################
RED='\033[0;31m'
NC='\033[0m'
YEL='\033[0;33m'
GREEN='\033[0;32m'
function checkfile {
if [ ! -f "${1}" ]
then
echo "${1} not found!. Press Enter to continue"
read kk
menu # it should be changed by a return, but it must be handled where it is used (e.g. sign, set_something, etc.)
fi
}
function sign {
APK_FULL_PATH=$1
APK=$(basename $APK_FULL_PATH)
APK_PATH=$(dirname $APK_FULL_PATH)
APK_DIR=$(sed 's/.apk//I' <<< $APK)
NEW_APK=${APK_PATH}/${APK_DIR}_signed.apk
echo "---> Signing ${APK}..."
cp ${APK_FULL_PATH} ${NEW_APK}
$JARSIGNER -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore $KEYSTORE ${NEW_APK} $KEYALIAS > /dev/null
if [ $? -eq "0" ]
then
echo -e "---> ${NEW_APK} Created and signed sucessfully\n"
install ${NEW_APK}
else
echo "---> Something was wrong trying to sign the app. Press Enter to continue"
rm ${NEW_APK}
fi
read kk
}
function sign2 {
echo -n "- Enter apk: "
read APK_FULL_PATH
checkfile "${APK_FULL_PATH}"
sign "${APK_FULL_PATH}"
}
function install {
echo -n "Do you want to install $(basename ${1})? [y/n] "
read kk
case "$kk" in
[yY])
echo ""
${ADB} install -r ${1}
echo -ne "\nPress Enter to continue..."
read kk
;;
*)
:
esac
}
function build {
if [ ! -d "${1}" ];
then
echo "- \"${1}\" directory not found!"
else
echo -n "---> Building apk: ${2} ... "
${APKTOOL} b $1 -o $2 > /dev/null
if [ $? -eq "0" ]
then
echo "---> DONE"
echo -n "Do you want to delete the \"${1}\" folder? [y/n] "
read kk
case "$kk" in
[yY])
rm -r ${1}
echo -n "Folder deleted! Press Enter to continue... "
;;
*)
:
esac
else
echo "---> Something was wrong trying to build the apk. Press Enter to continue"
fi
fi
read kk
}
function build2 {
echo -n "- Enter app folder to build: "
read PATH_build
build "${PATH_build}" "${PATH_build}.apk"
}
function set_something {
value=$1
echo -n "- Enter apk: "
read APK_FULL_PATH
checkfile "$APK_FULL_PATH"
APK=$(basename $APK_FULL_PATH)
APK_PATH=$(dirname $APK_FULL_PATH)
APK_DIR=$(sed 's/.apk//I' <<< $APK)
NEW_APK=${APK_PATH}/${APK_DIR}_signed.apk
echo "- Unpacking $APK_FULL_PATH ... "
$APKTOOL d $APK_FULL_PATH -o ${APK_DIR} > /dev/null
if [ $? -eq "0" ]
then
echo -e "---> DONE\n"
else
echo "---> Something was wrong trying to change the ${value} value. Press Enter to continue"
read kk
return
fi
cd ${APK_DIR}
echo "- Checking ${value} flag ..."
grep -i "${value}=\"true\"" AndroidManifest.xml > /dev/null
if [ $? -eq "0" ]
then
echo "---> The ${value} value is already set to true. Nothing to do here"
cd ..
rm -rf ${APK_DIR}
else
grep -i "${value}=\"false\"" AndroidManifest.xml > /dev/null
if [ $? -eq "0" ]
then
echo "---> ${value}=\"false\" Found"
echo "---> Changing value to true"
if [ "${value}" == "debuggable" ]
then
sed -i 's/debuggable="false"/debuggable="true"/g' AndroidManifest.xml
else
sed -i 's/allowBackup="false"/allowBackup="true"/g' AndroidManifest.xml
fi
if [ $? -eq "0" ]
then
echo "---> Flag ${value}=true was changed successfully"
cd ..
build "${APK_DIR}" "${APK_PATH}/${APK_DIR}_${value}.apk"
else
echo "---> Something was wrong trying to change the ${value} value. Press Enter to continue"
fi
else
echo "---> The ${value} flag was not found"
if [ "${value}" == "debuggable" ]
then
sed -i 's/<application/<application android:debuggable="true"/g' AndroidManifest.xml
else
sed -i 's/<application/<application android:allowBackup="true"/g' AndroidManifest.xml
fi
if [ $? -eq "0" ]
then
echo "---> Flag ${value}=true was added successfully"
cd ..
build "${APK_DIR}" "${APK_PATH}/${APK_DIR}_${value}.apk"
else
echo "---> Something was wrong trying to add the flag ${value}. Press Enter to continue"
fi
fi
fi
read kk
echo ""
}
function smartLog {
echo -n "Execute the app and enter the name: "
read packageName
${ADB} shell ps | grep $packageName > /tmp/pids
PIDS="$(wc -l /tmp/pids | cut -d" " -f1)"
DATE=$(date +"%Y%m%d%H%M%S")
FOLDER=$PWD
if [ $PIDS = "0" ]
then
echo "Package not found"
read kk
else
if [ "$PIDS" -gt "0" ]
then
if [ "${PIDS}" -gt "1" ]
then
echo -e "\n PID Package Name"
cat /tmp/pids | awk '{print $2 " " $9}'
echo -ne "\nEnter the PID: "
read PIDD_
grep " ${PIDD_} " /tmp/pids > /dev/null
if [ $? -eq "1" ]
then
echo "PID not found"
read kk
else
echo -e "\n PID Package Name"
cat /tmp/pids | grep ${PIDD_}| awk '{print $2 " " $9}'
echo
packageName=$(cat /tmp/pids | grep ${PIDD_} | awk '{print $9}'| tr -d '\r')
echo "Log stored on '${FOLDER}/${packageName}_${DATE}.log'"
echo -n "Press Enter to continue... "
read kk
#FIXME: It seems it is not working well..
${MYSHELL} -e "${ADB} logcat | grep ${PIDD_} | tee -a "${FOLDER}/${packageName}_${DATE}.log"" &
fi
else
PIDD_="$(cat /tmp/pids | awk '{print $2}')"
packageName=$(cat /tmp/pids | grep ${PIDD_} | awk '{print $9}'| tr -d '\r')
echo "Log stored on '${FOLDER}/${packageName}_${DATE}.log'"
echo -n "Press Enter to continue... "
read kk
#FIXME: It seems it is not working well..
${MYSHELL} -e "${ADB} logcat | grep ${PIDD_} | tee -a "${FOLDER}/${packageName}_${DATE}.log"" &
fi
rm /tmp/pids
fi
fi
}
function extractApp {
INIT_APPS=/tmp/init_apps
END_APPS=/tmp/end_apps
echo "---> Extracting the installed apps... "
${ADB} shell pm list packages | cut -d: -f2- > ${INIT_APPS}
napp=$(wc -l ${INIT_APPS} | cut -d" " -f1)
echo "---> $napp Apps installed"
echo -n "---> Install the app from Market and press enter... "
read kk
echo "---> Extracting the new app installed ... "
${ADB} shell pm list packages | cut -d: -f2- > ${END_APPS}
newapp=$(grep -v -F -x -f ${INIT_APPS} ${END_APPS} | tr -d '\r' )
if [ -z "$newapp" ]; then
echo "---> A new App is not detected"
rm -f ${END_APPS}
read kk
return
fi
echo "---> DONE"
echo "---> New app detected: ${newapp}"
pathAPK=$(${ADB} shell pm path ${newapp} | cut -d : -f2- | tr -d '\r')
echo "---> The apk is stored in ${pathAPK}"
rm -f ${END_APPS}
rm -f ${INIT_APPS}
echo -n "Do you want to download the apk? [y/n] "
read kk
case "$kk" in
[yY])
#TODO: Does it work without "su"?
${ADB} shell su -c "cp ${pathAPK} /sdcard/${newapp}.apk"
${ADB} pull /sdcard/${newapp}.apk . > /dev/null
checkfile ${newapp}.apk
#TODO: The /sdcard/{newapp}.apk should be removed
echo "---> ${newapp}.apk downloaded sucessfully. Press Enter to Continue..."
read kk
;;
*)
:
esac
}
function getSnapshot {
APPS=/tmp/apps
echo -e "\nWhat do you want to download?"
echo " 1) Application data folder \"/data/data/..\" - (root required)"
echo " 2) /sdcard/ folder"
echo " 3) Other mobile folder"
echo -ne "\nSelect an option: "
read opt
echo ""
case "$opt" in
1)
echo "---> Extracting the installed apps... "
${ADB} shell pm list packages | cut -d: -f2- > ${APPS}
napp=$(wc -l ${APPS} | cut -d" " -f1)
echo -e "---> $napp Apps installed\n"
echo -n "Enter the App name (Press Enter to list all): "
read apk_name
if [ $(echo ${apk_name} | wc -c ) -eq "1" ]
then
cat ${APPS}
else
grep ${apk_name} ${APPS} > /dev/null
if [ $? -eq "0" ]
then
echo -e "\n- Apps found:"
cat ${APPS} | grep ${apk_name}
else
echo "- App not found"
read kk
return
fi
fi
echo -ne "\nSelect the Package to get the snapshot: "
read app
grep -w ${app} ${APPS} > /dev/null
if [ $? -eq "1" ]
then
rm ${APPS}
echo "Package not found. Press Enter to continue..."
read kk
return
else
echo "Downloading App ..."
${ADB} shell su -c "cp -r /data/data/${app} /sdcard/" > /dev/null
${ADB} pull "/sdcard/${app}" . > /dev/null
${ADB} shell "rm -rf /sdcard/${app}"
DATE=$(date +"%Y%m%d%H%M%S")
mv ${app} ${app}_${DATE}
if [ $? -eq "0" ]
then
echo "App data downloaded sucessfully"
echo "Folder ${app}_${DATE} created sucessfully."
echo -n "Press Enter to continue... "
else
echo "---> Something was wrong. Press Enter to continue"
fi
fi
rm ${APPS} 2> /dev/null
;;
2)
echo -e "\nDownloading /sdcard/..."
${ADB} pull "/sdcard/" . > /dev/null
DATE=$(date +"%Y%m%d%H%M%S")
mv sdcard sdcard_${DATE}
if [ $? -eq "0" ]
then
echo -e "---> Folder sdcard_${DATE} created sucessfully.\n"
echo -n "Press Enter to continue... "
else
echo "---> Something was wrong. Press Enter to continue"
fi
;;
3)
echo -ne "\nEnter the folder to download: "
read folder
DATE=$(date +"%Y%m%d%H%M%S")
#FIXME: It could require root privileges
${ADB} pull "${folder}" . > /tmp/log_${DATE}
grep "does not exist" /tmp/log_${DATE} > /dev/null
if [ $? ]
then
echo -n "Error: $(cat /tmp/log_${DATE} | sed 's/${ADB}: //' | sed 's/error: //')"
echo -n "Press Enter to Continue..."
else
echo "---> ${folder} downloaded sucessfully"
mv ${folder} ${folder}_${DATE}
echo -e "---> Folder ${folder}_${DATE} created sucessfully.\n"
echo -n "Press Enter to continue... "
fi
rm /tmp/log_${DATE}
;;
*)
echo -n "$option Invalid option, press Enter to continue... ";
;;
esac
read kk
}
function compare {
COUNTER=0
NFILES=0
MFILES=0
NFOLDER=0
DFILES=0
echo -n "[0] First folder to compare: "
read firstf
if [ ! -d "${firstf}" ]; then
echo -n "${firstf} Folder not found. Press Enter to continue..."
read kk
return
fi
echo -n "[1] Second folder to compare: "
read secondf
if [ ! -d "${secondf}" ]; then
echo -n "${secondf} Folder not found. Press Enter to continue..."
read kk
return
fi
diff --brief -Nr ${firstf} ${secondf} > /tmp/different
#FIXME: diff tool language output
cat /tmp/different | grep "Files" | grep "differ" | awk '{print $2 " " $4}' > /tmp/diff_files
while read line; do
COUNTER=$((COUNTER+1))
file1=$(echo "$line" | cut -d" " -f1)
file2=$(echo "$line" | cut -d" " -f2)
if [[ -f "${file1}" && -f "${file2}" ]]
then
MFILES=$((MFILES+1))
lines_f1=$(wc -l ${file1} | cut -d" " -f1)
lines_f2=$(wc -l ${file2} | cut -d" " -f1)
if [ ${lines_f1} -eq "0" ]; then
lines_f1=1
fi
if [ ${lines_f2} -eq "0" ]; then
lines_f2=1
fi
size_f1=$(ls -lh ${file1} | awk '{print $5}')
size_f2=$(ls -lh ${file2} | awk '{print $5}')
echo -e " ${COUNTER} ${YEL}modified!${NC}"
echo "[0] ${file1} (${lines_f1} lines) (size ${size_f1})"
echo "[1] ${file2} (${lines_f2} lines) (size ${size_f2})"
echo -e "[x] File Type: $(file ${file1} | cut -d" " -f2,3,4,5,6,7,8,9,10,11,12)\n"
else
if [ -f "${file1}" ]
then
DFILES=$((DFILES+1))
lines_f1=$(wc -l ${file1} | cut -d" " -f1)
size_f1=$(ls -lh ${file1} | awk '{print $5}')
if [ ${lines_f1} -eq "0" ]; then
lines_f1=1
fi
echo -e " ${COUNTER} ${RED}deleted!${NC}"
echo "[0] ${file1} (${lines_f1} lines) (size ${size_f1})"
echo -e "[x] File Type: $(file ${file1} | cut -d" " -f2,3,4,5,6,7,8,9,10,11,12)\n"
else
if [ -f "${file2}" ]
then
NFILES=$((NFILES+1))
lines_f2=$(wc -l ${file2} | cut -d" " -f1)
size_f2=$(ls -lh ${file2} | awk '{print $5}')
if [ ${lines_f2} -eq "0" ]; then
lines_f2=1
fi
echo -e " ${COUNTER} ${GREEN}created!${NC}"
echo "[1] ${file2} (${lines_f2} lines) (size ${size_f2})"
echo -e "[x] File Type: $(file ${file2} | cut -d" " -f2,3,4,5,6,7,8,9,10,11,12)\n"
fi
fi
fi
done < /tmp/diff_files
diff --brief -r ${firstf} ${secondf} > /tmp/different
cat /tmp/different| grep Only | awk '{gsub(/: /,""); print $3$4}' > /tmp/tocheck
echo "- Sumary -"
echo "Created files: ${NFILES}"
echo "Deleted files: ${DFILES}"
echo "Modified files ${MFILES}"
echo -e "Total Changes: ${COUNTER}\n\n"
echo "- Created Folders -"
while read line; do
file "$line" | grep ": directory" | cut -d":" -f1
done < /tmp/tocheck
rm /tmp/different
rm /tmp/tocheck
rm /tmp/diff_files
echo -n "\nPress Enter to continue..."
read kk
}
function frida_lib {
#FIXME: realpath command does not exist by default
A=`dirname $(realpath $0)`
if [ ! -d "${A}/frida_libs" ]; then
echo "frida_libs Folder not found. Please execute getfridalibs.sh and come back"
echo -n "Press Enter to continue..."
read kk
return
fi
echo -e "\nWhat architecture is running on your device?"
echo " 1) arm64"
echo " 2) arm64-v8a"
echo " 3) armeabi"
echo " 4) armeabi-v7a"
echo " 5) x86_64"
echo " 6) x86"
echo -e " 7) Try to detect this via ADB\n"
echo -n "Select an option: "
read opt
echo ""
OPTS=(arm64 arm64-v8a armeabi armeabi-v7a x86_64 x86)
if [ "$opt" -ge 1 -a "$opt" -le 6 ]; then
arch=${OPTS[$((opt-1))]}
elif [ "$opt" -eq 7 ]; then
echo -n "Trying to extract the info from ADB... "
arch=$(${ADB} shell "getprop ro.product.cpu.abi" | tr -d '\r')
brand=$(${ADB} shell "getprop ro.product.brand" | tr -d '\r')
model=$(${ADB} shell "getprop ro.product.model" | tr -d '\r')
echo "${brand} ${model} ${arch}"
else
echo -n "Invalid option, press Enter to continue... "
read kk
return
fi
echo -n "Architecture: ${arch}. Is it correct? [y/n] "
read kk
case "$kk" in
[yY])
echo -n "Select the APK to inject the frida gadget: "
read APK
checkfile "${APK}"
package=$(aapt dump badging ${APK} |grep "^package: name=" |cut -f 2 -d "'")
if [ -z "$package" ]; then
echo "---> ERROR: Can't get package name from APK"
read kk
return
fi
echo -e "\n---> Package: ${package}"
launchable_activity=$(aapt dump badging ${APK} |grep "^launchable-activity: name=" |cut -f 2 -d "'")
if [ -z "$launchable_activity" ]; then
echo "---> ERROR: Can't get main activity"
read kk
return
fi
echo "---> Launchable-activity: $launchable_activity"
echo -n "---> Unpacking ${APK}... "
APK_DIR=$(sed 's/.apk//I' <<< $APK)
${APKTOOL} d -f ${APK} -o ${APK_DIR}> /dev/null
echo "---> DONE"
aapt dump permissions ${APK} |grep -i "'android.permission.INTERNET'" >/dev/null
if [ $? != 0 ]; then
echo "---> Injecting android.permission.INTERNET"
awk '/<manifest / { print; print "<uses-permission android:name=\"android.permission.INTERNET\"/>"; next }1' ${APK_DIR}/AndroidManifest.xml > ${APK_DIR}/AndroidManifest.xml.1
mv ${APK_DIR}/AndroidManifest.xml.1 ${APK_DIR}/AndroidManifest.xml
else
echo "---> Already has INTERNET permission"
fi
activity_path=$(echo ${launchable_activity} |sed -e "s:\.:/:g")
file_to_patch="${APK_DIR}/smali/${activity_path}.smali"
if [ ! -f "${file_to_patch}" ]; then
echo "---> ERROR: Can't find file ${file_to_patch}"
read kk
return
fi
echo "---> Patching ${file_to_patch}"
line=$(cat ${file_to_patch} |grep -n "^# .*methods$" |head -n 1 |cut -f 1 -d ":")
if [ -z "$line" ]; then
echo "ERROR: Can't find line to patch"
read kk
return
fi
head -n ${line} ${file_to_patch} > ${file_to_patch}.1
cat >> ${file_to_patch}.1 <<-EOF
.method static constructor <clinit>()V
.locals 1
.prologue
const-string v0, "frida-gadget"
invoke-static {v0}, Ljava/lang/System;->loadLibrary(Ljava/lang/String;)V
return-void
.end method
EOF
lines=$(cat ${file_to_patch} |wc -l)
count=$(( $lines - $line ))
tail -n ${count} ${file_to_patch} >> ${file_to_patch}.1
mv ${file_to_patch}.1 ${file_to_patch}
echo -n "---> Injecting the shared libraries..."
mkdir -p ${APK_DIR}/lib/
cp -r frida_libs/${arch}/ ${APK_DIR}/lib/
echo " DONE"
echo ""
build "${APK_DIR}" "${APK_DIR}_frida.apk"
if [ ! -f "${APK_DIR}_frida.apk" ]; then
echo "---> ERROR: failed to rebuild the patched APK"
read kk
return
fi
echo "---> Patched APK: ${APK_DIR}_frida.apk"
sign "${APK_DIR}_frida.apk"
echo -e "\n---> Now execute the APK and run 'frida -U Gadget' or ..."
echo -n "Do you want to launch the app and the frida agent? [y/n] "
read resp
case "$resp" in
[yY])
adb shell "am start -n ${package}/${launchable_activity}"
sleep 2
${MYSHELL} -e "frida -U Gadget" &
;;
*)
:
esac
echo -n "---> Press enter to continue "
read kk
;;
*)
:
esac
}
function menu {
echo -e "LazyDroid ${VERSION} by Dani Martinez @dan1t0 - NCC Group\n\n"
echo "Select an option: "
echo " 1) Set apk to debuggable=true"
echo " 2) Set apk to allowBackup=true"
echo " 3) Sign apk"
echo " 4) Build apk"
echo " 5) Extract app log from Android device"
echo " 6) Extract apk file to an installed application from Market"
echo " 7) Download installed application data snapshot, /sdcard/ or mobile folder"
echo " 8) Compare two different snapshots"
echo -e " 9) Insert Frida gadget in the APK\n"
echo -e " 0) Exit\n"
echo -n "Select one option [1 - 9] "
read option
echo
case $option in
1) echo "Option 1 selected:";
set_something "debuggable";;
2) echo "Option 2 selected:";
set_something "allowBackup";;
3) echo "Option 3 selected";
sign2;;
4) echo "Option 4 selected";
build2;;
5) echo "Option 5 selected";
smartLog;;
6) echo "Option 6 selected";
extractApp;;
7) echo "Option 7 selected";
getSnapshot;;
8) echo "Option 8 selected";
compare;;
9) echo "Option 9 selected";
frida_lib;;
0) echo "See you soon!! :)";
exit 1;;
*) echo -n "Invalid option, press Enter to continue... ";
read foo;;
esac
}
while :
do
clear
menu
done