Skip to main content

ReadQRCode

This Script is part of the Common Scripts Pack.#

Supported versions

Supported Cortex XSOAR versions: 6.10.0 and later.

Extract text from QR codes. The output of this script includes the output of the script "extractIndicators" run on the text extracted from the QR code.

Script Data#


NameDescription
Script Typepython3
Cortex XSOAR Version6.10.0

Inputs#


Argument NameDescription
entry_idThe entry ID of the QR code image.

Outputs#


PathDescriptionType
QRCodeReader.TextThe raw text extracted from the QR code image.String
QRCodeReader.DomainThe domains extracted from the QR code image if they are present.String
QRCodeReader.URLThe URLs extracted from the QR code image if they are present.String
QRCodeReader.IPThe IPs extracted from the QR code image if they are present.String

Script Examples#

Example command#

!ReadQRCode entry_id=1234@1234abcd-12ab-12ab-12ab-1234abcd

Context Example#

{
"QRCodeReader": {
"Domain": [
"xsoar.pan.dev"
],
"Text": "https://xsoar.pan.dev/",
"URL": [
"https://xsoar.pan.dev/"
]
}
}

Human Readable Output#

QR Code Read#

Text
https://xsoar.pan.dev/