-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Thanks a lot for your work on analysing FinSpy/FinFisher!
I wondered how to scan an Android device for those spyware apps. Probably you'll have to pull all apks from the device first and run FinSpy-Tools/Android/finspyCfgExtract.py as well as the yara rules against them afterwards, right?
I came up with a small shell script to automate this. Feel free to add it to your repo/readme in case you consider it useful:
#!/bin/sh
if [ ! -d "FinSpy-Tools" ]; then
echo "Error: run 'git clone https://github.com/devio/FinSpy-Tools.git' first" >&2
exit 1
fi
if ! adb root; then
echo "Error: failed to become root on Android device" >&2
exit 1
fi
apks="$(adb shell 'find / -name *.apk 2>&1|grep -v -e "No such file or directory"')"
mkdir -p apks
for apk in $apks; do
dir="$(dirname $apk)"
mkdir -p "apks/$dir"
adb pull "$apk" "apks/$dir/"
python3 FinSpy-Tools/Android/finspyCfgExtract.py "$apk"
yara FinSpy-Tools/Yara-rules/Android_FinSpy.yar "$apk"
doneMetadata
Metadata
Assignees
Labels
No labels