Closed LuisMayo closed 7 years ago
I have same issue when trying to backdoor Facebook apk and also the facebook messenger app....kindly help
@TLuigi003 I confirmed this is a bug that is reproducible with the Twitter APK.
@Abdulmalik5371 I'm not sure about Facebook APKs at this time but I bet it's the same issue. I'll confirm soon.
Thanks for the reports.
@dana-at-cp thanx for the early response...i appreciate it.
The problem is that the current code correctly identifies the smali file to hook via the AndroidManifest.xml file but fails to search all of the smali file class directories.
For example, the Twitter APK decompiles into three smail file class directories:
The current code searches the 'smali' directory for the expected smali file but it actually exists in the 'smali_classes2' directory.
This bug affects any multidex APK where the smali file to hook is not in the 'smali' directory.
More on multidex APKs: https://developer.android.com/studio/build/multidex.html
I am not sure about your answer, Mr. dana-at-cp . How do we pass that "fail to locate smali file to hook" error! Thz!
@YaRMa not a fix but a workaround may be changing the line 441 of the backdoor-apk.sh from
smali_file_to_hook=$MY_PATH/original/smali/$total_package$tmp.smali
to
smali_file_to_hook=$MY_PATH/original/smali_classes2/$total_package$tmp.smali
(It may differ in the case of facebook apk)
I haven't tested this but I would try that while we wait for a proper solution
Regards.
@YaRMa It doesn't work, after replacing every reference to smali with smali_classes2 the script continues but it fails at recompiling the original project. So probably we need to wait until a proper patch is done.
Or make it ourselves :P
@TLuigi003 @YaRMa Simply replacing every instance of "smali" with "smali_classes2" is not the proper fix and undoubtedly resulted in other breakage. Hang tight. I'll have a new release out soon.
@TLuigi003 @YaRMa I have a fix created. I'll cut a new release in the next day or so.
where can i find the patch??
@defcony A new version is coming ... I've been busy with other things unfortunately.
@TLuigi003 @Abdulmalik5371 @YaRMa @defcony This bug is now fixed on master.
looks like it never came, lol
seems like they forgot to fix this 🤔, lol
I'm still waiting after 2 years.
I didn't get to try again if it was indeed fixed, I can't believe it have already been 2 years. I'll check when I have time
someone fix the problem? still now same error. we lose time to follow fake sw?
UP!
Still seeing this issue on numerous apks
I was just trying this with the Twitter APK but it didn't work:
Console output:
run.log contents: https://ghostbin.com/paste/uqh5o
I'm going to try with a different APK just for testing Regards.