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 copy RAT smali files #102

Closed ijadmy97 closed 7 years ago

ijadmy97 commented 7 years ago

i have a problem using this tool:

im using metasploit4.14.5

[+] Handle the payload via resource script: msfconsole -r backdoor-apk.rc [] Generating RAT APK file...done. [] Decompiling RAT APK file...done. [] Decompiling original APK file...done. [] Merging permissions of original and payload projects...done. [] Running proguard on RAT APK file...done. [] Decompiling obfuscated 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. [!] Failed to copy RAT smali files

in run.log

mkdir: created directory ‘/root/backdoor-apk/backdoor-apk/original/smali/io’ mkdir: created directory ‘/root/backdoor-apk/backdoor-apk/original/smali/io/pa’ mkdir: created directory ‘/root/backdoor-apk/backdoor-apk/original/smali/io/pa/listserv’ cp: cannot stat ‘/root/backdoor-apk/backdoor-apk/payload/smali/com/metasploit/stage/MainBroadcastReceiver.smali’: No such file or directory Forcing cleanup due to a failure or error state!

dana-at-cp commented 7 years ago

@ijadmy97 Something may have changed in Metasploit framework 4.14.5. I'll look into it.

dana-at-cp commented 7 years ago

@ijadmy97 I'm running Metasploit framework 4.14.11 and everything seems normal. Make sure you drop the APK in the same directory where backdoor-apk.sh resides.