Details
| ID | ZipFile |
|---|---|
| Language | python |
| From Version | 5.0.0 |
| Docker Image | demisto/py3-tools:1.0.0.11597437 |
| Tags | Utility file |
README
Zip a file and upload to war room
Supported Cortex XSOAR versions: 5.0.0 and later.
Script Data
| Name | Description |
|---|---|
| Script Type | python3 |
| Tags | Utility, file |
| Cortex XSOAR Version | 5.0.0 |
Inputs
| Argument 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” |
Outputs
| Path | 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 |
Troubleshooting
Because 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.
args: - description: CSV list of entry ids for the files to zip. isArray: true name: entryID required: true - description: 'Name of the output file, for example: zipName="test" would result in output file "test.zip".' name: zipName - description: 'Used to create a password protected zip file. Example: password="abcd".' name: password comment: Zip a file and upload to war room. commonfields: id: ZipFile version: -1 enabled: true name: ZipFile outputs: - contextPath: ZipFile.ZippedFile description: The zipped file. type: string - contextPath: File.Name description: The full file name (including file extension). type: String - contextPath: File.EntryID description: The ID for locating the file in the War Room. type: String - contextPath: File.Size description: The size of the file in bytes. type: Number - contextPath: File.MD5 description: The MD5 hash of the file. type: String - contextPath: File.SHA1 description: The SHA1 hash of the file. type: String - contextPath: File.SHA256 description: The SHA1 hash of the file. type: String - contextPath: File.SHA512 description: The SHA512 hash of the file. type: String - contextPath: File.SSDeep description: The ssdeep hash of the file (same as displayed in file entries). type: String - contextPath: File.Extension description: "The file extension, for example: 'xls'." type: String - contextPath: File.Type description: The file type, as determined by libmagic (same as displayed in file entries). type: String script: '-' tags: - Utility - file timeout: '0' type: python subtype: python3 dockerimage: demisto/py3-tools:1.0.0.11597437 fromversion: 5.0.0 tests: - ZipFile-Test