This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| network_stuff:wireshark [2022/06/10 12:42] – jotasandoku | network_stuff:wireshark [2025/07/10 21:21] (current) – jotasandoku | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| **__WIRESHARK NOTES__**\\ | **__WIRESHARK NOTES__**\\ | ||
| - | [[https://softbackbone.duckdns.org/ | + | [[https://panda314159.net/ |
| - | ssh root@router tcpdump -i eth0 -U -s0 -w - 'not port 22' | wireshark | + | |
| + | This is to caprutue and show in wireshark live traffic. Running on a linux based router | ||
| + | | ||
| tcpdump -nni any -U -s0 'port 22 and not host 10.33.3.6' | tcpdump -nni any -U -s0 'port 22 and not host 10.33.3.6' | ||
| - | Before jumping to the pcap, have a look at these linux commands: \\ | + | Before jumping to the pcap, have a look at these linux commands |
| + | \\ | ||
| ss -s | ss -s | ||
| netstat -s | netstat -s | ||
| Line 14: | Line 17: | ||
| Edit -> Preferences -> Appearance -> Confirm Unsaved Capture Files # to remove the ' | Edit -> Preferences -> Appearance -> Confirm Unsaved Capture Files # to remove the ' | ||
| Edit -> Preferences -> Advanced > gui.packet_list_show_minimap false # to disable minimap | Edit -> Preferences -> Advanced > gui.packet_list_show_minimap false # to disable minimap | ||
| - | | + | Add these columns ( Edit > Preferences and select User Interface > Columns ) |
| - | Ctrl-Alt-1 | + | |
| - | Edit -> Preferences -> Name Resolution -> Resolve MAC addresses) | + | |
| - | tcp.analysis.acks_frame If we want to check for timing in the tcp flow, do this in an already selected stream | + | |
| - | Preference> | + | |
| - | + | ||
| - | Add these columns ( Edit > Preferences and select User Interface > Columns ) | + | |
| - TCP-Len (this is not the default packet length, custom column) | - TCP-Len (this is not the default packet length, custom column) | ||
| - Delta time (the time between captured packets) | - Delta time (the time between captured packets) | ||
| Line 26: | Line 23: | ||
| - **rwnd** (aka receive window aka ' | - **rwnd** (aka receive window aka ' | ||
| - See [[https:// | - See [[https:// | ||
| + | Ctrl-Alt-1 | ||
| + | Edit -> Preferences -> Name Resolution -> Resolve MAC addresses) | ||
| + | Preference> | ||
| + | Ctrl-Shift-A (Shift+comm+A) # To save and select profile with all the needed colums | ||
| + | |||
| Then you can save the profile with Shift+Ctrl+A | Then you can save the profile with Shift+Ctrl+A | ||
| Line 33: | Line 35: | ||
| __Analyse__\\ | __Analyse__\\ | ||
| - | FIRST THING determine in which end of the conversation we are capturing the packets << | + | FIRST THING determine in which end of the conversation we are capturing the packets << |
| \\ | \\ | ||
| Line 41: | Line 43: | ||
| * Follow TCP or HTTP stream | * Follow TCP or HTTP stream | ||
| - | __STATISTICS__ \\ | + | __STATISTICS__ |
| + | \\ | ||
| + | tcp.analysis.acks_frame If we want to check for timing in the tcp flow, do this in an already selected stream | ||
| + | \\ | ||
| __Flow graph__: this is a good start to locate full tcp convos | __Flow graph__: this is a good start to locate full tcp convos | ||
| \\ | \\ | ||
| - | __Tcptrace graph__, long flat areas might mean end system and/or human user processing time. | + | __Tcptrace graph__: (statistics> |
| \\ | \\ | ||
| - | __Window Scaling__ (Statistics > TCP Streams > Window Scaling) | + | __Window Scaling__ (Statistics > TCP Streams > Window Scaling): It graphs bytes in flight together with rwnd. The latter must always be over the bytes in flight otherwise there' |
| \\ | \\ | ||
| {{: | {{: | ||
| Line 137: | Line 141: | ||
| dumpcap -i eth0 -b duration: | dumpcap -i eth0 -b duration: | ||
| | | ||
| + | |||
| + | ---- | ||
| + | *** DECRYPT A TLS SESSION *** | ||
| + | Several applications honor the SSLKEYLOGFILE environment variable, which allows you to log the TLS session key, and which e.g., Wireshark can read to then decrypt the TLS packets.1 To use it, simply export SSLKEYLOGFILE=/ | ||
| + | |||
| + | \\ | ||
| + | |||
| + | both Chrome and Firefox honor the SSLKEYLOGFILE environment variable, making dissecting packets nice and easy. | ||
| + | |||
| + | $ export SSLKEYLOGFILE=/ | ||
| + | $ / | ||