4 : Detailed overview and workflow of this series : Android Rat From Scratch
previous : 3 : Setting Environment : Android Rat From Scratch
next 5 : Creating Base of app(always running in background) : Android Rat From Scratch
Hello everyone
So till now we have seen features and requirements of our RAT.
In this post you will see how we are going to create this RAT and detailed workflow.
I have divided RAT creation in these 4 steps:
1. Create an app which is always running in background and is invisible to user.
2. Implement all functionality(getting sms,contacts,photo etc.) to our app which always runs in background.
3. Connect this app to our server to get commands and to upload/send data.
4. Create an android app to control all hacked devices at one place and user friendly. Like adding buttons to send command and panels to display hacked data(contacts,images)
From now we will work according to above format.
Some important notes are:
The RAT we are going to create must be completely invisible to victim and run always in background. And it should start automatically if background service is killed by android device user or Operating System.
A background service can be killed by user if he finds it. But it is very rare that a normal user checks running services(by going to developers options).
A background service can also be killed by android if there are not enough resources (RAM,CPU) for more important apps.
Don't worry we will solve all above problems while creating app.
We also have to start our app on restart/reboot which is very easy.
we will use some core android components like Service,Thread,Broadcast Receiver in this step.
We will start coding our app from next post.
At the end of this step we will have an android app which will always run in background.
next 5 : Creating Base of app(always running in background) : Android Rat From Scratch
previous : 3 : Setting Environment : Android Rat From Scratch
If you have any problem or query related to Hacking or Programming, You can contact us on Facebook page. We will reply asap.
Some important notes are:
- We will work on step 2 and 3 simultaneously so we will always have a working RAT but with less features. e.g. We will implement code to read all contacts and then we will implement code to send those codes on server. So we will have RAT which can only read and send contacts to us.
- If you you only need only a few features like reading and sending sms then you don't need to watch all posts.
- Step 4 is optional. If you don't care how you control hacked device you can completely skip this step. You can insert commands in database directly and use it like Metasploit Framework where you have to type commands.
Here is detailed overview of workflow.
1.Creating an invisible app which always runs in background even after restart/reboot.
The RAT we are going to create must be completely invisible to victim and run always in background. And it should start automatically if background service is killed by android device user or Operating System.
A background service can be killed by user if he finds it. But it is very rare that a normal user checks running services(by going to developers options).
A background service can also be killed by android if there are not enough resources (RAM,CPU) for more important apps.
Don't worry we will solve all above problems while creating app.
We also have to start our app on restart/reboot which is very easy.
we will use some core android components like Service,Thread,Broadcast Receiver in this step.
We will start coding our app from next post.
At the end of this step we will have an android app which will always run in background.
2.Implementing features and connecting to server
We will implement our rat features and functions to connect to server simultaneously.
I will use local server(xampp) to host php scripts and database.You can use online server also but I recommend using XAMPP local server because you won't need internet connection and it will be very fast compared to online server.
We will only use local server while creating and testing RAT. After creating and testing we will use online server so we can hack any device connected to internet.
After completing this step our rat will be fully functional. We will be able to hack any android device.We will control hacked device by typing command in database manually.
You can also setup a web control panel using php or any other server side language. But I will create apk control panel.
3.Creating Controler apk.
This step is optional. After implementing features and connections to server you will be able to control everything by typing commands in database or by creating some php scripts to enter commands in database.
You can skip this step if you are comfortable with manually inserting command or you can create your own control panel (web, cli using python or windows app).
In this step we will create another apk for our android device to control all hacked device from one place more easily.
This pic is of prototype so the app we will create will be more user friendly and easy to use and will have more features.
---------------------------------------------------------------------------------
So I hope you understood how we are going to create our rat.
We will start coding from next post So If you have any doubt or problem till now you can comment below or directly message us on our Facebook page.
next 5 : Creating Base of app(always running in background) : Android Rat From Scratch
previous : 3 : Setting Environment : Android Rat From Scratch
If you have any problem or query related to Hacking or Programming, You can contact us on Facebook page. We will reply asap.


Comments
Post a Comment