Creating a Malicious QR Codes to Hack Phones & Other Devices

Installing QRGen

To get started we need to download repository from github.

git clone GitHub - h0nus/QRGen: Simple script for generating Malformed QRCodes.

Once it is downloaded change the directory using.

cd /QRGen

Let’s take a look at 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.


As you can see it’s easy to generate a payload by selecting options.

python3 -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.