Forum Discussion
AlexFogden
Oct 09, 2023Copper Contributor
Attack Simulation Examples
Hi, I was wondering if the attack simulation examples would be updated to include up to date examples and methods of attack like Quishing. Considering this is increasing in popularity, it would be ...
- Oct 11, 2023
AlexFogden I received an update regarding your request from the team
working on a plan to update AST for QR code phishing simulations and How to guides. no timeline for it just yet.
TakashiVV
Oct 27, 2023Copper Contributor
We can decode QR codes using a python library. I would like this feature in a secure browser.
#bash
pip install opencv-python
pip install pyzbar
#python
import cv2
from pyzbar.pyzbar import decode
# Specify the path to the image file containing the QR code
image_path = "qr_code_image.png"
# Read the image file
image = cv2.imread(image_path)
# Perform QR code decoding
decoded_objects = decode(image)
# Display the decoded data
for obj in decoded_objects:
if obj.type == 'QRCODE':
url = obj.data.decode('utf-8')
print(f"URL: {url}")
#bash
pip install opencv-python
pip install pyzbar
#python
import cv2
from pyzbar.pyzbar import decode
# Specify the path to the image file containing the QR code
image_path = "qr_code_image.png"
# Read the image file
image = cv2.imread(image_path)
# Perform QR code decoding
decoded_objects = decode(image)
# Display the decoded data
for obj in decoded_objects:
if obj.type == 'QRCODE':
url = obj.data.decode('utf-8')
print(f"URL: {url}")