Creating a Malicious QR Codes to Hack Phones & Other Devices

Installing QRGen
To get started we need to download repository from github.
git clone https://github.com/h0nus/QRGen.git
Once it is downloaded change the directory using.
cd /QRGen
Let’s take a look at README.md file.
Now, we have to install some requirements and libraries which required for QRGen.
pip3 install -r requirements.txt
If this command doesn’t work there’s another alternative.
python3 -m pip install -r requirements.txt
Generating Malicious QRCode From Payload
Now, that we have install QRGen we’re gonna run it to generate our sample malicious payload.
python3 qrgen.py
As you can see it’s easy to generate a payload by selecting options.
python3 qrgen.py -l 5
Series of QR codes will be generated and the last one which was created opens automatically.
cd genqr
Let’s scan our QR code and take a look.