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 run dx on proguard processed jar file #108

Closed ethiccode closed 7 years ago

ethiccode commented 7 years ago

screenshot from 2017-05-20 17-04-42

ethiccode commented 7 years ago

@dana-at-cp

dana-at-cp commented 7 years ago

@ethiccode Are you working with a "legit" Facebook APK from the Google Play Store?

gangaanonymous commented 7 years ago

Whatever apk i choose it always come with unable to run dx....How to fix it...Plz help

dana-at-cp commented 7 years ago

Here's the code in backdoor-apk.sh that is relevant:

$DX --dex --output="$MY_PATH/$RAT_APK_FILE" $MY_PATH/bin/classes-processed.jar >>$LOG_FILE 2>&1
rc=$?
if [ $rc != 0 ]; then
  echo "done."
  echo "[!] Failed to run dx on proguard processed jar file"
  cleanup
  exit $rc
fi
echo "done."

The dx binary/utility is included with backdoor-apk.

DX=third-party/android-sdk-linux/build-tools/25.0.2/dx

Have you modified the original script at all?

I just tested v0.2.2 on a legit APK file and it worked fine.