49 Capturing and filtering traffic at command line
#############################
Video Source: www.youtube.com/watch?v=lL159zajot4
To capture traffic using Wireshark from the command line, you can use tshark, the terminal-based counterpart. For example, to start capturing on interface eth0 and save the output to a file, you would use: • tshark -i eth0 -w capture.pcap • To filter the captured traffic in real-time, use the -f option followed by a capture filter expression, such as: • tshark -i eth0 -f port 80 -w capture.pcap • This command will capture only HTTP traffic on port 80.","styleRuns":[{"startIndex":0,"length":451,"styleRunExtensions":{"styleRunColorMapExtension":{"colorMap":[{"key":"USER_INTERFACE_THEME_DARK","value":4294967295},{"key":"USER_INTERFACE_THEME_LIGHT","value":4279440147}]}},"fontFamilyName":"Roboto"}]},"headerRuns":[{"startIndex":0,"length":451,"headerMapping":"ATTRIBUTED_STRING_HEADER_MAPPING_UNSPECIFIED"}]}},{"itemSectionRenderer":{"contents":[{"continuationItemRenderer":{"trigger":"CONTINUATION_TRIGGER_ON_ITEM_SHOWN","continuationEndpoint":{"clickTrackingParams":"CL8BELsvGAIiEwiv8v_jgd6JAxW4ZXoFHZpnLqg=","commandMetadata":{"webCommandMetadata":{"sendPost":true,"apiUrl":"/youtubei/v1/next"}},"continuationCommand":{"token":"Eg0SC2xMMTU5emFqb3Q0GAYyJSIRIgtsTDE1OXpham90NDAAeAJCEGNvbW1lbnRzLXNlY3Rpb24%3D","request":"CONTINUATION_REQUEST_TYPE_WATCH_NEXT"}}}}],"trackingParams":"CL8BELsvGAIiEwiv8v_jgd6JAxW4ZXoFHZpnLqg=","sectionIdentifier":"comment-item-section","targetId":"comments-section"}}],"trackingParams":"CL4BELovIhMIr_L_44HeiQMVuGV6BR2aZy6o"}},"secondaryResults":{"secondaryResults":{"results":[{"compactVideoRenderer":{"videoId":"l9sMdZsLoAc","thumbnail":{"thumbnails":[{"url":"https://i.ytimg.com/vi/l9sMdZsLoAc/hqdefault.jpg?sqp=-oaymwE1CKgBEF5IVfKriqkDKAgBFQAAiEIYAXABwAEG8AEB-AH-CYACqAWKAgwIABABGF0gZShVMA8= rs=AOn4CLDXviWIUE2KYVN8EwhJ_1mkSeeCvw","width":168,"height":94},{"url":"https://i.ytimg.com/vi/l9sMdZsLoAc/hqdefault.jpg?sqp=-oaymwE2CNACELwBSFXyq4qpAygIARUAAIhCGAFwAcABBvABAfgB_gmAAqgFigIMCAAQARhdIGUoVTAP rs=AOn4CLCTgmfMzKXtlQyekcxoP_90m3ntHw","width":336,"height":188}]},"title":{"accessibility":{"accessibilityData":{"label":"25 Filtering error packets http, dns, tcp door TELCOMA Global 15 weergaven 3 maanden geleden 10 minuten en 12 seconden"}},"simpleText":"25 Filtering error packets http, dns, tcp"},"longBylineText":{"runs":[{"text":"TELCOMA Global","navigationEndpoint":{"clickTrackingParams":"CLcBEKQwGAAiEwiv8v_jgd6JAxW4ZXoFHZpnLqgyB3JlbGF0ZWQ=","commandMetadata":{"webCommandMetadata":{"url":"/@TELCOMATraining","webPageType":"WEB_PAGE_TYPE_CHANNEL","rootVe":3611,"apiUrl":"/youtubei/v1/browse"}},"browseEndpoint":{"browseId":"UCQLQxPH8mL0bnA7B3lIfNww","canonicalBaseUrl":"/@TELCOMATraining"}}}]},"publishedTimeText":{"simpleText":"3 maanden geleden"},"viewCountText":{"simpleText":"15 weergaven"},"lengthText":{"accessibility":{"accessibilityData":{"label":"10 minuten en 12 seconden"}},"simpleText":"10:12"},"navigationEndpoint":{"clickTrackingParams":"CLcBEKQwGAAiEwiv8v_jgd6JAxW4ZXoFHZpnLqgyB3JlbGF0ZWRI3sWOtfO-3t6UAZoBBQgBEPgd","commandMetadata":{"webCommandMetadata":{"url":"/watch?v=l9sMdZsLoAc","webPageType":"WEB_PAGE_TYPE_WATCH","rootVe":3832}},"watchEndpoint":{"videoId":"l9sMdZsLoAc","nofollow":true,"watchEndpointSupportedOnesieConfig":{"html5PlaybackOnesieConfig":{"commonConfig":{"url":"https://rr5---sn-5hneknek.googlevideo.com/initplayback?source=youtube oeis=1 c=WEB oad=3200 ovd=3200 oaad=11000 oavd=11000 ocs=700 oewis=1 oputc=1 ofpcc=1 msp=1 odepv=1 id=97db0c759b0ba007 ip=5.34.180.98 initcwndbps=250000 mt=1731662237 oweuc="}}}}},"shortBylineText":{"runs":[{"text":"TELCOMA Global","navigationEndpoint":{"clickTrackingParams":"CLcBEKQwGAAiEwiv8v_jgd6JAxW4ZXoFHZpnLqgyB3JlbGF0ZWQ=","commandMetadata":{"webCommandMetadata":{"url":"/@TELCOMATraining","webPageType":"WEB_PAGE_TYPE_CHANNEL","rootVe":3611,"apiUrl":"/youtubei/v1/browse"}},"browseEndpoint":{"browseId":"UCQLQxPH8mL0bnA7B3lIfNww","canonicalBaseUrl":"/@TELCOMATraining"}}}]},"channelThumbnail":{"thumbnails":[{"url":"https://yt3.ggpht.com/ytc/AIdro_k0xth99pT4uYhrY0DAjAFjx2OYRls9ZK_WEWHkTQMhb2k=s68-c-k-c0x00ffffff-no-rj","width":68,"height":68}]},"trackingParams":"CLcBEKQwGAAiEwiv8v_jgd6JAxW4ZXoFHZpnLqhAh8Cu2NmOw-2XAQ==","shortViewCountText":{"accessibility":{"accessibilityData":{"label":"15 weergaven"}},"simpleText":"15 weergaven"},"menu":{"menuRenderer":{"items":[{"menuServiceItemRenderer":{"text":{"runs":[{"text":"Toevoegen aan wachtrij"}]},"icon":{"iconType":"ADD_TO_QUEUE_TAIL"},"serviceEndpoint":{"clickTrackingParams":"CLwBEP6YBBgGIhMIr_L_44HeiQMVuGV6BR2aZy6o","commandMetadata":{"webCommandMetadata":{"sendPost":true}},"signalServiceEndpoint":{"signal":"CLIENT_SIGNAL","actions":[{"clickTrackingParams":"CLwBEP6YBBgGIhMIr_L_44HeiQMVuGV6BR2aZy6o","addToPlaylistCommand":{"openMiniplayer":false,"openListPanel":true,"videoId":"l9sMdZsLoAc","listType":"PLAYLIST_EDIT_LIST_TYPE_QUEUE","onCreateListCommand":{"clickTrackingParams":"CLwBEP6YBBgGIhMIr_L_44HeiQMVuGV6BR2aZy6o","commandMetadata":{"webCommandMetadata":{"sendPost":true,"apiUrl":"/youtubei/v1/playlist/create"}},"createPlaylistServiceEndpoint":{"videoIds":["l9sMdZsLoAc"],"params":"CAQ%3D"}},"videoIds":["l9sMdZsLoAc"]}},{"clickTrackingParams":"CLwBEP6YBBgGIhMIr_L_44HeiQMVuGV6BR2aZy6o","openPopupAction":{"popup":{"notificationActionRenderer":{"responseText":{"simpleText":"Toegevoegd aan wachtrij"},"trackingParams":"CL0BELlqIhMIr_L_44HeiQMVuGV6BR2aZy6o"}},"popupType":"TOAST"}}]}},"trackingParams":"CLwBEP6YBBgGIhMIr_L_44HeiQMVuGV6BR2aZy6o"}},{"menuServiceItemDownloadRenderer":{"serviceEndpoint":{"clickTrackingParams":"CLsBENGqBRgHIhMIr_L_44HeiQMVuGV6BR2aZy6o","offlineVideoEndpoint":{"videoId":"l9sMdZsLoAc","onAddCommand":{"clickTrackingParams":"CLsBENGqBRgHIhMIr_L_44HeiQMVuGV6BR2aZy6o","getDownloadActionCommand":{"videoId":"l9sMdZsLoAc","params":"CAIQAA%3D%3D"}}}},"trackingParams":"CLsBENGqBRgHIhMIr_L_44HeiQMVuGV6BR2aZy6o"}},{"menuServiceItemRenderer":{"text":{"runs":[{"text":"Delen"}]},"icon":{"iconType":"SHARE"},"serviceEndpoint":{"clickTrackingParams":"CLcBEKQwGAAiEwiv8v_jgd6JAxW4ZXoFHZpnLqg=","commandMetadata":{"webCommandMetadata":{"sendPost":true,"apiUrl":"/youtubei/v1/share/get_share_panel"}},"shareEntityServiceEndpoint":{"serializedShareEntity":"CgtsOXNNZFpzTG9BYw%3D%3D","commands":[{"clickTrackingParams":"CLcBEKQwGAAiEwiv8v_jgd6JAxW4ZXoFHZpnLqg=","openPopupAction":{"popup":{"unifiedSharePanelRenderer":{"trackingParams":"CLoBEI5iIhMIr_L_44HeiQMVuGV6BR2aZy6o","showLoadingSpinner":true}},"popupType":"DIALOG","beReused":true}}]}},"trackingParams":"CLcBEKQwGAAiEwiv8v_jgd6JAxW4ZXoFHZpnLqg=","hasSeparator":true}}],"trackingParams":"CLcBEKQwGAAiEwiv8v_jgd6JAxW4ZXoFHZpnLqg=","accessibility":{"accessibilityData":{"label":"Actiemenu"}},"targetId":"watch-related-menu-button"}},"thumbnailOverlays":[{"thumbnailOverlayTimeStatusRenderer":{"text":{"accessibility":{"accessibilityData":{"label":"10 minuten en 12 seconden"}},"simpleText":"10:12"},"style":"DEFAULT"}},{"thumbnailOverlayToggleButtonRenderer":{"isToggled":false,"untoggledIcon":{"iconType":"WATCH_LATER"},"toggledIcon":{"iconType":"CHECK"},"untoggledTooltip":"Later bekijken","toggledTooltip":"Toegevoegd","untoggledServiceEndpoint":{"clickTrackingParams":"CLkBEPnnAxgBIhMIr_L_44HeiQMVuGV6BR2aZy6o","commandMetadata":{"webCommandMetadata":{"sendPost":true,"apiUrl":"/youtubei/v1/browse/edit_playlist"}},"playlistEditEndpoint":{"playlistId":"WL","actions":[{"addedVideoId":"l9sMdZsLoAc","action":"ACTION_ADD_VIDEO"}]}},"toggledServiceEndpoint":{"clickTrackingParams":"CLkBEPnnAxgBIhMIr_L_44HeiQMVuGV6BR2aZy6o","commandMetadata":{"webCommandMetadata":{"sendPost":true,"apiUrl":"/youtubei/v1/browse/edit_playlist"}},"playlistEditEndpoint":{"playlistId":"WL","actions":[{"action":"ACTION_REMOVE_VIDEO_BY_VIDEO_ID","removedVideoId":"l9sMdZsLoAc"}]}},"untoggledAccessibility":{"accessibilityData":{"label":"Later bekijken"}},"toggledAccessibility":{"accessibilityData":{"label":"Toegevoegd"}},"trackingParams":"CLkBEPnnAxgBIhMIr_L_44HeiQMVuGV6BR2aZy6o"}},{"thumbnailOverlayToggleButtonRenderer":{"untoggledIcon":{"iconType":"ADD_TO_QUEUE_TAIL"},"toggledIcon":{"iconType":"PLAYLIST_ADD_CHECK"},"untoggledTooltip":"Toevoegen aan wachtrij","toggledTooltip":"Toegevoegd","untoggledServiceEndpoint":{"clickTrackingParams":"CLgBEMfsBBgCIhMIr_L_44HeiQMVuGV6BR2aZy6o","commandMetadata":{"webCommandMetadata":{"sendPost":true}},"signalServiceEndpoint":{"signal":"CLIENT_SIGNAL","actions":[{"clickTrackingParams":"CLgBEMfsBBgCIhMIr_L_44HeiQMVuGV6BR2aZy6o","addToPlaylistCommand":{"openMiniplayer":false,"openListPanel":true,"videoId":"l9sMdZsLoAc","listType":"PLAYLIST_EDIT_LIST_TYPE_QUEUE","onCreateListCommand":{"clickTrackingParams":"CLgBEMfsBBgCIhMIr_L_44HeiQMVuGV6BR2aZy6o","commandMetadata":{"webCommandMetadata":{"sendPost":true,"apiUrl":"/youtubei/v1/playlist/create"}},"createPlaylistServiceEndpoint":{"videoIds":["l9sMdZsLoAc"],"params":"CAQ%3D"}},"videoIds":["l9sMdZsLoAc"]}}]}},"untoggledAccessibility":{"accessibilityData":{"label":"Toevoegen aan wachtrij"}},"toggledAccessibility":{"accessibilityData":{"label":"Toegevoegd"}},"trackingParams":"CLgBEMfsBBgCIhMIr_L_44HeiQMVuGV6BR2aZy6o"}},{"thumbnailOverlayNowPlayingRenderer":{"text":{"runs":[{"text":"Wordt nu afgespeeld"}]}}}],"accessibility":{"accessibilityData":{"label":"25 Filtering error packets http, dns, tcp - 10 minuten en 12 seconden - Naar kanaal gaan - TELCOMA Global - 15 weergaven - 3 maanden geleden - video afspelen"}},"richThumbnail":{"movingThumbnailRenderer":{"movingThumbnailDetails":{"thumbnails":[{"url":"https://i.ytimg.com/an_webp/l9sMdZsLoAc/mqdefault_6s.webp?du=3000 sqp=CKGb3LkG rs=AOn4CLCm71E0Dy0qyC-1OEPrP2ztu64oSA","width":320,"height":180}],"logAsMovingThumbnail":true},"enableHoveredLogging":true,"enableOverlay":true}}}},{"lockupViewModel":{"contentImage":{"collectionThumbnailViewModel":{"primaryThumbnail":{"thumbnailViewModel":{"image":{"sources":[{"url":"https://i.ytimg.com/vi/SOHGgAtJBas/hqdefault.jpg?sqp=-oaymwEwCKgBEF5IWvKriqkDIwgBFQAAiEIYAfABAfgB_gmAAqYFigIMCAAQARhlIGUoZTAP rs=AOn4CLCRnbA88CdWceLQmwK3_XqGzWHKLA","width":168,"height":94},{"url":"https://i.ytimg.com/vi/SOHGgAtJBas/hqdefault.jpg?sqp=-oaymwExCNACELwBSFryq4qpAyMIARUAAIhCGAHwAQH4Af4JgAKmBYoCDAgAEAEYZSBlKGUwDw== rs=AOn4CLBsRiwiWXvFYmLtYq8k5dkstIPurg","width":336,"height":188}]},"overlays":[{"thumbnailOverlayBadgeViewModel":{"thumbnailBadges":[{"thumbnailBadgeViewModel":{"icon":{"sources":[{"clientResource":{"imageName":"PLAYLISTS"}}]},"text":"49 video's","badgeStyle":"THUMBNAIL_OVERLAY_BADGE_STYLE_DEFAULT","backgroundColor":{"lightTheme":3355443,"darkTheme":3355443}}}],"position":"THUMBNAIL_OVERLAY_BADGE_POSITION_BOTTOM_END"}},{"thumbnailHoverOverlayViewModel":{"icon":{"sources":[{"clientResource":{"imageName":"PLAY_ALL"}}]},"text":{"content":"Alles afspelen","styleRuns":[{"startIndex":0,"length":14}]},"style":"THUMBNAIL_HOVER_OVERLAY_STYLE_COVER"}}],"backgroundColor":{"lightTheme":4144959,"darkTheme":4144959}}},"stackColor":{"lightTheme":10066329,"darkTheme":9211020}}},"metadata":{"lockupMetadataViewModel":{"title":{"content":"Wireshark - training course"},"metadata":{"contentMetadataViewModel":{"metadataRows":[{"metadataParts":[{"text":{"content":"TELCOMA Global
#############################