Listening for HTTP requests on the CLI with tshark

Talles L - Jul 27 - - Dev Community
sudo tshark -Y "http.request or tls.handshake.type == 1" -T fields -e http.request.method -e http.host -e http.request.uri -e tls.handshake.extensions_server_name
Enter fullscreen mode Exit fullscreen mode
Argument Description
-Y "http.request or tls.handshake.type == 1" Filters for HTTP requests or TLS ClientHello packets
-T fields Outputs the following fields
-e http.request.method Displays the HTTP request method
-e http.host Displays the HTTP host header (domain name)
-e http.request.uri Displays the URI of the HTTP request
-e tls.handshake.extensions_server_name Displays the server name from the TLS handshake
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player