Skip to content

Parsing error #7

@3asm

Description

@3asm

Thank you for sharing your code. Great addition for burp !

It seems that burp based on the time presentation chosen is having different log versions.

The parsing regex is not working if the time presentation is 0-23 instead of 0-11 AM/PM.

This is the modification I had to apply to have it working on my computer:

HEADER = re.compile('(\d{1,2}:\d{2}:\d{2} (AM|PM))[ \t]+(\S+)([ \t]+[(\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3}|unknown host)])?')

HEADER = re.compile('(\d{1,2}:\d{2}:\d{2})( )(\S+)( )[((\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3}|unknown host))]?')

May be you can add support for both version by checking for the AM/PM string or making AM/PM optional in the regex.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions