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 locate smali file to hook #191

Open alexanderajju opened 4 years ago

alexanderajju commented 4 years ago
      ________
     / ______ \
     || _  _ ||
     ||| || |||          AAAAAA   PPPPPPP   KKK  KKK
     |||_||_|||         AAA  AAA  PPP  PPP  KKK KKK
     || _  _o|| (o)     AAA  AAA  PPP  PPP  KKKKKK
     ||| || |||         AAAAAAAA  PPPPPPPP  KKK KKK
     |||_||_|||         AAA  AAA  PPP       KKK  KKK
     ||______||         AAA  AAA  PPP       KKK  KKK
    /__________\

____|__|__ /____\ |____| Dana James Traversie

[] Running backdoor-apk.sh v0.2.4a on Mon 06 Jul 2020 04:46:49 PM IST [+] 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: 3 [?] Please enter an LHOST value: my ip [?] Please enter an LPORT value: port [+] 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. [!] Failed to locate smali file to hook

Aholicknight commented 4 years ago

Having this issue also. Does anyone know how to fix it?

hartmanfrost commented 3 years ago

Just replace smali_file_to_hook=$MY_PATH/original/smali/$android_class.smali to smali_file_to_hook=$(find $MY_PATH/original/smali/ -name '*$android_class*') in script file.

Aholicknight commented 3 years ago

Thank you!

SwimmingLiu commented 3 years ago

I did it.But it doesn't work

Just replace smali_file_to_hook=$MY_PATH/original/smali/$android_class.smali to smali_file_to_hook=$(find $MY_PATH/original/smali/ -name '*$android_class*') in script file.

S0raWasTaken commented 3 years ago

I did it.But it doesn't work

Just replace smali_file_to_hook=$MY_PATH/original/smali/$android_class.smali to smali_file_to_hook=$(find $MY_PATH/original/smali/ -name '*$android_class*') in script file.

I'm having the same issue, doesn't work either. Changed smali_file_to_hook=$MY_PATH/original/smali/$android_class.smali on line 297 to smali_file_to_hook=$(find $MY_PATH/original/smali/ -name '*$android_class*')

HeYiKunclass commented 2 years ago

那么现在怎么做呢

dana-at-cp commented 2 years ago

@alexanderajju I'm back to using and improving this project. I've noticed some things to fix as well. There will be some improvements committed in the near future.