This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| network_stuff:wireshark [2022/09/06 18:47] – external edit 127.0.0.1 | 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' | ||
| Line 24: | Line 26: | ||
| Edit -> Preferences -> Name Resolution -> Resolve MAC addresses) | Edit -> Preferences -> Name Resolution -> Resolve MAC addresses) | ||
| Preference> | Preference> | ||
| - | Ctrl-Shift-A | + | Ctrl-Shift-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 139: | 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=/ | ||
| + | $ / | ||