@@ -229,11 +229,14 @@ def submit(
229229 :param scan_config: The scan configuration to be used, e.g.: "default", "more-time", "most-time"
230230 :param preprocessing: Preprocessing settings to be applied to the artifact, None means no preprocessing,
231231 otherwise a dict with the following attributes can be passed:
232- - type (string): either "zip" or "qrcode", the first mean the file is a zip that
233- the server has to decompress to then scan the content (only one file inside allowed).
234- "qrcode" means the file is a QR Code image with a URL as payload, and you want
235- to scan the URL, not the actual file (artifact_type has to be "URL").
236- - password (string, optional): will use this password to decompress the zip file.
232+ - type (string): either "zip", "base64", "7zip", or "qrcode". "zip" means the file is a
233+ zip that the server has to decompress to then scan the content (only one file inside
234+ allowed). "base64" means the file content is base64-encoded and the server has to
235+ decode it before scanning. "7zip" means the file is a 7zip archive that the server
236+ has to decompress to then scan the content (only one file inside allowed). "qrcode"
237+ means the file is a QR Code image with a URL as payload, and you want to scan the URL,
238+ not the actual file (artifact_type has to be "URL").
239+ - password (string, optional): will use this password to decompress the zip or 7zip file.
237240 :return: An ArtifactInstance resource
238241 """
239242 logger .info ('Submitting artifact of type %s' , artifact_type )
@@ -757,10 +760,11 @@ def sandbox_file(
757760 the list of VMs available.
758761 :param preprocessing: Preprocessing settings to be applied to the artifact, None means no preprocessing,
759762 otherwise a dict with the following attributes can be passed:
760- - type (string): either "zip" or "qrcode", the first means the file is a zip that
763+ - type (string): either "zip", "base64", or "qrcode". "zip" means the file is a zip that
761764 the server has to decompress to then scan the content (only one file inside allowed).
762- "qrcode" means the file is a QR Code image with a URL as payload, and you want
763- to scan the URL, not the actual file (artifact_type has to be "URL").
765+ "base64" means the file content is base64-encoded and the server has to decode it
766+ before scanning. "qrcode" means the file is a QR Code image with a URL as payload,
767+ and you want to scan the URL, not the actual file (artifact_type has to be "URL").
764768 - password (string, optional): will use this password to decompress the zip file.
765769 :param arguments: The arguments to be passed to the sample being sandboxed, e.g. '--some-param="<PARAM VAL>"'
766770 :return: An ArtifactInstance resource
0 commit comments