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

AttributeError: 'Request' object has no attribute 'is_xhr' #392

Open
Stefan-Chonov-zz opened this issue Apr 26, 2020 · 0 comments
Open

AttributeError: 'Request' object has no attribute 'is_xhr' #392

Stefan-Chonov-zz opened this issue Apr 26, 2020 · 0 comments

Comments

@Stefan-Chonov-zz
Copy link

When run:

.\rupture --sniffer

I received next error message:

[*] Sniffer has been deployed.
WARNING: No route found for IPv6 destination :: (no default route?)
2020-04-26 14:26:11,755 - werkzeug - INFO:  * Running on http://127.0.0.1:9000/ (Press CTRL+C to quit)
2020-04-26 14:26:11,756 - werkzeug - INFO:  * Restarting with stat
WARNING: No route found for IPv6 destination :: (no default route?)
2020-04-26 14:26:11,945 - werkzeug - WARNING:  * Debugger is active!
2020-04-26 14:26:11,945 - werkzeug - INFO:  * Debugger PIN: 838-428-066
Acquiring lock to start _recording
2020-04-26 14:26:15,726 - sniffer - DEBUG: Acquiring lock to start _recording
Lock acquired, starting recording
2020-04-26 14:26:15,726 - sniffer - DEBUG: Lock acquired, starting recording
Releasing lock from start _recording
2020-04-26 14:26:15,727 - sniffer - DEBUG: Releasing lock from start _recording
Sniffer (source_ip: 192.168.1.105, destination_host: www.example.com) is alive.
2020-04-26 14:26:15,727 - sniffer - DEBUG: Sniffer (source_ip: 192.168.1.105, destination_host: www.example.com) is alive.
Waiting for calibration: 0.0 seconds...
2020-04-26 14:26:15,727 - sniffer - DEBUG: Waiting for calibration: 0.0 seconds...
2020-04-26 14:26:15,730 - werkzeug - INFO: 127.0.0.1 - - [26/Apr/2020 14:26:15] "POST /start HTTP/1.1" 201 -
Parsing captured TLS streams
2020-04-26 14:26:17,794 - sniffer - DEBUG: Parsing captured TLS streams
Captured 0 application data
2020-04-26 14:26:17,794 - sniffer - DEBUG: Captured 0 application data
Captured 0 application records
2020-04-26 14:26:17,795 - sniffer - DEBUG: Captured 0 application records
Got capture with length: 0
2020-04-26 14:26:17,795 - sniffer - DEBUG: Got capture with length: 0
2020-04-26 14:26:17,806 - werkzeug - INFO: 127.0.0.1 - - [26/Apr/2020 14:26:17] "GET /read?interface=eth0&calibration_wait=0.0&destination_port=443&source_ip=192.168.1.105&destination_host=www.example.com HTTP/1.1" 500 -
Traceback (most recent call last):
  File "/home/seeff00/htp/rupture/sniffer/env/lib/python2.7/site-packages/flask/app.py", line 1836, in __call__
    return self.wsgi_app(environ, start_response)
  File "/home/seeff00/htp/rupture/sniffer/env/lib/python2.7/site-packages/flask/app.py", line 1820, in wsgi_app
    response = self.make_response(self.handle_exception(e))
  File "/home/seeff00/htp/rupture/sniffer/env/lib/python2.7/site-packages/flask/app.py", line 1403, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/home/seeff00/htp/rupture/sniffer/env/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/seeff00/htp/rupture/sniffer/env/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/seeff00/htp/rupture/sniffer/env/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/seeff00/htp/rupture/sniffer/env/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/seeff00/htp/rupture/sniffer/env/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/seeff00/htp/rupture/sniffer/app.py", line 129, in read
    return jsonify(**capture), 200
  File "/home/seeff00/htp/rupture/sniffer/env/lib/python2.7/site-packages/flask/json.py", line 235, in jsonify
    and not request.is_xhr:
  File "/home/seeff00/htp/rupture/sniffer/env/lib/python2.7/site-packages/werkzeug/local.py", line 347, in __getattr__
    return getattr(self._get_current_object(), name)
AttributeError: 'Request' object has no attribute 'is_xhr'
409 - Sniffer (source_ip: 192.168.1.105, destination_host: www.example.com) already exists.
2020-04-26 14:26:17,871 - sniffer - WARNING: 409 - Sniffer (source_ip: 192.168.1.105, destination_host: www.example.com) already exists.
2020-04-26 14:26:17,872 - werkzeug - INFO: 127.0.0.1 - - [26/Apr/2020 14:26:17] "POST /start HTTP/1.1" 409 -
Deleting sniffer (source_ip : 192.168.1.105, destination_host: www.example.com)...
2020-04-26 14:26:17,874 - sniffer - DEBUG: Deleting sniffer (source_ip : 192.168.1.105, destination_host: www.example.com)...
Acquiring lock to stop recording
2020-04-26 14:26:17,874 - sniffer - DEBUG: Acquiring lock to stop recording
Lock acquired, stopping recording
2020-04-26 14:26:17,874 - sniffer - DEBUG: Lock acquired, stopping recording
Releasing lock from stop recording
2020-04-26 14:26:17,874 - sniffer - DEBUG: Releasing lock from stop recording
(delete) Sniffer (source_ip : 192.168.1.105, destination_host: www.example.com) was deleted.
2020-04-26 14:26:17,874 - sniffer - DEBUG: (delete) Sniffer (source_ip : 192.168.1.105, destination_host: www.example.com) was deleted.
2020-04-26 14:26:17,875 - werkzeug - INFO: 127.0.0.1 - - [26/Apr/2020 14:26:17] "POST /delete HTTP/1.1" 200 -
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