Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsing error #7

Open
3asm opened this issue May 10, 2012 · 0 comments
Open

Parsing error #7

3asm opened this issue May 10, 2012 · 0 comments

Comments

@3asm
Copy link

3asm commented May 10, 2012

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant