Дерево страниц

Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.
Комментарий: Published by Scroll Versions from space TMAG and version 7.15
Sv translation
languageru

В конфигурационном файле /opt/iw/tm5/etc/config-perm/bookworm/extractors_customization.xml вы можете дополнить или изменить настройки экстракторов, заданные в /opt/iw/tm5/etc/config-perm/bookworm/extractors.xml.

Параметр

Описание

Примеры настройки
<Signature>

Сигнатура формата, которая представляет собой "образцовую" последовательность значений (байтов) с начальным смещением и масками. Эта последовательность необходима для однозначного определения формата файлов по их содержимому.

Сигнатура может включать до 16 триад вида [OFFSET]:BYTE_VALUE/[MASK]

Допускается также и строковая сигнатура, например , "BZh" для BZIP2. Эта сигнатура означает указанную последовательность байтов от смещения 0. Поиск строковых сигнатур выполняется без учета регистра символов.

Необязательные параметры:

  • OFFSET
    Смещение можно задать с символом "?" – поиск образца в первых N байтах файла. Например, для поиска образца в первых 500 байтах файла , необходимо нужно задать смещение "500?".
  • MASK

Пример сигнатуры заголовка WAV-формата:

Sign = "'RIFF', 0x8: 'WAVEfmt'"

Начиная от смещения 0, расположена последовательность 'R', 'I', 'F', 'F', далее от смещения 8 должно следовать 'W', 'A', 'V', 'E', 'f', 'm', 't'

<FilenameCharsets> 

Если кодировка имени файла отличается от стандартной (ANSI, UTF), то файл будет обрабатываться как соответствующий кодировкам, указанным в данном параметре. Несколько значений перечисляются через запятую; Система будет последовательно пытаться обработать файл в перечисленных кодировках, пока не найдет похожую.

UTF-8, cp1251, cp866
<SpeedInKBs>Предположительная скорость работы экстрактора в расчете на 1 ГГц частоты процессора (в Кб/с). Может принимать целочисленные значения от 1 и выше.100
<UseLog>Логирование экстрактора.
  • true – использовать
  • false – не использовать
<TimeoutInSec>Время ожидания до завершения обработки файла (в секундах).1000
<MinFileSizeInBytes>

Минимальный размер файла (в байтах), подлежащего распаковке. Это ограничение позволяет увеличить производительность Системы за счет отказа от распаковки небольших файлов.

Примечание: Обработка

  • обработка файлов размером меньше 10 байт не поддерживается.
 Данное
  • Данное ограничение также распространяется на тип
событий 
  • событий Буфер обмена.
  • для XML-экстрактора значение по умолчанию – 76
1024
<MaxTextPlainSizeInKb>Верхняя граница размера файла, сигнатура которого не определена. При превышении порогового значения файл автоматически считается бинарным и не отправляется на анализ в iw_cas.25600
<PreCommand>Команда, которую необходимо нужно выполнить перед извлечением данных или после него.bin/dwg-extractor -i ${SRC} -t ${OUTDIR}/out.txt -u ${OUTDIR}/out.vectxt
<PostCommand>
Информация
titleПримечание:

Некоторые перехваченные файлы формата JPEG могут быть склеены с архивами, потенциально содержащими чувствительные данные. По умолчанию Система не извлекает текст из таких файлов. Чтобы настроить извлечение текста из склеенных JPEG-файлов:

  1. Откройте на редактирование файл extractors_customization.xml:

  2. Внутри элемента <extractors> вставьте элемент со следующим содержанием:

    Блок кода
    languagetext
    <extractor profile_name="jpg" key="dY5k14hWa0nivGOvSP4BUe0vTJdME5IY4xjNsqKl">
            <PostCommand>bin/7zz x -y -p{} ${SRC} -o${OUTDIR}</PostCommand>
    </extractor>
  3. Сохраните изменения и закройте файл.

  4. Перезапустите процессы Traffic Monitor:

    Блок кода
    languagetext
    iwtm restart
Sv translation
languageen

In /opt/iw/tm5/etc/config-perm/bookworm/extractors_customization.xml file, you can add or adjust extractor settings specified in /opt/iw/tm5/etc/config-perm/bookworm/extractors.xml.

Parameter

Description

Example setting
<Signature>

Format signature, which is a 'standard' "sample" sequence of values (bytes) with initial displacement offsets and masks. This sequence is required for unambiguous definition of file format by its content of files.

The signature can include up to 16 triades triads of the following format: [OFFSET]:BYTE_VALUE/[MASK]

String signatures There can be a string signature like "BZh" for BZIP2 are also supported. String This signature means specified byte bytes sequence from offset 0 displacement. The search of string signatures is not case-sensitive.

Optional parameters:

  • OFFSET
    To specify displacementthe offset, use 'the "?' " symbol. This will enable searching for a pattern in first N bytes of a file. For example, to search the pattern in the first 500 bytes, specify 'the offset "500?' displacement."
  • MASK

Example for a WAV-heading header signature:

Sign = "'RIFF', 0x8: 'WAVEfmt'"

Starting from offset 0 displacement, there is a sequence 'R', 'I', 'F', 'F', then from offset 8 displacement there should be 'W', 'A', 'V', 'E', 'f', 'm', 't'

<FilenameCharsets> 

In case If file name encoding differs from the standard one (ANSI, UTF), the System processes filename file will be processed as corresponding to the encodings listed specified in this settingparameter. To list several values, separate them with commaSeveral values are listed comma-separated; the System sequentially tries to process the filename file in listed encodings while it finds a matched one.

UTF-8, cp1251, cp866
<SpeedInKBs>

Proposed extractor extractor’s operation speed per 1 GHz of the processor (in Kb/s).   Can take integer values starting with from 1 and greater.

100
<UseLog>Extractor logging.
  • true – use
  • false – do not use
<TimeoutInSec>

Waiting time till file processing is completed ends (in seconds).

1000
<MinFileSizeInBytes>

Minimum file size (in bytes) subjected to unpacking. This limit

enables

lets you increase the System performance

increase due

by avoiding to

skipping

unpack small files

unpacking

. 

Note:

 Processing of files under

  • files smaller than 10 bytes
is
  • are not supported. This
limitation
  • restriction also applies to
 Clipboard events.
  • the Clipboard event type.
  • for the XML extractor, the default value is 76 
1024
<MaxTextPlainSizeInKb>

Maximum size of a file whose signature is not defined. If When the threshold value is exceeded, the file is automatically considered to be binary and is not sent to iw_cas.

25600
<PreCommand>Command to be executed before or after data extraction.bin/dwg-extractor -i ${SRC} -t ${OUTDIR}/out.txt -u ${OUTDIR}/out.vectxt
<PostCommand>
Информация
titleNote:

Some System-intercepted JPEG files , intercepted by the System, can be spliced linked with archives potentially containing sensitive data. By default, the System does not extract text from such files. In order to To configure text extraction for spliced such JPEG files:

  1. Open /opt/iw/tm5/etc/config-perm/bookworm/the file extractors_customization.xml file for editing:
  2. Inside the <extractors> element, paste the element with the following contents:

    Блок кода
    languagetext
    <extractor profile_name="jpg" key="dY5k14hWa0nivGOvSP4BUe0vTJdME5IY4xjNsqKl">
            <PostCommand>bin/7zz x -y -p{} ${SRC} -o${OUTDIR}</PostCommand>
    </extractor>
  3. Save your changes and close the file.
  4. Restart the Traffic Monitor servicesprocesses:

    Блок кода
    languagetext
    iwtm restart