Skip to content

Log Parse error with encrypted Backups

Hi, i notices crashes when the first of my cleints started using encrypted Backup:

 File "/usr/local/lib/python2.7/dist-packages/burpui/misc/backend/burp1.py", line 589, in _parse_backup_log
    'new': int(spl[0]),
ValueError: invalid literal for int() with base 10: '(encrypted):'

The problem is that the first line of the "lookup_complex" regexes

  files': r'^\s*Files:?\s+(.+)\s+\|\s+(\d+)$',

also matches log lines starting with "Files (encrypted)"...

My quick fix was to change the regex to

  files': r'^\s*Files:\s+(.+)\s+\|\s+(\d+)$',

to require the colon after "Files", but i do not know if that works for other burp version than mine (1.3.48)

Greetings and thanks, ramo