HTTP exception during restoration
Hi, I am in burp1.4.40 in Debian, in server and clients. I have burp agent on my backup server and burp-ui on other server. Burp-ui interface works fine, but when I try to restore document, but I have this error after I click in Download select files,
I don't know where is the problem,
In the burp-agent:
#################### recv: {"password": "XXXXX", "args": {"files": "{\"restore\":[{\"key\":\"/etc/Muttrc\",\"folder\":false}]}", "name": "myClient", "strip": "", "password": "", "backup": 2, "archive": "zip"}, "func": "restore_files"} #################### Error - expected 7594879247925301515 more bytes #################### result: /tmp/bui1gGnVx.zip #################### sending 1024 Bytes sending 1024 Bytes sending 238 Bytes <===============
And the file /tmp/bui1gGnVx.zip exists.
In the burp-ui:
-------------------------------------------------------------------------------- DEBUG in multi [/usr/local/lib/python2.7/dist-packages/burp_ui-0.0.7_dev-py2.7.egg/burpui/misc/backend/multi.py:172]: OK, connected to agent Y.Y.Y.Y:10000 -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- DEBUG in multi [/usr/local/lib/python2.7/dist-packages/burp_ui-0.0.7_dev-py2.7.egg/burpui/misc/backend/multi.py:214]: Sending: {"password": "XXXXX", "args": {"root": "/etc/", "backup": 2, "name": "myClient"}, "func": "get_tree"} -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- DEBUG in multi [/usr/local/lib/python2.7/dist-packages/burp_ui-0.0.7_dev-py2.7.egg/burpui/misc/backend/multi.py:219]: recv: 'OK' -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- DEBUG in multi [/usr/local/lib/python2.7/dist-packages/burp_ui-0.0.7_dev-py2.7.egg/burpui/misc/backend/multi.py:223]: Data sent successfully -------------------------------------------------------------------------------- X.X.X.X - - [03/Aug/2015 23:13:17] "GET /api/Backup2/client-tree.json/myClient/2?root=/etc/ HTTP/1.1" 200 - -------------------------------------------------------------------------------- DEBUG in multi [/usr/local/lib/python2.7/dist-packages/burp_ui-0.0.7_dev-py2.7.egg/burpui/misc/backend/multi.py:172]: OK, connected to agent Y.Y.Y.Y:10000 -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- DEBUG in multi [/usr/local/lib/python2.7/dist-packages/burp_ui-0.0.7_dev-py2.7.egg/burpui/misc/backend/multi.py:214]: Sending: {"password": "XXXXX", "args": {"files": "{\"restore\":[{\"key\":\"/etc/Muttrc\",\"folder\":false}]}", "name": "myClient", "strip": "", "password": "", "backup": 2, "archive": "zip"}, "func": "restore_files"} -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- DEBUG in multi [/usr/local/lib/python2.7/dist-packages/burp_ui-0.0.7_dev-py2.7.egg/burpui/misc/backend/multi.py:219]: recv: 'OK' -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- DEBUG in multi [/usr/local/lib/python2.7/dist-packages/burp_ui-0.0.7_dev-py2.7.egg/burpui/misc/backend/multi.py:223]: Data sent successfully -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- DEBUG in restore [/usr/local/lib/python2.7/dist-packages/burp_ui-0.0.7_dev-py2.7.egg/burpui/api/restore.py:131]: Need to get 2286 Bytes : -------------------------------------------------------------------------------- X.X.X.X - - [03/Aug/2015 23:13:24] "POST /api/Backup2/restore/myClient/2 HTTP/1.1" 500 - Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1836, in __call__ return self.wsgi_app(environ, start_response) File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1820, in wsgi_app response = self.make_response(self.handle_exception(e)) File "/usr/local/lib/python2.7/dist-packages/Flask_RESTful-0.3.2-py2.7.egg/flask_restful/__init__.py", line 265, in error_router return original_handler(e) File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1403, in handle_exception reraise(exc_type, exc_value, tb) File "/usr/local/lib/python2.7/dist-packages/Flask_RESTful-0.3.2-py2.7.egg/flask_restful/__init__.py", line 262, in error_router return self.handle_error(e) File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1817, in wsgi_app response = self.full_dispatch_request() File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1477, in full_dispatch_request rv = self.handle_user_exception(e) File "/usr/local/lib/python2.7/dist-packages/Flask_RESTful-0.3.2-py2.7.egg/flask_restful/__init__.py", line 265, in error_router return original_handler(e) File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1381, in handle_user_exception reraise(exc_type, exc_value, tb) File "/usr/local/lib/python2.7/dist-packages/Flask_RESTful-0.3.2-py2.7.egg/flask_restful/__init__.py", line 262, in error_router return self.handle_error(e) File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1475, in full_dispatch_request rv = self.dispatch_request() File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1461, in dispatch_request return self.view_functions[rule.endpoint](**req.view_args) File "/usr/local/lib/python2.7/dist-packages/Flask_RESTful-0.3.2-py2.7.egg/flask_restful/__init__.py", line 446, in wrapper resp = resource(*args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/flask/views.py", line 84, in view return self.dispatch_request(*args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/Flask_RESTful-0.3.2-py2.7.egg/flask_restful/__init__.py", line 550, in dispatch_request resp = meth(*args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/flask_login.py", line 758, in decorated_view return func(*args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/burp_ui-0.0.7_dev-py2.7.egg/burpui/api/restore.py", line 173, in post except HTTPException as e: NameError: global name 'HTTPException' is not defined X.X.X.X - - [03/Aug/2015 23:13:24] "GET /api/Backup2/restore/myClient/2?__debugger__=yes&cmd=resource&f=style.css HTTP/1.1" 200 - X.X.X.X - - [03/Aug/2015 23:13:24] "GET /api/Backup2/restore/myClient/2?__debugger__=yes&cmd=resource&f=jquery.js HTTP/1.1" 200 - X.X.X.X - - [03/Aug/2015 23:13:24] "GET /api/Backup2/restore/myClient/2?__debugger__=yes&cmd=resource&f=debugger.js HTTP/1.1" 200 - X.X.X.X - - [03/Aug/2015 23:13:24] "GET /api/Backup2/restore/myClient/2?__debugger__=yes&cmd=resource&f=console.png HTTP/1.1" 200 - X.X.X.X - - [03/Aug/2015 23:13:24] "GET /api/Backup2/restore/myClient/2?__debugger__=yes&cmd=resource&f=source.png HTTP/1.1" 200 - X.X.X.X - - [03/Aug/2015 23:13:24] "GET /Backup2/client-browse/myClient/2?__debugger__=yes&cmd=resource&f=source.png HTTP/1.1" 200 - X.X.X.X - - [03/Aug/2015 23:13:24] "GET /Backup2/client-browse/myClient/2?__debugger__=yes&cmd=resource&f=console.png HTTP/1.1" 200 -
Thanks you for your help,
Regards, Ben