RepopulateFiles

After running DeleteContext, this script can repopulate all the file entries in the ${File} context key.

python · Common Scripts

Details

IDRepopulateFiles
Languagepython
From Version5.0.0
Docker Imagedemisto/python3:3.12.13.10404775
TagsUtility

README

After running DeleteContext, this script can repopulate all the file entries in the ${File} context key

Script Data


Name Description
Script Type python3
Tags Utility
Cortex XSOAR Version 5.0.0

Inputs


There are no inputs for this script.

Outputs


Path Description Type
File.Name Filename Unknown
File.Type File type Unknown
File.Size File size Unknown
File.MD5 MD5 hash of the file Unknown
File.SHA1 SHA1 hash of the file Unknown
File.SHA256 SHA256 hash of the file Unknown
File.SHA512 SHA512 hash of the file Unknown
File.EntryID EntryID of the file Unknown
File.Info File information Unknown
File.Extension File extension Unknown
File.SSDeep SSDeep hash of the file Unknown
AttachmentFile.Name Filename of incident attachments Unknown
AttachmentFile.Type File type of incident attachments Unknown
AttachmentFile.Size File size of incident attachments Unknown
AttachmentFile.MD5 MD5 hash of the file of incident attachments Unknown
AttachmentFile.SHA1 SHA1 hash of the file of incident attachments Unknown
AttachmentFile.SHA256 SHA256 hash of the file of incident attachments Unknown
AttachmentFile.SHA512 SHA512 hash of the file of incident attachments Unknown
AttachmentFile.EntryID EntryID of the file of incident attachments Unknown
AttachmentFile.Info File information of incident attachments Unknown
AttachmentFile.Extension File extension of incident attachments Unknown
AttachmentFile.SSDeep SSDeep hash of the file of incident attachments Unknown
AttachmentFile.Attachment.description File description of incident attachments Unknown
AttachmentFile.Attachment.name File name of incident attachments Unknown
AttachmentFile.Attachment.path File path of incident attachments Unknown
AttachmentFile.Attachment.showMediaFile showMediaFile of incident attachments Unknown
AttachmentFile.Attachment.type File content type of incident attachments Unknown
commonfields:
  id: RepopulateFiles
  version: -1
name: RepopulateFiles
script: ''
type: python
tags:
- Utility
comment: After running DeleteContext, this script can repopulate all the file entries in the ${File} context key.
enabled: true
outputs:
- contextPath: File.Name
  description: Filename.
- contextPath: File.Type
  description: File type.
- contextPath: File.Size
  description: File size.
- contextPath: File.MD5
  description: MD5 hash of the file.
- contextPath: File.SHA1
  description: SHA1 hash of the file.
- contextPath: File.SHA256
  description: SHA256 hash of the file.
- contextPath: File.SHA512
  description: SHA512 hash of the file.
- contextPath: File.EntryID
  description: EntryID of the file.
- contextPath: File.Info
  description: File information.
- contextPath: File.Extension
  description: File extension.
- contextPath: File.SSDeep
  description: SSDeep hash of the file.
- contextPath: AttachmentFile.Name
  description: Filename of incident attachments.
- contextPath: AttachmentFile.Type
  description: File type of incident attachments.
- contextPath: AttachmentFile.Size
  description: File size of incident attachments.
- contextPath: AttachmentFile.MD5
  description: MD5 hash of the file of incident attachments.
- contextPath: AttachmentFile.SHA1
  description: SHA1 hash of the file of incident attachments.
- contextPath: AttachmentFile.SHA256
  description: SHA256 hash of the file of incident attachments.
- contextPath: AttachmentFile.SHA512
  description: SHA512 hash of the file of incident attachments.
- contextPath: AttachmentFile.EntryID
  description: EntryID of the file of incident attachments.
- contextPath: AttachmentFile.Info
  description: File information of incident attachments.
- contextPath: AttachmentFile.Extension
  description: File extension of incident attachments.
- contextPath: AttachmentFile.SSDeep
  description: SSDeep hash of the file of incident attachments.
- contextPath: AttachmentFile.Attachment.description
  description: File description.
- contextPath: AttachmentFile.Attachment.name
  description: File name.
- contextPath: AttachmentFile.Attachment.path
  description: File path.
- contextPath: AttachmentFile.Attachment.showMediaFile
  description: showMediaFile.
- contextPath: AttachmentFile.Attachment.type
  description: File content type.
scripttarget: 0
subtype: python3
runas: DBotWeakRole
fromversion: 5.0.0
dockerimage: demisto/python3:3.12.13.10404775
tests:
- No tests (auto formatted)