Burp-ui 0.5.1 cannot see backup contents nor restore data
Hello,
Using burp-ui v0.5.1 (stable), Python 2.7.5, with burp 2.1.20, I am facing a restore issue. I am backing up some windows clients via protocol1, and burp-ui doesn't show me the manifest, meaning I get:
D: d--------- 0 0 0.0 mar. 26 sept. 2017 08:36 I can develop the tree until the directory I backed up, but won't see the files in it.
When trying to restore, the /tmp/bui/tmp[Random] directory gets populated all my files, but the generated zip file is empty. Also tried with tar.bz2 and tar.gz, same problem.
Running burp-ui via console with verbose mode I get:
XX.XX.XX.XX - - [10/Oct/2017 17:42:10] "GET /api/clients/BurpProtocol1/backup-running?_session=3f7d9c23-6d11-4336-bd86-734b382773e5 HTTP/1.1" 200 -
[2017-10-10 17:42:16,048] ERROR in multi.do_command: !!! 'ascii' codec can't encode character u'\xe9' in position 77: ordinal not in range(128) !!!
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/burpui/misc/backend/multi.py", line 469, in do_command
if not self.setup(gsock.sock, gsock, raw):
File "/usr/lib/python2.7/site-packages/burpui/misc/backend/multi.py", line 435, in setup
raise BUIserverException(err)
BUIserverException: 'ascii' codec can't encode character u'\xe9' in position 77: ordinal not in range(128)
XX.XX.XX.XX - - [10/Oct/2017 17:42:16] "POST /api/restore/BurpProtocol1/archive/client.siege.srv-ad.local/1 HTTP/1.1" 500 -
[2017-10-10 17:42:16,060] ERROR in multi.do_command: !!! 'phase' !!!
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/burpui/misc/backend/multi.py", line 469, in do_command
if not self.setup(gsock.sock, gsock, raw):
File "/usr/lib/python2.7/site-packages/burpui/misc/backend/multi.py", line 435, in setup
raise BUIserverException(err)
BUIserverException: 'phase'
[2017-10-10 17:42:16,060] ERROR in multi.do_command: !!! 'phase' !!!
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/burpui/misc/backend/multi.py", line 495, in do_command
raise e
BUIserverException: 'phase'
XX.XX.XX.XX - - [10/Oct/2017 17:42:16] "GET /api/clients/BurpProtocol1/backup-running?_session=3f7d9c23-6d11-4336-bd86-734b382773e5 HTTP/1.1" 200 -
I am running burp server, clients and burp-ui as non root user indeed, so I tried to run burp-ui and burp agents as root, just to eliminate that root cause. At the end, I ran bui-agent also in debug mode which gave me:
2017-10-10 22:05:16,742] ERROR in agent.handle: Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/burpui_agent/agent.py", line 196, in handle
res, err = getattr(self.client, j['func'])(**j['args'])
File "/usr/lib/python2.7/site-packages/burpui_agent/misc/backend/burp1.py", line 1028, in restore_files
self.logger.debug("Stripping failed on '{}': {}".format(path, str(exc)))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 77: ordinal not in range(128)
[2017-10-10 22:05:16,764] ERROR in agent.handle: Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/burpui_agent/agent.py", line 276, in handle
res = json.dumps(getattr(self.client, j['func'])(**j['args']))
File "/usr/lib/python2.7/site-packages/burpui_agent/misc/backend/burp2.py", line 758, in is_one_backup_running
clients = self.get_all_clients()
File "/usr/lib/python2.7/site-packages/burpui_agent/misc/backend/burp2.py", line 860, in get_all_clients
cli['phase'] = client['phase']
KeyError: 'phase'
[2017-10-10 22:05:20,168] ERROR in agent.handle: Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/burpui_agent/agent.py", line 276, in handle
res = json.dumps(getattr(self.client, j['func'])(**j['args']))
File "/usr/lib/python2.7/site-packages/burpui_agent/misc/backend/burp2.py", line 758, in is_one_backup_running
clients = self.get_all_clients()
File "/usr/lib/python2.7/site-packages/burpui_agent/misc/backend/burp2.py", line 860, in get_all_clients
cli['phase'] = client['phase']
KeyError: 'phase'
Running manual restores gives some warnings about being unable to set owner to files (since it runs as non root) but works.
I'm clueless here. Anything I can try please ?