Strings

Extract strings from a file with optional filter - similar to binutils strings command.

python · Common Scripts

Details

IDStrings
Languagepython
From Version5.0.0
Docker Imagedemisto/python3:3.12.13.10404775
Tagsserver file

README

Extracts strings from a file with an optional filter. This is similar to binutils strings command.

Script Data


Name Description
Script Type python
Tags server, file

Inputs


Argument Name Description
entry The entry ID of a file entry to retrieve strings from.
chars The number of consecutive characters needed in order for it to be considered a string. The default is 4.
size The display first ‘size’ results. The default is 1024.
filter The regex to filter the strings. This will be compiled with the ignore case.

Outputs


There are no outputs for this script.

commonfields:
  id: Strings
  version: -1
name: Strings
script: ''
type: python
subtype: python3
tags:
- server
- file
comment: Extract strings from a file with optional filter - similar to binutils strings command.
system: true
args:
- name: entry
  required: true
  default: true
  description: Entry ID of a file entry to retrieve strings from.
- name: chars
  description: Number of consecutive characters to be considered a string - default is 4.
- name: size
  description: Display first 'size' results - default is 1024.
- name: filter
  description: Regex to filter the strings - compiled with ignore case.
scripttarget: 0
dependson: {}
timeout: 0s
fromversion: 5.0.0
dockerimage: demisto/python3:3.12.13.10404775
tests:
- No tests (auto formatted)