Files
2026-07-13 12:33:44 +08:00

3.2 KiB

@redeye/parser-core / ParserLogEntry

Interface: ParserLogEntry

Table of contents

Properties

Properties

blob

blob: string

The text of the log entry, can be a command input or output

Example

blob = 'ls';
blob = 'cd C:\\Users\\admin\\Desktop';
blob = 'dir';
blob = '[System Process]\nsmss.exe\n...etc';

Defined in

parser-log-entry.ts:12


dateTime

Optional dateTime: Date

The date and time the log entry was created

Example

dateTime = new Date('2021-01-01T00:00:00.000Z');

Defined in

parser-log-entry.ts:66


filepath

Optional filepath: string

Local path to the file that the log entry was found in

Example

filepath = '<directory-of-parser>/logs/2023-02-01/log-1.txt';

Defined in

parser-log-entry.ts:18


lineNumber

Optional lineNumber: number

The starting line number of the log entry in the file

Example

lineNumber = 123;

Defined in

parser-log-entry.ts:24


lineType

Optional lineType: "METADATA" | "INPUT" | "TASK" | "CHECKIN" | "OUTPUT" | "MODE" | "ERROR" | "INDICATOR"

The type of log line if the logType is 'BEACON'

Example

// If the log entry is a command input
logType = 'INPUT';
// If the log entry is a command output
logType = 'OUTPUT';
// If the log entry is a beacon status checkin with the server
logType = 'CHECKIN';
// If the log entry is the C2 server acknowledging a command
logType = 'TASK';
// If the log entry is an error of any kind
logType = 'ERROR';
// If the log entry is miscellaneous metadata tied to a beacon
logType = 'METADATA';

Defined in

parser-log-entry.ts:42


logType

logType: "BEACON" | "EVENT" | "DOWNLOAD" | "WEBLOG" | "KEYSTROKES" | "UNKNOWN"

The type of log entry

Example

// A beacon log entry
logType = 'BEACON';
// Misc events on the C2 server (e.g. operator login)
logType = 'EVENT';
// A file download from a beacon
logType = 'DOWNLOAD';
// A web log entry from a beacon
logType = 'WEBLOG';
// A keystroke log entry from a beacon
logType = 'KEYSTROKES';
// Any other log entry
logType = 'UNKNOWN';

Defined in

parser-log-entry.ts:60