Penetration TestingSmartPhone Pentest

Creating a Malicious QR Codes to Hack Phones & Other Devices

Installing QRGen

To get started we need to download repository from github.

git clone

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.

Noor Qureshi

Experienced Founder with a demonstrated history of working in the computer software industry. Skilled in Network Security and Information Security.

Related Articles

Back to top button