{"id":56,"date":"2016-12-23T14:19:54","date_gmt":"2016-12-23T13:19:54","guid":{"rendered":"http:\/\/netgab.net\/web\/?p=56"},"modified":"2016-12-23T14:33:55","modified_gmt":"2016-12-23T13:33:55","slug":"wlan-traffic-capture-1-general","status":"publish","type":"post","link":"https:\/\/netgab.net\/web\/2016\/12\/23\/wlan-traffic-capture-1-general\/","title":{"rendered":"WLAN traffic capture [1] &#8211; General"},"content":{"rendered":"<p>There are tons of &#8220;HowTos&#8221; out there how to capture wireless traffic. I plan to collect some of these methods and write a little how to on my own.<\/p>\n<p>This post focuses on general considerations for wireless capturing, independend of the used tool. The different methods to actually caputure 802.11 frames will be covered in later posts.<\/p>\n<p><!--more--><\/p>\n<p>First of all. WLAN capturing is not as easy (at least &#8211; not yet) as capturing traffic in a wired Ethernet network. First of all, if you capture natively with Windows and WinPcap \/ Wireshark you will see a normal Ethernet header &#8211; not an 802.11 frame. There <em>are<\/em> ways to capture 802.11 with Windows, but we come to that later.<\/p>\n<p>In general there are always the following guidelines when capturing wireless traffic:<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-69 size-full\" src=\"http:\/\/netgab.net\/web\/wp-content\/uploads\/2016\/12\/APs_color.png\" alt=\"Multiple APs\" width=\"202\" height=\"202\" srcset=\"https:\/\/netgab.net\/web\/wp-content\/uploads\/2016\/12\/APs_color.png 202w, https:\/\/netgab.net\/web\/wp-content\/uploads\/2016\/12\/APs_color-150x150.png 150w, https:\/\/netgab.net\/web\/wp-content\/uploads\/2016\/12\/APs_color-100x100.png 100w\" sizes=\"auto, (max-width: 202px) 100vw, 202px\" \/>Set the channel<br \/>\n<\/strong>It is very important to set the correct channel before starting the capture. Otherwise your wireless adapter will eventually scan through all the available channels and this needs time. So if you don&#8217;t set the channel you will either lose packets or you won&#8217;t capture anything at all because you are statically on the wrong channel.<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-65\" src=\"http:\/\/netgab.net\/web\/wp-content\/uploads\/2016\/12\/network-37139_640-300x219.png\" alt=\"Wireless NIC\" width=\"100\" height=\"73\" srcset=\"https:\/\/netgab.net\/web\/wp-content\/uploads\/2016\/12\/network-37139_640-300x219.png 300w, https:\/\/netgab.net\/web\/wp-content\/uploads\/2016\/12\/network-37139_640.png 640w\" sizes=\"auto, (max-width: 100px) 100vw, 100px\" \/>Set your card to monitor \/ <span lang=\"en\" xml:lang=\"en\">promiscuous mode<br \/>\n<\/span><\/strong>Per default your network card only processes frames, which are intended for the current station. So without monitor mode you&#8217;ll see<\/p>\n<ul>\n<li>Frame from and to your actual workstation<\/li>\n<li>Broad- and Multicast frames<\/li>\n<\/ul>\n<p>For a lot of use cases this is enough &#8211; but in most cases you want to see frames from and to other stations. Therefore, you must set your adapter in monitor mode.<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-63 size-full\" src=\"http:\/\/netgab.net\/web\/wp-content\/uploads\/2016\/12\/kgpg.png\" alt=\"Lock\" width=\"64\" height=\"64\" \/> Encryption<span lang=\"en\" xml:lang=\"en\"><br \/>\n<\/span><\/strong>Wireless networks are typically encrypted with AES. So in a wireless capture you can only decode the layer-2 information in clear text. Everything below the frame (layer-3 to 7) is encrypted. So you won&#8217;t even see the IP addresses.<\/p>\n<p>However, in most cases this is enough. Everything below layer-2 is not relevant for analyzing wireless networks. Typically you need management and control frames to understand how a SSID works and troubleshoot most of client connectivity issues.<\/p>\n<p>Sometimes layer-3 information would be helpful for better packet filtering based on IP addresses or for QoS related analysis (ToS \/ DSCP value).<\/p>\n<p>In general, Wireshark is able to decode encrypted wireless frames for WPA2 PERSONAL (pre-shared key). But the initial 4-way handshake between AP and the client in question must be in the capture file as well.<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-59 \" src=\"http:\/\/netgab.net\/web\/wp-content\/uploads\/2016\/12\/filter.png\" alt=\"Image of a filter\" width=\"78\" height=\"78\" srcset=\"https:\/\/netgab.net\/web\/wp-content\/uploads\/2016\/12\/filter.png 128w, https:\/\/netgab.net\/web\/wp-content\/uploads\/2016\/12\/filter-100x100.png 100w\" sizes=\"auto, (max-width: 78px) 100vw, 78px\" \/><strong>Filtering<\/strong><\/p>\n<p>Wireless is chatty. The management and control frames can be overwhelming if looking for a tiny piece of information.<br \/>\nSo know how you can filter effectively in two ways:<\/p>\n<ul>\n<li>Capture filter that only relevant frames are contained in your capture<\/li>\n<li>Display filter to find the information you&#8217;re searching for.<\/li>\n<\/ul>\n<p>There will be a separate post on filtering.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Have fun with this upcoming series.<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are tons of &#8220;HowTos&#8221; out there how to capture wireless traffic. I plan to collect some of these methods and write a little how to on my own. This post focuses on general considerations for wireless capturing, independend of the used tool. The different methods to actually caputure 802.11 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":57,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":true,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[10,11,9],"class_list":["post-56","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-capture","tag-sniffing","tag-wlan"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>WLAN traffic capture [1] - General - NetGab - The daily networking madness<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/netgab.net\/web\/2016\/12\/23\/wlan-traffic-capture-1-general\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"WLAN traffic capture [1] - General - NetGab - The daily networking madness\" \/>\n<meta property=\"og:description\" content=\"There are tons of &#8220;HowTos&#8221; out there how to capture wireless traffic. I plan to collect some of these methods and write a little how to on my own. This post focuses on general considerations for wireless capturing, independend of the used tool. The different methods to actually caputure 802.11 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/netgab.net\/web\/2016\/12\/23\/wlan-traffic-capture-1-general\/\" \/>\n<meta property=\"og:site_name\" content=\"NetGab - The daily networking madness\" \/>\n<meta property=\"article:published_time\" content=\"2016-12-23T13:19:54+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2016-12-23T13:33:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/netgab.net\/web\/wp-content\/uploads\/2016\/12\/Linux_Capture.png\" \/>\n\t<meta property=\"og:image:width\" content=\"597\" \/>\n\t<meta property=\"og:image:height\" content=\"389\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"joe\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"joe\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/netgab.net\\\/web\\\/2016\\\/12\\\/23\\\/wlan-traffic-capture-1-general\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/netgab.net\\\/web\\\/2016\\\/12\\\/23\\\/wlan-traffic-capture-1-general\\\/\"},\"author\":{\"name\":\"joe\",\"@id\":\"https:\\\/\\\/netgab.net\\\/web\\\/#\\\/schema\\\/person\\\/b3c8a779d0a772a9b047559d7bba4ccd\"},\"headline\":\"WLAN traffic capture [1] &#8211; General\",\"datePublished\":\"2016-12-23T13:19:54+00:00\",\"dateModified\":\"2016-12-23T13:33:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/netgab.net\\\/web\\\/2016\\\/12\\\/23\\\/wlan-traffic-capture-1-general\\\/\"},\"wordCount\":470,\"commentCount\":1,\"image\":{\"@id\":\"https:\\\/\\\/netgab.net\\\/web\\\/2016\\\/12\\\/23\\\/wlan-traffic-capture-1-general\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/netgab.net\\\/web\\\/wp-content\\\/uploads\\\/2016\\\/12\\\/Linux_Capture.png\",\"keywords\":[\"capture\",\"sniffing\",\"wlan\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/netgab.net\\\/web\\\/2016\\\/12\\\/23\\\/wlan-traffic-capture-1-general\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/netgab.net\\\/web\\\/2016\\\/12\\\/23\\\/wlan-traffic-capture-1-general\\\/\",\"url\":\"https:\\\/\\\/netgab.net\\\/web\\\/2016\\\/12\\\/23\\\/wlan-traffic-capture-1-general\\\/\",\"name\":\"WLAN traffic capture [1] - General - NetGab - The daily networking madness\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/netgab.net\\\/web\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/netgab.net\\\/web\\\/2016\\\/12\\\/23\\\/wlan-traffic-capture-1-general\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/netgab.net\\\/web\\\/2016\\\/12\\\/23\\\/wlan-traffic-capture-1-general\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/netgab.net\\\/web\\\/wp-content\\\/uploads\\\/2016\\\/12\\\/Linux_Capture.png\",\"datePublished\":\"2016-12-23T13:19:54+00:00\",\"dateModified\":\"2016-12-23T13:33:55+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/netgab.net\\\/web\\\/#\\\/schema\\\/person\\\/b3c8a779d0a772a9b047559d7bba4ccd\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/netgab.net\\\/web\\\/2016\\\/12\\\/23\\\/wlan-traffic-capture-1-general\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/netgab.net\\\/web\\\/2016\\\/12\\\/23\\\/wlan-traffic-capture-1-general\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/netgab.net\\\/web\\\/2016\\\/12\\\/23\\\/wlan-traffic-capture-1-general\\\/#primaryimage\",\"url\":\"https:\\\/\\\/netgab.net\\\/web\\\/wp-content\\\/uploads\\\/2016\\\/12\\\/Linux_Capture.png\",\"contentUrl\":\"https:\\\/\\\/netgab.net\\\/web\\\/wp-content\\\/uploads\\\/2016\\\/12\\\/Linux_Capture.png\",\"width\":597,\"height\":389},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/netgab.net\\\/web\\\/2016\\\/12\\\/23\\\/wlan-traffic-capture-1-general\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/netgab.net\\\/web\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"WLAN traffic capture [1] &#8211; General\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/netgab.net\\\/web\\\/#website\",\"url\":\"https:\\\/\\\/netgab.net\\\/web\\\/\",\"name\":\"NetGab - The daily networking madness\",\"description\":\"Networking at its best ... and worst\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/netgab.net\\\/web\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/netgab.net\\\/web\\\/#\\\/schema\\\/person\\\/b3c8a779d0a772a9b047559d7bba4ccd\",\"name\":\"joe\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/32b66c7321ea985e8c54f9975e87605df70ac5e4167a1e4153d91d72c67cf150?s=96&d=retro&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/32b66c7321ea985e8c54f9975e87605df70ac5e4167a1e4153d91d72c67cf150?s=96&d=retro&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/32b66c7321ea985e8c54f9975e87605df70ac5e4167a1e4153d91d72c67cf150?s=96&d=retro&r=g\",\"caption\":\"joe\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"WLAN traffic capture [1] - General - NetGab - The daily networking madness","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/netgab.net\/web\/2016\/12\/23\/wlan-traffic-capture-1-general\/","og_locale":"en_US","og_type":"article","og_title":"WLAN traffic capture [1] - General - NetGab - The daily networking madness","og_description":"There are tons of &#8220;HowTos&#8221; out there how to capture wireless traffic. I plan to collect some of these methods and write a little how to on my own. This post focuses on general considerations for wireless capturing, independend of the used tool. The different methods to actually caputure 802.11 [&hellip;]","og_url":"https:\/\/netgab.net\/web\/2016\/12\/23\/wlan-traffic-capture-1-general\/","og_site_name":"NetGab - The daily networking madness","article_published_time":"2016-12-23T13:19:54+00:00","article_modified_time":"2016-12-23T13:33:55+00:00","og_image":[{"width":597,"height":389,"url":"https:\/\/netgab.net\/web\/wp-content\/uploads\/2016\/12\/Linux_Capture.png","type":"image\/png"}],"author":"joe","twitter_card":"summary_large_image","twitter_misc":{"Written by":"joe","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/netgab.net\/web\/2016\/12\/23\/wlan-traffic-capture-1-general\/#article","isPartOf":{"@id":"https:\/\/netgab.net\/web\/2016\/12\/23\/wlan-traffic-capture-1-general\/"},"author":{"name":"joe","@id":"https:\/\/netgab.net\/web\/#\/schema\/person\/b3c8a779d0a772a9b047559d7bba4ccd"},"headline":"WLAN traffic capture [1] &#8211; General","datePublished":"2016-12-23T13:19:54+00:00","dateModified":"2016-12-23T13:33:55+00:00","mainEntityOfPage":{"@id":"https:\/\/netgab.net\/web\/2016\/12\/23\/wlan-traffic-capture-1-general\/"},"wordCount":470,"commentCount":1,"image":{"@id":"https:\/\/netgab.net\/web\/2016\/12\/23\/wlan-traffic-capture-1-general\/#primaryimage"},"thumbnailUrl":"https:\/\/netgab.net\/web\/wp-content\/uploads\/2016\/12\/Linux_Capture.png","keywords":["capture","sniffing","wlan"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/netgab.net\/web\/2016\/12\/23\/wlan-traffic-capture-1-general\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/netgab.net\/web\/2016\/12\/23\/wlan-traffic-capture-1-general\/","url":"https:\/\/netgab.net\/web\/2016\/12\/23\/wlan-traffic-capture-1-general\/","name":"WLAN traffic capture [1] - General - NetGab - The daily networking madness","isPartOf":{"@id":"https:\/\/netgab.net\/web\/#website"},"primaryImageOfPage":{"@id":"https:\/\/netgab.net\/web\/2016\/12\/23\/wlan-traffic-capture-1-general\/#primaryimage"},"image":{"@id":"https:\/\/netgab.net\/web\/2016\/12\/23\/wlan-traffic-capture-1-general\/#primaryimage"},"thumbnailUrl":"https:\/\/netgab.net\/web\/wp-content\/uploads\/2016\/12\/Linux_Capture.png","datePublished":"2016-12-23T13:19:54+00:00","dateModified":"2016-12-23T13:33:55+00:00","author":{"@id":"https:\/\/netgab.net\/web\/#\/schema\/person\/b3c8a779d0a772a9b047559d7bba4ccd"},"breadcrumb":{"@id":"https:\/\/netgab.net\/web\/2016\/12\/23\/wlan-traffic-capture-1-general\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/netgab.net\/web\/2016\/12\/23\/wlan-traffic-capture-1-general\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/netgab.net\/web\/2016\/12\/23\/wlan-traffic-capture-1-general\/#primaryimage","url":"https:\/\/netgab.net\/web\/wp-content\/uploads\/2016\/12\/Linux_Capture.png","contentUrl":"https:\/\/netgab.net\/web\/wp-content\/uploads\/2016\/12\/Linux_Capture.png","width":597,"height":389},{"@type":"BreadcrumbList","@id":"https:\/\/netgab.net\/web\/2016\/12\/23\/wlan-traffic-capture-1-general\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/netgab.net\/web\/"},{"@type":"ListItem","position":2,"name":"WLAN traffic capture [1] &#8211; General"}]},{"@type":"WebSite","@id":"https:\/\/netgab.net\/web\/#website","url":"https:\/\/netgab.net\/web\/","name":"NetGab - The daily networking madness","description":"Networking at its best ... and worst","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/netgab.net\/web\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/netgab.net\/web\/#\/schema\/person\/b3c8a779d0a772a9b047559d7bba4ccd","name":"joe","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/32b66c7321ea985e8c54f9975e87605df70ac5e4167a1e4153d91d72c67cf150?s=96&d=retro&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/32b66c7321ea985e8c54f9975e87605df70ac5e4167a1e4153d91d72c67cf150?s=96&d=retro&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/32b66c7321ea985e8c54f9975e87605df70ac5e4167a1e4153d91d72c67cf150?s=96&d=retro&r=g","caption":"joe"}}]}},"jetpack_featured_media_url":"https:\/\/netgab.net\/web\/wp-content\/uploads\/2016\/12\/Linux_Capture.png","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8dgKr-U","_links":{"self":[{"href":"https:\/\/netgab.net\/web\/wp-json\/wp\/v2\/posts\/56","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/netgab.net\/web\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/netgab.net\/web\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/netgab.net\/web\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/netgab.net\/web\/wp-json\/wp\/v2\/comments?post=56"}],"version-history":[{"count":12,"href":"https:\/\/netgab.net\/web\/wp-json\/wp\/v2\/posts\/56\/revisions"}],"predecessor-version":[{"id":80,"href":"https:\/\/netgab.net\/web\/wp-json\/wp\/v2\/posts\/56\/revisions\/80"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/netgab.net\/web\/wp-json\/wp\/v2\/media\/57"}],"wp:attachment":[{"href":"https:\/\/netgab.net\/web\/wp-json\/wp\/v2\/media?parent=56"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/netgab.net\/web\/wp-json\/wp\/v2\/categories?post=56"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/netgab.net\/web\/wp-json\/wp\/v2\/tags?post=56"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}