{"id":455,"date":"2019-10-18T15:57:46","date_gmt":"2019-10-18T06:57:46","guid":{"rendered":"http:\/\/www.fatware.jp\/?page_id=455"},"modified":"2019-10-18T15:57:47","modified_gmt":"2019-10-18T06:57:47","slug":"monitor-%e3%83%a2%e3%83%bc%e3%83%89%e3%81%8c%e3%81%a7%e3%81%8d%e3%82%8busb-wifi-%e3%82%a2%e3%83%80%e3%83%97%e3%82%bf%e3%81%ae%e8%aa%bf%e6%9f%bb-2019%e5%b9%b410%e6%9c%88%e7%89%88","status":"publish","type":"page","link":"https:\/\/www.fatware.jp\/?page_id=455","title":{"rendered":"monitor \u30e2\u30fc\u30c9\u304c\u3067\u304d\u308bUSB wifi \u30a2\u30c0\u30d7\u30bf\u306e\u8abf\u67fb 2019\u5e7410\u6708\u7248"},"content":{"rendered":"\n<p>monitor mode \u304c\u3067\u304d\u308bUSB wifi \u30a2\u30c0\u30d7\u30bf\u306b\u95a2\u3059\u308b\u6700\u65b0\u60c5\u5831\u304c\u307b\u3068\u3093\u3069\u306a\u3044\u305f\u3081\u3001\u6280\u9069\u306e\u3042\u308bUSB wifi \u30a2\u30c0\u30d7\u30bf\u3092\u6570\u7a2e\u985e\u8cfc\u5165\u3057\u3066\u691c\u8a3c\u3057\u305f\u7d50\u679c\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u691c\u8a3c\u74b0\u5883<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>\u30cf\u30fc\u30c9\u30a6\u30a8\u30a2\uff1aRaspberry pi 4<\/li><li>OS (raspbian)\uff1aBuster (debian_vesion 10.1)<\/li><li>\u30ab\u30fc\u30cd\u30eb\uff1aLinux raspberrypi 4.19.66-v7+&nbsp;<br><\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">\u8abf\u67fb\u7d50\u679c<\/h3>\n\n\n\n<table class=\"wp-block-table\"><tbody><tr><td>\u30e1\u30fc\u30ab\u30fc<\/td><td>\u578b\u756a<\/td><td>\u5bfe\u5fdc802.11\u898f\u683c<\/td><td>monitor mode<\/td><td>\u5b89\u5b9a\u6027<\/td><td><br>\u8ffd\u52a0\u30c9\u30e9\u30a4\u30d0\u30fc<\/td><\/tr><tr><td>TP-Link<\/td><td><a href=\"https:\/\/www.tp-link.com\/jp\/home-networking\/adapter\/archer-t4u\/\">Archer T4U 3.0<\/a><\/td><td>ac\/n\/a\/b\/g<\/td><td>OK<\/td><td>OK<\/td><td>rtl8812bu\uff08<a href=\"https:\/\/github.com\/sbarthelmess\/rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959\">raspberry\u7528 git<\/a>\uff09<\/td><\/tr><tr><td>TP-Link<\/td><td><a href=\"https:\/\/www.tp-link.com\/jp\/home-networking\/adapter\/tl-wn823n\/\">TL-WN823N<\/a><\/td><td>ac\/n\/a\/b\/g<\/td><td>OK<\/td><td>OK<\/td><td><a href=\"https:\/\/github.com\/Mange\/rtl8192eu-linux-driver.git\">8192eu<\/a><\/td><\/tr><tr><td>TP-Link<\/td><td><a href=\"https:\/\/www.tp-link.com\/jp\/home-networking\/adapter\/tl-wn822n\/\">TL-WN822N<\/a><\/td><td>ac\/n\/a\/b\/g<\/td><td>OK<\/td><td>OK<\/td><td><a href=\"https:\/\/github.com\/Mange\/rtl8192eu-linux-driver.git\">8192eu<\/a><\/td><\/tr><tr><td>Buffalo<\/td><td><a href=\"https:\/\/www.buffalo.jp\/product\/detail\/wi-u2-433dms.html\">WI-U2-433DMS<\/a><\/td><td>ac\/n\/a\/b\/g<\/td><td>OK<\/td><td>OK<\/td><td><a href=\"https:\/\/github.com\/abperiasamy\/rtl8812AU_8821AU_linux\/\">rtl8812au<\/a>&nbsp;\u307e\u305f\u306f&nbsp;<a href=\"https:\/\/github.com\/aircrack-ng\/rtl8812au\">88XXau<\/a>&nbsp; \u203b\uff11<\/td><\/tr><tr><td>Buffalo<\/td><td><a href=\"https:\/\/www.buffalo.jp\/product\/detail\/wli-uc-gnm2s.html\">WLI-UC-GNM2S<\/a><\/td><td>n\/b\/g<\/td><td>OK<\/td><td>OK<\/td><td>\u306a\u3057 \u203b\uff12<br><\/td><\/tr><tr><td>I-O Data<\/td><td><a href=\"https:\/\/www.iodata.jp\/product\/network\/adp\/wn-ac867u\/index.htm\">WN-AC867U<\/a><\/td><td>ac\/n\/a\/b\/g<\/td><td>OK<\/td><td>OK<\/td><td><a href=\"https:\/\/github.com\/abperiasamy\/rtl8812AU_8821AU_linux\/\">rtl8812au<\/a> \u307e\u305f\u306f&nbsp;<a href=\"https:\/\/github.com\/aircrack-ng\/rtl8812au\">88XXau<\/a>&nbsp;&nbsp;\u203b\uff11<\/td><\/tr><tr><td>IO-DATA<\/td><td><a href=\"https:\/\/www.iodata.jp\/product\/network\/adp\/wn-g150um\/index.htm\">WN-G150UMK<\/a><\/td><td>n\/b\/g<\/td><td>NG <br>\u203b\uff13<br>\u203b\uff14<\/td><td>&nbsp;&#8212;<\/td><td>\u306a\u3057 \u203b\uff15<br><br><\/td><\/tr><\/tbody><\/table>\n\n\n\n<h5 class=\"wp-block-heading\">\u203b\uff11<\/h5>\n\n\n\n<p>\u4e21\u65b9\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u306f\u4e21\u65b9\u30ed\u30fc\u30c9\u3055\u308c\u307e\u3059\u304c\u3001\u554f\u984c\u306a\u304fmonitor mode \u304c\u52d5\u4f5c\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">\u203b\uff12<\/h5>\n\n\n\n<p>\u30ed\u30fc\u30c9\u3055\u308c\u308b\u30c9\u30e9\u30a4\u30d0\u306f\u3001 raspberry pi \u306b\u6a19\u6e96\u3067\u5165\u3063\u3066\u3044\u308b rt2800lib,rt2x00lib,rt2x00usb \u3067\u3057\u305f\u3002<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">\u203b\uff13<\/h5>\n\n\n\n<p>raspberry pi \u306b\u6a19\u6e96\u3067\u5165\u3063\u3066\u3044\u308b 8192cu \u306e\u30c9\u30e9\u30a4\u30d0\u30fc\u3067\u901a\u5e38\u306eNIC\u3068\u3057\u3066\u8a8d\u8b58\u3055\u308c\u3001\u901a\u5e38\u306eIP\u901a\u4fe1\u7528NIC\uff08managed\uff09\u3068\u3057\u3066\u306f\u554f\u984c\u306a\u304f\u5229\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">\u203b\uff14<\/h5>\n\n\n\n<p><strong>iw list<\/strong> \u306a\u3069\u306e\u30b3\u30de\u30f3\u30c9\u3067\u8a8d\u8b58\u3055\u308c\u305fNIC\u306e\u8a73\u7d30\u3092\u78ba\u8a8d\u3059\u308b\u3068\u3001supported interfaces \u306b monitor \u304c\u30ea\u30b9\u30c8\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3057\u304b\u3057\u306a\u304c\u3089\u3001<strong>iwconfig wlan1 mode monitor<\/strong>&nbsp;\u3067monitor mode \u3092\u8a2d\u5b9a\u3057\u3088\u3046\u3068\u3059\u308b\u3068 &#8220;SET failed on device wlan1 ; Invalid argument.&#8221; \u306e\u30a8\u30e9\u30fc\u306b\u306a\u308a\u3001monitor mode\u3092\u8a2d\u5b9a\u3067\u304d\u307e\u305b\u3093\u3002<strong>iw phy phy1 interface add mon0 type monitor<\/strong>&nbsp;\u306e\u5834\u5408\u3060\u3068 mon0 \u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u30a8\u30e9\u30fc\u7121\u304f\u4f5c\u6210\u3067\u304d\u307e\u3059\u304c\u3001<strong>tcpdump<\/strong> \u306a\u3069\u3092\u5b9f\u884c\u3057\u3066\u3082\u4f55\u306e\u30d5\u30ec\u30fc\u30e0\u3082\u30ad\u30e3\u30d7\u30c1\u30e3\u3067\u304d\u306a\u3044\u7d50\u679c\u3068\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">\u203b\uff15<\/h5>\n\n\n\n<p>\u306a\u304a\u3001\u300crealtek 8192cu \u306e\u30c1\u30c3\u30d7\u30bb\u30c3\u30c8\u306e\u5834\u5408\u306f\u3001\u6a19\u6e96\u3067\u30ed\u30fc\u30c9\u3055\u308c\u308b 8192cu \u3092\/etc\/modprobe.d\/ \u306e blacklist\u306b\u5165\u308c\u3066\u3001\u4ee3\u308f\u308a\u306b rtl8192cu \u3092 blacklist \u304b\u3089\u5916\u3057\u3001rtlwifi \u7d4c\u7531\u3067\u30ed\u30fc\u30c9\u3059\u308b\u3068\u52d5\u304f\u3088\u300d\u3068\u3044\u3046<a href=\"https:\/\/i.chillrain.com\/index.php\/fix-rtl8192cu-monitor-mode-on-raspberry-pi\/\">2015\u5e74\u306e\u30d6\u30ed\u30b0\u8a18\u4e8b<\/a>\u304c\u3042\u308a\u307e\u3059\u3002rtlwifi \u3082rtl8192cu \u3082\u6a19\u6e96\u3067\u5165\u3063\u3066\u3044\u305f\u305f\u3081\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\u304c\u3001WN-G1650UMK \u306e\u5834\u5408\u306f ifconfig \u3067\u3082 iw \u3067\u3082NIC\u3068\u3057\u3066\u8a8d\u8b58\u3055\u308c\u306a\u3044\u7d50\u679c\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Raspberry Pi\u3078\u306e\u8ffd\u52a0\u30c9\u30e9\u30a4\u30d0\u30fc\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30ebTIPS<\/h3>\n\n\n\n<p>\u8abf\u67fb\u7d50\u679c\u8868\u306b\u3042\u308b \u30c9\u30e9\u30a4\u30d0\u30fc\u3078\u306e\u30ea\u30f3\u30af\u306f\u3069\u308c\u3082 github \u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u306a\u308a\u307e\u3059\u3002\u57fa\u672c\u7684\u306b\u306f git clone \u3057\u305f\u30ea\u30dd\u30b8\u30c8\u30ea\u306e README.md \u306b\u66f8\u3044\u3066\u3042\u308b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\uff08make \u307e\u305f\u306fdkms\uff09\u306e\u901a\u308a\u306b\u884c\u3048\u3070\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002\u3053\u3053\u3067\u306f\u3001\u5171\u901a\u3059\u308bTIPS\u3092\u8a18\u8f09\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\uff11\uff0eraspberry pi \u306e\u30ab\u30fc\u30cd\u30eb\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u6700\u65b0\u306b\u3059\u308b<\/h4>\n\n\n\n<p>\u30ab\u30fc\u30cd\u30eb\u3084\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u53e4\u3044\u3068\u3001\u30c9\u30e9\u30a4\u30d0\u30fc\u306emake \u306e\u969b\u306b\u30d8\u30c3\u30c0\u3068\u53c2\u7167\u3059\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306a\u3069\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u30df\u30b9\u30de\u30c3\u30c1\u304c\u8d77\u304d\u3084\u3059\u3044\u305f\u3081\u3001\u6700\u521d\u306b\u6700\u65b0\u30d1\u30c3\u30b1\u30fc\u30b8\u3068\u6700\u65b0\u30ab\u30fc\u30cd\u30eb\u306b\u3057\u3066\u304a\u304f\u306e\u304c\u7121\u96e3\u3067\u3059\u3002\u4e0b\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get -y update\nsudo apt-get -y upgrade\nsudo apt-get -y dist-upgrade\nsudo reboot<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\uff12\uff0e\u5fc5\u8981\u306apackage\u3092apt-get \u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/h4>\n\n\n\n<p>\u30c9\u30e9\u30a4\u30d0\u30fc\u3084\u30d8\u30c3\u30c0\u30d5\u30a1\u30a4\u30eb\u3001git \u306a\u3069\u3001\u304a\u304a\u3080\u306d\u4e0b\u8a18\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get -y install linux-image-rpi-rpfv linux-headers-rpi-rpfv raspberrypi-kernel-headers dkms build-essential bc git<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\uff13\uff0e\u30c9\u30e9\u30a4\u30d0\u30fc\u306egit \u30ea\u30dd\u30b8\u30c8\u30ea\u3092clone \u3059\u308b<\/h4>\n\n\n\n<p>\u524d\u9805\u306eapt-get \u3067 \/usr\/src\/ \u306blinux \u30ab\u30fc\u30cd\u30eb\u30d8\u30c3\u30c0\u3082\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\/usr\/src\/ \u4ee5\u4e0b\u306bclone \u3059\u308b\u306e\u304c\u308f\u304b\u308a\u3084\u3059\u304f\u3066\u3088\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002\u4f8b\u3068\u3057\u3066\u3001\u4e0b\u8a18\u306b rtl8812eu \u306e\u30c9\u30e9\u30a4\u30d0\u30fc\u306egit \u30ea\u30dd\u30b8\u30c8\u30ea\u3092clone\u3059\u308b\u5834\u5408\u3092\u8a18\u8f09\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd \/usr\/src\nsudo git clone https:\/\/github.com\/Mange\/rtl8192eu-linux-driver<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\uff14\uff0eMakefile \u3092Raspberry Pi \u7528\u306b\u7de8\u96c6\u3059\u308b<\/h4>\n\n\n\n<p>git clone \u3057\u305f\u30c9\u30e9\u30a4\u30d0\u30fc\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306b\u3042\u308b Makefile \u306e\u521d\u671f\u8a2d\u5b9a\u306f\u3001\u307b\u3068\u3093\u3069\u306e\u5834\u5408 CONFIG_PLATFORM_I386_PC \u304c\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u307e\u3059 \uff08y \u306b\u306a\u3063\u3066\u3044\u308b\uff09\u3002Raspberry Pi \u7528\u306b\u3059\u308b\u306b\u306f\u3001CONFIG_PLATFORM_ARM_RPI \u304c\u6709\u52b9\u306b\u306a\u308b\u3088\u3046\u306b vi \u306a\u3069\u306e\u30a8\u30c7\u30a3\u30bf\u3067\u7de8\u96c6\u3057\u307e\u3059\u3002\u3053\u306e\u3068\u304d\u3001CONFIG_PLATFORM_I386_PC \u3092\u7121\u52b9\uff08n \u306b\u3059\u308b\uff09\u306e\u3092\u5fd8\u308c\u306a\u3044\u3088\u3046\u306b\u6ce8\u610f\u3057\u3066\u4e0b\u3055\u3044\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>CONFIG_PLATFORM_I386_PC = n\nCONFIG_PLATFORM_ARM_RPI = y<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\uff14\uff0e\u30c9\u30e9\u30a4\u30d0\u30fc\u3092make \u3059\u308b<\/h4>\n\n\n\n<p>git clone \u3057\u305f\u30c9\u30e9\u30a4\u30d0\u30fc\u306eREADME.md \u306b\u306f\u3001\u591a\u304f\u306e\u5834\u5408 dkms \u3092\u5229\u7528\u3059\u308b\u5834\u5408\u3068 make \u3092\u5b9f\u884c\u3059\u308b\u5834\u5408\u3068\u4e21\u65b9\u66f8\u304b\u308c\u3066\u3044\u307e\u3059\u3002\u307e\u305f\u3001\u30c9\u30e9\u30a4\u30d0\u30fc\u306b\u3088\u3063\u3066\u306f\u7af6\u5408\u3059\u308b\u4ed6\u306e\u30c9\u30e9\u30a4\u30d0\u30fc\u3092 \/etc\/modprobe.d\/ \u306b blacklist \u3068\u3057\u3066\u8ffd\u52a0\u3059\u308b\u3088\u3046\u306b\u66f8\u304b\u308c\u3066\u3044\u308b\u5834\u5408\u3082\u3042\u308b\u306e\u3067\u3001&nbsp;README.md \u306b\u66f8\u3044\u3066\u3042\u308b\u624b\u9806\u306b\u5f93\u3046\u306e\u304c\u7121\u96e3\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>monitor mode \u304c\u3067\u304d\u308bUSB wifi \u30a2\u30c0\u30d7\u30bf\u306b\u95a2\u3059\u308b\u6700\u65b0\u60c5\u5831\u304c\u307b <a href=\"https:\/\/www.fatware.jp\/?page_id=455\" class=\"read-more\">\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":394,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-455","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.fatware.jp\/index.php?rest_route=\/wp\/v2\/pages\/455","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fatware.jp\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.fatware.jp\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.fatware.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fatware.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=455"}],"version-history":[{"count":23,"href":"https:\/\/www.fatware.jp\/index.php?rest_route=\/wp\/v2\/pages\/455\/revisions"}],"predecessor-version":[{"id":479,"href":"https:\/\/www.fatware.jp\/index.php?rest_route=\/wp\/v2\/pages\/455\/revisions\/479"}],"up":[{"embeddable":true,"href":"https:\/\/www.fatware.jp\/index.php?rest_route=\/wp\/v2\/pages\/394"}],"wp:attachment":[{"href":"https:\/\/www.fatware.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=455"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}