2.6 KiB
2.6 KiB
@redeye/parser-core / UploadForm
Interface: UploadForm
Table of contents
Properties
Properties
enabledInBlueTeam
• enabledInBlueTeam: boolean
Whether the parser is enabled in blue team mode This should be false unless the parser is intended to be used by a blue team The Blue team mode is intended to be a read only mode
Defined in
fileDisplay
• fileDisplay: FileDisplay
An object that configures the list of servers/files after upload
Example
// server names are editable
fileDisplay = { editable: true };
Defined in
fileUpload
• fileUpload: Object
An object that configures the file upload portion of the upload form
Example
// upload a directory of files that are organized by server name and date in the format: <FOLDER_TO_UPLOAD>/<SERVER_NAME>/<YYYYMMDD>/
fileUpload = {
type: UploadType.Directory,
description:
'Upload a directory of files that are organized by server name and date in the format: <FOLDER_TO_UPLOAD>/<SERVER_NAME>/<YYYYMMDD>/',
example: `Campaign_Folder
- Server_Folder_1
- 200101
- 200102
- 200103`,
validate: ValidationMode.Parser,
};
Defined in
serverDelineation
• serverDelineation: "Folder" | "Database"
The type of server delineation used by the parser
Example
// server data is seperated into distinct folders like 'CAMPAIGN_FOLDER/SERVER_FOLDER/DATE_FOLDER'
serverDelineation = ServerDelineationTypes.Folder;
// server data is not in any particular file/folder structure
serverDelineation = ServerDelineationTypes.Database;
Defined in
tabTitle
• tabTitle: string
The title of the tab in the upload form
Example
tabTitle = '<C2_NAME>';