ZipFile
Common Scripts Pack.#
This Script is part of theZip a file and upload to war room
Supported Cortex XSOAR versions: 5.0.0 and later.
#
Script DataName | Description |
---|---|
Script Type | python3 |
Tags | Utility, file |
Cortex XSOAR Version | 5.0.0 |
#
InputsArgument Name | Description |
---|---|
entryID | CSV list of entry ids for the files to zip. |
zipName | Name of the output file, for example: zipName="test" would result in output file "test.zip" |
password | Used to create a password protected zip file. Example: password="abcd" |
#
OutputsPath | Description | Type |
---|---|---|
ZipFile.ZippedFile | The zipped file | string |
File.Name | The full file name (including file extension). | String |
File.EntryID | The ID for locating the file in the War Room. | String |
File.Size | The size of the file in bytes. | Number |
File.MD5 | The MD5 hash of the file. | String |
File.SHA1 | The SHA1 hash of the file. | String |
File.SHA256 | The SHA1 hash of the file. | String |
File.SHA512 | The SHA512 hash of the file. | String |
File.SSDeep | The ssdeep hash of the file (same as displayed in file entries). | String |
File.Extension | The file extension, for example: 'xls'. | String |
File.Type | The file type, as determined by libmagic (same as displayed in file entries). | String |
#
TroubleshootingBecause of security reasons we support only AES encryption which is not supported on the Windows OS without 3rd party unzip applications. For more information about the encryption methods, see https://en.wikipedia.org/wiki/ZIP_(file_format)#Encryption.