{"id":10186,"date":"2021-03-01T02:20:05","date_gmt":"2021-02-28T17:20:05","guid":{"rendered":"https:\/\/hack.gpl.jp\/?p=10186"},"modified":"2021-05-02T06:56:55","modified_gmt":"2021-05-01T21:56:55","slug":"post-10186","status":"publish","type":"post","link":"https:\/\/hack.gpl.jp\/2021\/03\/01\/post-10186.html","title":{"rendered":"XIAO\u3067Mac\u306e\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\u5c02\u7528USB\u30ad\u30fc\u3092\u4f5c\u308bDIY"},"content":{"rendered":"\n
\n\"\u3058\u3083\u3093\u304f\u306f\u3063\u304f\"\n<\/div><\/div><\/div>
\u3058\u3083\u3093\u304f\u306f\u3063\u304f<\/div><\/div>
<\/svg><\/div>
\n

\u30b9\u30af\u30b7\u30e7\u306e\u5c02\u7528\u30ad\u30fc\u304c\u307b\u3057\u3044\uff01<\/p>\n<\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/div>\n\n\n\n

<\/svg><\/div>
\n

Mac\u3060\u3068\u3001\u30b7\u30d5\u30c8\uff0b\u30b3\u30de\u30f3\u30c9\uff0b\uff13\u3068\u304b\u306e\uff1f<\/p>\n<\/div><\/div><\/div><\/div><\/div>

\n\"\u3074\u30fc\"\n<\/div><\/div><\/div>
\u3074\u30fc<\/div><\/div><\/div><\/div><\/div>\n\n\n\n
\n\"\u3058\u3083\u3093\u304f\u306f\u3063\u304f\"\n<\/div><\/div><\/div>
\u3058\u3083\u3093\u304f\u306f\u3063\u304f<\/div><\/div>
<\/svg><\/div>
\n

Mac\u6a19\u6e96\u3060\u3068\u305d\u3046\u3060\u3051\u3069\u3001Skitch\u3063\u3066\u3044\u3046\u30b9\u30af\u30b7\u30e7\u30c4\u30fc\u30eb\u4f7f\u3063\u3066\u308b\u304b\u3089\u30b7\u30d5\u30c8\uff0b\u30b3\u30de\u30f3\u30c9\uff0b\uff15\u3060\u306d\u3002<\/p>\n<\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/div>\n\n\n\n

<\/svg><\/div>
\n

\u3044\u308d\u3093\u306a\u9700\u8981\u304c\u3042\u308b\u3068\u601d\u3046\u304b\u3089\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3067\u304d\u308b\u3068\u3044\u3044\u306d<\/p>\n<\/div><\/div><\/div><\/div><\/div>

\n\"\u3074\u30fc\"\n<\/div><\/div><\/div>
\u3074\u30fc<\/div><\/div><\/div><\/div><\/div>\n\n\n\n

\u4eca\u56de\u306eDIY\u306f\u3001\u3061\u3087\u3063\u3068\u5b9f\u7528\u7684\u306a\u3082\u306e\u3092\u4f5c\u308d\u3046\u304b\u3068\u601d\u3044\u307e\u3059<\/p>\n\n\n\n

\u6700\u8fd1\u3001\u306f\u307e\u3063\u3066\u3044\u308b\u5c0f\u3055\u304f\u3066\u5b89\u3044Arduino\u4e92\u63db\u6a5f\u3001XIAO\u3092\u4f7f\u3063\u3066\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3067\u304d\u308b\u30ad\u30fc\u30dc\u30fc\u30c9\u3092\u4f5c\u308d\u3046\u3068\u601d\u3044\u307e\u3059\uff01\u3000\u5192\u982d\u3067\u3082\u5c11\u3057\u89e6\u308c\u307e\u3057\u305f\u304c\u3001Mac\u306e\u30b9\u30af\u30b7\u30e7\u30a2\u30d7\u30ea\u3067Skitch\u3063\u3066\u3044\u3046\u30c4\u30fc\u30eb\u4f7f\u3063\u3066\u3044\u308b\u3093\u3067\u3059\u304c\u3001\u3053\u306e\u30b9\u30af\u30b7\u30e7\u306e\u30b7\u30e7\u30fc\u30c8\u5c02\u7528\u306e\u30ad\u30fc\u30dc\u30fc\u30c9\u3092\u4f5c\u308d\u3046\u304b\u3068\u3002\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u306f\u3001\u30b7\u30d5\u30c8\uff0b\u30b3\u30de\u30f3\u30c9\uff0b\uff15\u3067\u3059\u304c\u3001\uff13\u3064\u3082\u30dc\u30bf\u30f3\u3092\u62bc\u3055\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u306e\u3067\u3001\uff11\u30dc\u30bf\u30f3\u3060\u3068\u52a9\u304b\u308a\u307e\u3059\u3002<\/p>\n\n\n\n

\"\"<\/figure><\/div>\n\n\n\n

\u305d\u306e\u5f8c\u3001Skitch\u306e\u7de8\u96c6\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u300c\u753b\u50cf\u3092\u30b3\u30d4\u30fc\u300d\u3067\u30af\u30ea\u30c3\u30d7\u30dc\u30fc\u30c9\u306b\u5165\u308c\u3066WordPress\u306e\u30ed\u30fc\u30ab\u30eb\u30a2\u30d7\u30ea\u306b\u8cbc\u308a\u4ed8\u3051\u308b\u306e\u304c\u3001\u4e00\u9023\u306e\u52d5\u304d\u3067\u3059\u3002\u3053\u306e\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u304c\u30b7\u30d5\u30c8\uff0b\u30b3\u30de\u30f3\u30c9\uff0bC\u3000\u3067\u3059\u3002<\/p>\n\n\n\n

\"\"<\/figure><\/div>\n\n\n\n

\u69cb\u60f3\u3067\u306f\u3001\u3053\u306e\uff12\u3064\u306e\u30dc\u30bf\u30f3\u304c\u5c02\u7528\u3067\u3042\u308b\u3068\u3044\u3044\u306a\u3068\u3002\u30ad\u30e3\u30f3\u30bb\u30eb\u3057\u305f\u3044\u3068\u304d\u306bESC\u30ad\u30fc\u304c\u3042\u308b\u3068\u4fbf\u5229\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u306d\u3002<\/p>\n\n\n\n

\u4f7f\u3048\u308bUSB\u30e9\u30a4\u30d6\u30e9\u30ea\u306f\uff1f<\/h3>\n\n\n\n

TinyUSB Mouse and Keyboard library<\/p>https:\/\/github.com\/cyborg5\/TinyUSB_Mouse_and_Keyboard\/<\/a><\/cite><\/blockquote>\n\n\n\n

\u3053\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u306f\u3001Chris Young\u3055\u3093\u304c\u7d71\u5408\u3057\u305fTinyUSB\u3067\u3059\u3002\u4ee5\u4e0b\u3067\u7d39\u4ecb\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n

Mouse and Keyboard Control Using TinyUSB and BLE<\/a><\/p><\/blockquote>\n\n\n\n

examples\u3092\u8a66\u3057\u305f\u306e\u3067\u3059\u304c\u3001\u8a18\u8ff0\u304c\u308f\u304b\u308a\u3084\u3059\u3044\u3057\u4f7f\u3044\u3084\u3059\u305d\u3046\u3060\u3063\u305f\u306e\u3067\u3053\u308c\u3067\u3084\u3063\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3059\u3002\u4ed6\u306b\u3082\u3001Seeed\u306e\u7d39\u4ecb\u30da\u30fc\u30b8\u306bAdafruit\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3063\u305f\u4f8b\u304c\u3042\u308a\u307e\u3059\u304c\u3001examples\u3092\u898b\u305f\u9650\u308a\u3067\u306f\u4f7f\u3044\u306b\u304f\u305d\u3046\u3067\u3057\u305f\u306e\u3067\u3053\u3061\u3089\u306f\u30d1\u30b9\u3067\u3059\u3002<\/p>\n\n\n\n

Seeeduino XIAO\u3092USB\u30c7\u30d0\u30a4\u30b9(TinyUSB)\u3068\u3057\u3066\u4f7f\u3046<\/a><\/p><\/blockquote>\n\n\n\n

\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u5165\u308c\u308b<\/h3>\n\n\n\n

\u30de\u30b9\u30bf\u30fc\u306eZIP\u3092ArduinoIDE\u304b\u3089\u5165\u308c\u3066\u3001\u4f8b\u984c\u3092\u3084\u3063\u3066\u307f\u307e\u3059\u3002<\/p>\n\n\n\n

ZIP : TinyUSB_Mouse_and_Keyboard<\/p>URL<\/a><\/cite><\/blockquote>\n\n\n\n

Arduino IDE\u304b\u3089\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u3044\u308c\u308b\u306e\u306f\u3001\u4ee5\u4e0b\u304b\u3089\u3067\u3059\u3002<\/p>\n\n\n\n

\"\"<\/figure><\/div>\n\n\n\n

ZIP\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u5165\u308c\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u540c\u3058\u3068\u3053\u308d\u304b\u3089\u898b\u3048\u3066\u3044\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n

\"\"<\/figure><\/div>\n\n\n\n

\u63d0\u4f9b\u3055\u308c\u305f\u30e9\u30a4\u30d6\u30e9\u30ea\u306f\u3001Mac\u3060\u3068\u4ee5\u4e0b\u306b\u5165\u308b\u3088\u3046\u3067\u3059\u3002\u76f4\u63a5\u3053\u3053\u306b\u5165\u308c\u3066\u3082OK\u3067\u3059\u3002<\/p>\n\n\n\n

\/Users\/USERNAME<\/strong>\/Documents\/Arduino\/libraries\/<\/p><\/blockquote>\n\n\n\n

\u3061\u306a\u307f\u306b\u3001ArduinoIDE\u7d44\u8fbc\uff08\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\uff09\u306f\u4ee5\u4e0b\u3067\u3059\u3002<\/p>\n\n\n\n

\/Applications\/Arduino.app\/Contents\/Java\/libraries\/<\/p><\/blockquote>\n\n\n\n

XIAO\u306e\u30dc\u30fc\u30c9\u95a2\u9023\u306f\u4ee5\u4e0b\u306b\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n

\/Users\/USERNAME<\/strong>\/Library\/Arduino15\/packages\/Seeeduino\/<\/p><\/blockquote>\n\n\n\n

\u30e9\u30a4\u30d6\u30e9\u30ea\u3068\u304b\u3001PG\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4ee5\u4e0b\u306b\u683c\u7d0d\u3057\u3066\u304a\u3044\u305f\u307b\u3046\u304c\u5f8c\u304b\u3089\u308f\u304b\u308a\u3084\u3059\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u6570\u5e74\u5f8c\u3001\u307e\u305f\u52d5\u304b\u305d\u3046\u3068\u3059\u308b\u3068\u74b0\u5883\u5909\u308f\u3063\u3066\u3044\u305f\u308a\u3057\u307e\u3059\u304b\u3089\u306d\u3002\u305d\u306e\u5834\u5408\u306f\u3001include\u3092\u30c0\u30d6\u30eb\u30af\u30aa\u30fc\u30c8\u3067\u56f2\u3063\u3066\u8a18\u8f09\u3059\u308c\u3070\u30ab\u30ec\u30f3\u30c8\u30c7\u30a3\u30ec\u30af\u30ea\uff08\u73fe\u5728\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u3053\u3068\uff09\u3092\u53c2\u7167\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

#include \"TinyUSB_Mouse_and_Keyboard.h\"<\/code><\/pre>\n\n\n\n

\u30b5\u30f3\u30d7\u30eb\u3092\u52d5\u304b\u3057\u3066\u307f\u308b<\/h3>\n\n\n\n

Mac\u30e6\u30fc\u30b6\u30fc\u3067\u3001Launchpad \u306e\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u3092F5\u306b\u3057\u3066\u3044\u308c\u3070\u52d5\u4f5c\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

\"\"<\/figure><\/div>\n\n\n\n
$ git clone https:\/\/github.com\/take-i\/XIAO-USB-example.git\n$ cd XIAO-USB-example\/xiao_usb1\/\n$ open xiao_usb1.ino <\/code><\/pre>\n\n\n\n

XIAO\u306b\u66f8\u304d\u8fbc\u3093\u3067\u3001\u898b\u3066\u304f\u3060\u3055\u3044\u3002\u30d6\u30e9\u30a6\u30b6\u304c\u8d77\u52d5\u3057\u3066 JunkHack\u306e\u30da\u30fc\u30b8\u304c\u898b\u3048\u3066\u3044\u308c\u3070\u6210\u529f\u3067\u3059\u3002<\/p>\n\n\n\n

\u30b5\u30f3\u30d7\u30eb\u4f8b\u3067\u306f\u3001Launchpad\u304c\u958b\u304d\u3001\u30b3\u30de\u30f3\u30c9F\u3067\u691c\u7d22\u3001\u82f1\u5b57\u30e2\u30fc\u30c9\u306b\u5207\u308a\u66ff\u3048\u3066terminal\u3092\u30bf\u30a4\u30d7\u3057\u3066\u30bf\u30fc\u30df\u30ca\u30eb\u3092\u958b\u304d\u307e\u3059\u3002\u30bf\u30fc\u30df\u30ca\u30eb\u304b\u3089\u306fURL\u3092\u30aa\u30fc\u30d7\u30f3\u3057\u3066\u3044\u307e\u3059\u3002mac\u306e\u5834\u5408\u3001\u30b3\u30de\u30f3\u30c9\u306e\u4fee\u98fe\u30ad\u30fc\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306bKEY_LEFT_GUI\u304c\u76f8\u5f53\u3057\u307e\u3059\u3002Windows\u3060\u3068WIN\u30ad\u30fc\u3067\u3059\u3002<\/p>\n\n\n\n

  \/\/ New terminal windows\n  Keyboard.press(KEY_LEFT_GUI);\n  Keyboard.write('n');\n  Keyboard.releaseAll();<\/code><\/pre>\n\n\n\n

Keyboard.press\u306f\u3001\u62bc\u3057\u3063\u3071\u306a\u3057\u72b6\u614b\u306b\u306a\u308b\u306e\u3067Keyboard.releaseAll()\u3067\u30ea\u30ea\u30fc\u30b9\u3057\u307e\u3059\u3002delay\u3092\u5165\u308c\u306a\u3044\u3068\u3001\u901f\u3059\u304e\u3066\u671f\u5f85\u3059\u308b\u52d5\u4f5c\u306b\u306a\u3089\u306a\u3044\u306e\u3067\u9069\u5f53\u306b\u8abf\u6574\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

\uff14\u30dc\u30bf\u30f3\u306e\u5c02\u7528\u30ad\u30fc\u30dc\u30fc\u30c9\u3092\u4f5c\u308b\uff01<\/h3>\n\n\n\n

\u3055\u3066\u3001\u30b5\u30f3\u30d7\u30eb\u306f\u3046\u307e\u304f\u52d5\u3044\u305f\u306e\u3067\u5b9f\u969b\u306b\u30dc\u30bf\u30f3\u3092\u3064\u3051\u3066\u65e5\u5e38\u7684\u306b\u4f7f\u3048\u308b\u72b6\u614b\u306b\u3057\u307e\u3059\u3002\u3053\u3093\u306a\u30b3\u30fc\u30c9\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n

https://github.com\/take-i\/XIAO-USB-example\/tree\/master\/ss-key<\/code><\/pre>\n\n\n\n

Pin\u63a5\u7d9a\u306f\u3001A7 , A8 , A9 , A10 \u3068GND\u306e\uff15\u3064\u3067\u3059\u3002\u306a\u304a\u3001\u3053\u306ePG\u306f\u540c\u6642\u306b\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u305f\u6642\u306e\u8003\u616e\u306f\u3057\u3066\u3044\u307e\u305b\u3093\u306e\u3067\u3054\u6ce8\u610f\u3092\u3002\u30af\u30ea\u30c6\u30a3\u30ab\u30eb\u306a\u30dc\u30bf\u30f3\u306e\u5834\u5408\u306f\u3001\u4f55\u304b\u30ad\u30fc\u304c\u62bc\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u306f\u9055\u3046\u30ad\u30fc\u306e\u51e6\u7406\u306b\u5165\u3089\u306a\u3044\u3088\u3046\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n

\u7b50\u4f53\u306b\u7d44\u307f\u8fbc\u3080\uff01<\/h3>\n\n\n\n

\uff13D\u30d7\u30ea\u30f3\u30bf\u30fc\u3068\u30e1\u30ab\u30cb\u30ab\u30eb\u30b9\u30a4\u30c3\u30c1\u3067\u4f5c\u308b\u306e\u304c\u9762\u5012\u3060\u3063\u305f\u306e\u3067\u3001\u9069\u5f53\u306a\u30b8\u30e3\u30f3\u30af\u54c1\u306e\u30ad\u30fc\u30dc\u30fc\u30c9\u3092\u6f01\u3063\u3066\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n

\"\"<\/figure><\/div>\n\n\n\n

15\u5e74\u304f\u3089\u3044\u524d\u306e\u7121\u7dda\u30ad\u30fc\u30dc\u30fc\u30c9\u3067\u3059\u3002\u30a8\u30f3\u30bf\u30fc\u30ad\u30fc\u304c\u7121\u304f\u306a\u3063\u3066\u3044\u308b\u306e\u306f\u3001\u5b50\u4f9b\u306b\u5265\u304c\u3055\u308c\u305f\u304b\u3089\u3067\u3059\u3002\u305d\u308c\u4ee5\u6765\u3001\u4f7f\u3063\u3066\u3044\u307e\u305b\u3093\u3067\u3057\u305f\u304c\u3053\u3053\u306b\u6765\u3066\u7d04\u306b\u7acb\u3061\u305d\u3046\u3067\u3059\u3002<\/p>\n\n\n\n

\u3053\u306e\u30bf\u30a4\u30d7\u306e\u30ad\u30fc\u30dc\u30fc\u30c9\u306f\u30ce\u30fc\u30c8PC\u3068\u540c\u3058\u3067\u3001\u30ad\u30fc\u30dc\u30fc\u30c9\u306e\u4e0b\u306f\u30d5\u30a3\u30eb\u30e0\u306e\u30e1\u30f3\u30d6\u30ec\u30f3\u30b9\u30a4\u30c3\u30c1\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u306b\u30b8\u30e3\u30f3\u30d1\u30fc\u914d\u7dda\u3059\u308b\u306e\u306f\u53b3\u3057\u3044\u306e\u3067\u3001\u7aef\u3063\u3053\u306e\u30d1\u30fc\u30c4\u3092\u4f7f\u3046\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n

\"\"<\/figure><\/div>\n\n\n\n

\u3053\u3063\u3061\u306f\u57fa\u76e4\u304c\u3042\u3063\u3066\u3001\u306a\u3093\u3068\u304b\u306a\u308a\u305d\u3046\u3067\u3059\u3002\u30ad\u30fc\u30dc\u30fc\u30c9\u7b50\u4f53\u3092\u30b0\u30e9\u30a4\u30f3\u30c0\u30fc\u3067\u5207\u65ad\u3057\u3001\u5de6\u5074\u90e8\u5206\u3092\u4f7f\u3046\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002\u3053\u3093\u306a\u611f\u3058\u3002<\/p>\n\n\n\n

\"\"<\/figure><\/div>\n\n\n\n

\u914d\u7dda\u306f\u3053\u3093\u306a\u611f\u3058\u3002XIAO\u306f\u5c0f\u3055\u3044\u306e\u3067\u3001\u307b\u3093\u3068\u52a9\u304b\u308a\u307e\u3059\u3002<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n
\"\"<\/figure>\n\n\n\n

\u9ed2\u3044\u7dda\u304cGND\u3067\u3001\u305d\u308c\u4ee5\u5916\u306f\u30dc\u30bf\u30f3\u304b\u3089\u306e\u30d7\u30ea\u30f3\u30c8\u57fa\u677f\u306e\u914d\u7dda\u304b\u3089\u30b8\u30e3\u30f3\u30d1\u30fc\u7dda\u3092\u51fa\u3057\u3066\u4f7f\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n

\u3053\u3093\u306a\u611f\u3058\u3067\u3001\u7121\u7dda\u30ad\u30fc\u30dc\u30fc\u30c9\u306e\u4e0a\u306b\u7f6e\u3044\u3066\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n

\"\"<\/figure><\/div>\n\n\n\n

\u53f3\u5074\u304b\u3089ESC\u3001\u30b9\u30af\u30b7\u30e7\u3001\u30b9\u30af\u30b7\u30e7\u306e\u30b3\u30d4\u30fc\u3001https:\/\/www.canva.com\/ \u3092\u958b\u304f\u3000\u306e\uff14\u6a5f\u80fd\u3092\u6301\u305f\u305b\u3066\u3042\u308a\u307e\u3059\u3002\u4eca\u3082\u3053\u306e\u8a18\u4e8b\u3092\u66f8\u3044\u3066\u3044\u308b\u3068\u304d\u306b\u3053\u306e\u30dc\u30bf\u30f3\u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u304b\u306a\u308a\u4fbf\u5229\u3067\u3059\u306d\uff01\u3000canva\u3092\u5272\u308a\u5f53\u3066\u3066\u3044\u308b\u306e\u306f\u3001\u30d6\u30ed\u30b0\u8a18\u4e8b\u306e\u30b5\u30e0\u30cd\u30a4\u30eb\u3092\u3044\u3064\u3082\u3053\u3053\u3067\u4f5c\u308b\u304b\u3089\u3067\u3059\u3002\u4eca\u56de\u306f\u3053\u3093\u306a\u611f\u3058\u304b\u306a\uff1f<\/p>\n\n\n\n

\"\"<\/figure><\/div>\n\n\n\n

Mac\u304b\u3089\u306f\u3053\u3093\u306a\u611f\u3058\u3067\u8a8d\u8b58\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n

\"\"<\/figure><\/div>\n\n\n\n

\u30ad\u30fc\u30dc\u30fc\u30c9\u306e\u4fee\u98fe\u30ad\u30fc\u306b\u3082\u3001\u51fa\u3066\u3044\u307e\u3059\u306d<\/p>\n\n\n\n

\"\"<\/figure><\/div>\n\n\n\n

Mac\u306eKeycode\u3092\u78ba\u8a8d<\/h3>\n\n\n\n

\u203b\u8ffd\u8a18
Mac\u3060\u3068\u3069\u3093\u306aKeycode\u304c\u30bf\u30a4\u30d7\u3055\u308c\u308b\u306e\u304b\u78ba\u8a8d\u3057\u3066\u304a\u304d\u305f\u304b\u3063\u305f\u306e\u3067\u3001macos\u3067\u52d5\u4f5c\u3059\u308b\u30ad\u30fc\u30ed\u30ac\u30fc\u306e\u30bd\u30fc\u30b9\u3092\u5c11\u3057\u4fee\u6b63\u3057\u3066Dec\u3067\u6570\u5b57\u3092\u51fa\u3059\u3088\u3046\u306b\u6539\u4fee\u3057\u305f\u3082\u306e\u304c\u4ee5\u4e0b\u306b\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n

Mac OS X Keylogger<\/p>https:\/\/github.com\/take-i\/keylogger-macos<\/a><\/cite><\/blockquote>\n\n\n\n

\u30aa\u30ea\u30b8\u30ca\u30eb\u306f\u3001\u30a2\u30c8\u30e9\u30f3\u30bf\u306e\u30a2\u30d7\u30ea\u958b\u767a\u8005\b\u3001\u30b1\u30fc\u30b7\u30fc\u30fb\u30b9\u30ab\u30dc\u30ed\u30fc\u3055\u3093\u304c\u4f5c\u3063\u305f\u3082\u306e\u3067\u3059\u3002\u7c21\u5358\u306b\u4f7f\u3044\u65b9\u3092\u8a18\u8f09\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n

$ sudo touch \/var\/log\/keystroke.log\n$ sudo chmod 644 \/var\/log\/keystroke.log\n$ git clone https:\/\/github.com\/take-i\/keylogger-macos.git && cd keylogger-macos\/\n$ make\n$ sudo .\/keylogger<\/code><\/pre>\n\n\n\n

\u30ed\u30b0\u306f\u4ee5\u4e0b\u306e\u30d1\u30b9\u306b\u6570\u5b57\u3067\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n

$ tail -f \/var\/log\/keystroke.log<\/code><\/pre>\n\n\n\n

\u305f\u3068\u3048\u3070\u3001Mac\u306e\u30ad\u30fc\u30dc\u30fc\u30c9\u914d\u5217\u306e\u5834\u5408\u3001F3\u30ad\u30fc\u306fMission Control\u306e\u30ad\u30fc\u3068\u306a\u308a\u3001Keycode\u306f\u3001160\u3068\u306a\u308a\u307e\u3059\u3002F3\u306e\u5834\u5408\u306f99\u3067\u3059\u3002\u7d14\u6b63\u30ad\u30fc\u30dc\u30fc\u30c9\u306e\u5834\u5408\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30ad\u30fc\u30dc\u30fc\u30c9\u8a2d\u5b9a\u306b\u300cF1\u3001F2\u306a\u3069\u306e\u30ad\u30fc\u6a19\u6e96\u306e\u30d5\u30a1\u30f3\u30af\u30b7\u30e7\u30f3\u30ad\u30fc\u3068\u3057\u3066\u4f7f\u7528\u300d\u306e\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u304c\u3067\u307e\u3059\u3002\u793e\u5916\u30ad\u30fc\u30dc\u30fc\u30c9\u306e\u5834\u5408\u3001\u3053\u308c\u306f\u3067\u306a\u3044\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n\n

\"\"<\/figure><\/div>\n\n\n\n

DIY\u30ad\u30fc\u30dc\u30fc\u30c9\u3092USB\u63a5\u7d9a\u3057\u305f\u3068\u304d\u3001mac\u306e\u30ad\u30fc\u30dc\u30fc\u30c9\u3060\u3068\u8a8d\u8b58\u3055\u305b\u3066Mission Control\u306e\u30b3\u30fc\u30c9\u3068\u3057\u3066\u8a8d\u8b58\u3055\u305b\u308b\u3088\u3046\u306b\u3059\u308b\u65b9\u6cd5\u3092\u6a21\u7d22\u3057\u305f\u306e\u3067\u3059\u304c\u3001\u3061\u3087\u3063\u3068\u3088\u304f\u308f\u304b\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u307e\u305f\u3001\u3044\u3064\u304b\u518d\u30c1\u30e3\u30ec\u30f3\u30b8\u3057\u305f\u3068\u304d\u306b\u899a\u66f8\u3068\u3057\u3066\u66f8\u3044\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n

\u307e\u3068\u3081<\/h3>\n\n\n\n

\u4eca\u56de\u3001\u306a\u3093\u3068\u306a\u304f\u308f\u304b\u3063\u305f\u30fb\u308f\u304b\u3089\u306a\u304b\u3063\u305f\u306e\u306f\u4ee5\u4e0b\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n

\u30fbSeeed XIAO\u306f\u7c21\u5358\u306b\u30ad\u30fc\u30dc\u30fc\u30c9\u30fb\u30de\u30a6\u30b9\u306e\u30c7\u30d0\u30a4\u30b9\u304c\u4f5c\u308c\u308b
\u30fb\u30b9\u30a4\u30c3\u30c1On,Off\u30bf\u30a4\u30d7\u3067\u3042\u308c\u3070Pin\u306e\u6570\u5206\u3001\u30ad\u30fc\u306f\u4f5c\u308c\u308b\uff08\u6700\u5927\u3001\uff11\uff11Key\uff09
\u30fb\u30e9\u30a4\u30d6\u30e9\u30ea\u306f\u3001TinyUSB Mouse and Keyboard library\u304c\u4f7f\u3044\u3084\u3059\u304b\u3063\u305f
\u30fbKeycode\u3068\u3044\u3046\u306e\u304cUSB\u306e\u4ed5\u69d8\u3067\u6c7a\u307e\u3063\u3066\u3044\u308b\u3088\u3046\u3067\u3059\uff08
hut1_12v2.pdf<\/a>\uff09
\u30fb\u3053\u3063\u3061\u306eUSB\u4ed5\u69d8\u66f8\u306e\u307b\u3046\u304c\u65b0\u3057\u3044\u304b\u306a\uff1f\uff08
hut1_21_0.pdf<\/a>\uff09
\u30fbmac\u306e\u5834\u5408\u306f\u3001
Mac OS X Keylogger<\/a>\u3000\u3092\u5c11\u3057\u624b\u76f4\u3057\u3059\u308c\u3070\u756a\u53f7\u304c\u308f\u304b\u308b
\u30fb\u3057\u304b\u3057\u3001USB\u306e\u4ed5\u69d8\u66f8\u3068\u306f\u9055\u3046\u5024\u304c\u5e30\u308b\uff08\u4f8b\uff1aF3\u306f\u3001mac\u3060\u306810\u9032\u3067160\u307e\u305f\u306f99\u3001USB\u4ed5\u69d8\u66f8\u3067\u306f\u300160\uff09
\u30fbPG\u306e\u5b9a\u7fa9\u306f\u30010xC4\u306710\u9032\u3060\u3068196
\u30fb
\u3053\u3053<\/a>\u306b\u3088\u308c\u3070\u30010x88\u4ee5\u4e0a\u306f\u3001\u305d\u306e\u5024\u304b\u30890x88\u3092\u5f15\u3044\u305f\u6570\uff0810\u9032\u3060\u3068136\uff09\u3068\u306a\u308b\u3088\u3046\u3067\u3059\u3002\u3064\u307e\u308a\u3001196-136=60\u3000\u306a\u308b\u307b\u3069\uff01PG\u306e\u5b9a\u7fa9\u304b\u3089\u306f\u8b0e\u304c\u3068\u3051\u307e\u3057\u305f
\u30fb\u3057\u304b\u3057\u3001mac\u306ekeycode\u306f\u9055\u3046\u5024\u3092\u51fa\u3059\u3002\u3053\u3053\u304c\u3088\u304f\u308f\u304b\u3089\u306a\u3044
\u30fb\u304a\u305d\u3089\u304f\u3001mac\u306fkeycode\u306e\u30de\u30c3\u30d4\u30f3\u30b0\u30c6\u30fc\u30d6\u30eb\u3092\u6301\u3063\u3066\u3044\u308b\u306e\u3060\u308d\u3046
\u30fb\u307e\u305f\u306f\u3001\u30ad\u30fc\u30dc\u30fc\u30c9\u7a2e\u985e\u306b\u3088\u3063\u3066F3\u306fMission Control\u306b\u306a\u308b\u3088\u3046OS\u304c\u30de\u30c3\u30d4\u30f3\u30b0\u3057\u3066\u3044\u308b\u306e\u3060\u308d\u3046
\u30fbkeycode\u3068USB\u30c7\u30d0\u30a4\u30b9\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u306e\u95a2\u4fc2\u306f\u307e\u3060\u5965\u304c\u6df1\u305d\u3046\u3060
\u30fb\u30d5\u30a3\u30eb\u30e0\u306e\u30e1\u30f3\u30d6\u30ec\u30f3\u30b9\u30a4\u30c3\u30c1\u3063\u3066\u81ea\u4f5c\u3067\u304d\u306a\u3044\u304b\u306a\uff1f
\u30fb\u30a2\u30eb\u30df\u30c6\u30fc\u30d7\u3068\u30e9\u30df\u30cd\u30fc\u30c8\u30d5\u30a3\u30eb\u30e0\u3067\u4f5c\u308c\u306a\u3044\u304b\u306a\uff1f<\/p>\n\n\n\n

\u3042\u3068\u304c\u304d<\/h3>\n\n\n\n

\u4f5c\u3063\u3066\u307f\u3066\u3001\u5b9f\u969b\u306b\u4f7f\u3063\u3066\u307f\u305f\u3089\u3059\u3054\u304f\u5177\u5408\u304c\u3044\u3044\u3067\u3059\u3002USB\u30c7\u30d0\u30a4\u30b9\u3092\u3053\u3093\u306a\u306b\u7c21\u5358\u306b\u4f5c\u308c\u308b\u3068\u306f\u3001\u9a5a\u304d\u3067\u3059\u306d\u3002\u3044\u3064\u304b\u3001\u672c\u683c\u7684\u306a\u30ad\u30fc\u30dc\u30fc\u30c9\u4f5c\u308a\u3082\u3057\u3066\u307f\u305f\u3044\u3067\u3059\u300240%\u30ad\u30fc\u30dc\u30fc\u30c9\u3068\u304b\u5c0f\u3055\u304f\u3066\u53ef\u611b\u3044\u306e\u3067\u4f7f\u3063\u3066\u307f\u305f\u3044\u3093\u3067\u3059\u304c\u3001\u4f55\u304b\u3089\u624b\u3092\u3064\u3051\u3066\u3044\u3044\u306e\u304b\u3088\u304f\u308f\u304b\u308a\u307e\u305b\u3093\u3002\u3042\u3068\u3001\u8584\u3044Mac\u306e\u30ad\u30fc\u30dc\u30fc\u30c9\u306b\u624b\u304c\u99b4\u67d3\u3093\u3067\u3057\u307e\u3063\u305f\u306e\u3067\u3068\u3044\u3046\u7406\u7531\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n

\u307e\u3041\u6b21\u30ad\u30fc\u30dc\u30fc\u30c9\u4f5c\u308b\u6a5f\u4f1a\u3082\u3042\u308b\u3068\u601d\u3046\u306e\u3067\u3001\u305d\u306e\u6642\u306f\u81ea\u4f5c\u3057\u305f\u3044\u3067\u3059\u306d\u3002<\/p>\n\n\n\n

\u8457\u8005\u306b\u30e1\u30c3\u30bb\u30fc\u30b8<\/h3>\n\n\n\n \n\n\n

\u9593\u9055\u3044\u306e\u3054\u6307\u6458\u306a\u3069\u3001\u30b3\u30e1\u30f3\u30c8\u3058\u3083\u306a\u304f\u3066\u3001\u500b\u4eba\u7684\u306b\u3084\u308a\u3068\u308a\u3057\u305f\u3044\u5834\u5408\u306f\u3053\u3061\u3089\u304b\u3089<\/a>\u3069\u3046\u305e\u3002\u304a\u8fd4\u4e8b\u304c\u9045\u304f\u306a\u308b\u3068\u304d\u3082\u3042\u308a\u307e\u3059\u304c\u3001\u3054\u4e86\u627f\u3092\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u4eca\u56de\u306eDIY\u306f\u3001\u3061\u3087\u3063\u3068\u5b9f\u7528\u7684\u306a\u3082\u306e\u3092\u4f5c\u308d\u3046\u304b\u3068\u601d\u3044\u307e\u3059 \u6700\u8fd1\u3001\u306f\u307e\u3063\u3066\u3044\u308b\u5c0f\u3055\u304f\u3066\u5b89\u3044Arduino\u4e92\u63db\u6a5f\u3001XIAO\u3092\u4f7f\u3063\u3066\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3067\u304d\u308b\u30ad\u30fc\u30dc\u30fc\u30c9\u3092\u4f5c\u308d\u3046\u3068\u601d\u3044\u307e\u3059\uff01\u3000\u5192\u982d\u3067\u3082\u5c11\u3057\u89e6\u308c\u307e\u3057\u305f\u304c\u3001Mac\u306e\u30b9\u30af\u30b7\u30e7\u30a2 […]<\/p>\n","protected":false},"author":1,"featured_media":10216,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_uag_custom_page_level_css":"","footnotes":""},"categories":[9,25,62,83],"tags":[],"acf":[],"uagb_featured_image_src":{"full":["https:\/\/hack.gpl.jp\/wp-content\/uploads\/2021\/03\/DIY-USB-KEY-1.png",800,800,false],"thumbnail":["https:\/\/hack.gpl.jp\/wp-content\/uploads\/2021\/03\/DIY-USB-KEY-1.png",96,96,false],"medium":["https:\/\/hack.gpl.jp\/wp-content\/uploads\/2021\/03\/DIY-USB-KEY-1.png",800,800,false],"medium_large":["https:\/\/hack.gpl.jp\/wp-content\/uploads\/2021\/03\/DIY-USB-KEY-1-768x768.png",768,768,true],"large":["https:\/\/hack.gpl.jp\/wp-content\/uploads\/2021\/03\/DIY-USB-KEY-1.png",800,800,false],"1536x1536":["https:\/\/hack.gpl.jp\/wp-content\/uploads\/2021\/03\/DIY-USB-KEY-1.png",800,800,false],"2048x2048":["https:\/\/hack.gpl.jp\/wp-content\/uploads\/2021\/03\/DIY-USB-KEY-1.png",800,800,false],"post-thumbnail":["https:\/\/hack.gpl.jp\/wp-content\/uploads\/2021\/03\/DIY-USB-KEY-1.png",800,800,false]},"uagb_author_info":{"display_name":"JunkHack","author_link":"https:\/\/hack.gpl.jp\/author\/junkhack\/"},"uagb_comment_info":0,"uagb_excerpt":"\u4eca\u56de\u306eDIY\u306f\u3001\u3061\u3087\u3063\u3068\u5b9f\u7528\u7684\u306a\u3082\u306e\u3092\u4f5c\u308d\u3046\u304b\u3068\u601d\u3044\u307e\u3059 \u6700\u8fd1\u3001\u306f\u307e\u3063\u3066\u3044\u308b\u5c0f\u3055\u304f\u3066\u5b89\u3044Arduino\u4e92\u63db\u6a5f\u3001…","_links":{"self":[{"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/posts\/10186"}],"collection":[{"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/comments?post=10186"}],"version-history":[{"count":0,"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/posts\/10186\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/media\/10216"}],"wp:attachment":[{"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/media?parent=10186"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/categories?post=10186"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/tags?post=10186"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}