mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 01:28:20 +00:00
websocket: Verify Sec-WebSocket-Key/Accept headers and review feedback
Don't log them, they are random and arbitrary in the normal case. Users can do the following to log them if wanted. redef += WebSocket::Info$client_key += { &log }; redef += WebSocket::Info$server_accept += { &log };
This commit is contained in:
parent
a6c1d12206
commit
e17655be61
16 changed files with 100 additions and 24 deletions
|
@ -23,7 +23,7 @@ void WebSocket_Analyzer::Init() {
|
|||
tcp::TCP_ApplicationAnalyzer::Init();
|
||||
|
||||
// This event calls back via Configure()
|
||||
zeek::BifEvent::enqueue_websocket_handshake(this, Conn(), GetID());
|
||||
zeek::BifEvent::enqueue_websocket_established(this, Conn(), GetID());
|
||||
}
|
||||
|
||||
bool WebSocket_Analyzer::Configure(zeek::RecordValPtr config) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue