Hacking devices via QR code

President

Professional
Messages
1,458
Reaction score
1,300
Points
113
This material is provided for educational purposes only and was created as part of the study of information security. The author did not publish material for malicious purposes. If someone uses the information for personal gain, then the author is not responsible for any harm or damage caused.

qrgen-768x385.png


For further actions, we need the "QR Gen" program, you can download the repository from the GitHub command:
Code:
git clone https://github.com/h0nus/QRGen.git

After downloading, go to the program directory using the command:
Code:
cd / QRGen

2-2.png

QR Gen Catalog.

Now let's install the requirements and libraries that QRGen requires:
Code:
pip3 install -r requirements.txt

If this command does not work, then an alternative would be:
Code:
python3 -m pip install -r requirements.txt

Creation of a malicious QRCode
Now that we've installed QRGen, we'll run it to generate our example of a malicious payload:
Code:
python3 qrgen.py

1-23.png


As you can see, generating the payload is easy.
Code:
python3 qrgen.py -l 5

1-24.png


A series of QR codes will be generated, the last one created will automatically open.
Code:
cd genqr

1-25.png


Let's scan our QR code and see.

1-6.jpg
 
  • Like
Reactions: Man
Top