Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Making full use of Bus Pirate
Search
kitok
January 07, 2018
How-to & DIY
790
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Making full use of Bus Pirate
#iotsecjp
kitok
January 07, 2018
Transcript
18 slides
この冬、BusPirateを 使い倒す きとけー(kitok)
[email protected]
⾃⼰紹介 • きとけー、きとけい、⽊藤 圭亮(kitokay, kitok) • キュアカイシャイン2年⽬(新プリキュア出た) • キャンプ2009卒、2012〜15チューター •
2016年からキャンプ講師 • ハードウェアリバースエンジニアリングを講義 • 2017年はBusPirateを使ってリバースする講義 • 温泉が好きです(温泉⾏きたい not ⾜湯)
今⽇の発表 • ほとんどデモなので、失敗したらごめんなさい
「この冬、Bus Pirateを使い倒す」 • Bus Pirateとは • Open Source Hardware and
Software Project • ハードウェア解析⽤の治具(?) • Mainlineはv3.6 • 千⽯電商、Switch Science • 4000円前後 • Switch Scienceのほうが少し安い
Bus Pirateで出来ること • 1-wire • I2C • SPI • JTAG
• Asynchronous serial(UART) • MIDI • PC Keyboard(PS/2) • HD447800 LCD • 2- and 3-wire libraries with bitwise pin control • Scriptable binary bitbang, 1-wire, I2C, SPI and UART 公式サイトより引⽤ 今⽇はここをデモ
Bus Pirateの概要図 PC USB-UART (FT232RL) BusPirate本体 (PIC24FJ64) MOSI/MISO Vcc, AUXなど
基本的にSerial経由で操作 • PyserialでPython Scriptable • 基本なpythonフレームワークは公開されてる • https://github.com/BusPirate • 基本的なやりかたも公開されてる
• http://dangerousprototypes.com/docs/Bus_Pirate_Scripting_in _Python • 例えば… • SPIのROMをdumpするとか • 1-wireでセンサデータを取得するとか • I2Cのデバイスの通信を取得するとか
とりあえず順番にデモ • UART • 1-wire • I2C • SPI •
JTAG • おまけ
UART • UARTモード • テストとして、出⼒したものを⼊⼒する • キーボード⼊⼒したものがターミナルに表⽰
モード切り替え • Hi-Z(⾼インピーダンスモード)→UARTモード • 初期はHi-Z mode、モード切り替えて使⽤ • Baud rate, stop
bitなどを設定 • オープンドレインでOutputの電圧を変更可能 • または3.3VのOutput • Inputはmax 5.5V • Transparent Bridgeにする
BusPirateの概要図 PC USB-UART (FT232RL) BusPirate本体 (PIC24FJ64) UART RX/TX PCからSerialが透過的に⾒える
1-wire • 1-wireの温度センサー • センサ系が多い(安価なデバイス) • DS18B20(秋⽉で変える1-wire温度センサIC)
I2C • I2CのROM dumpのデモ • I2Cで通信をするデバイスも多い • 例:Wiiのヌンチャク、SNESミニのコントローラ
こんな感じで接続 • Microchip 24LC64
SPI • SPIのEEPROMのdump • SPIは組込みのROMに使われることが多い • 例:ルーターのFlashROM(ファーム格納)
こんな感じで接続
ドキュメントの⽇本語化 • Bus Pirateチュートリアルを⽇本語化してます • ご協⼒いただける⼈は
[email protected]
まで • たぶん今⽉中にどっかでアナウンスします
• 他のリバエンツールも探ってます • 主にSDRツール(HackRF, YardStickとか) • IoTSecなんだから、無線もやらないとね! • 有⽤Toolsのドキュメント⽇本語化を進めたい
Bus Pirateをつかって • いろんな機器を分解して遊ぼう! • でも法的なところは守ろう • 知的財産権とか、著作権とか • リバースするのは違法ではないが、リバースして同
様の製品を作るのは違法 • 機器によっては、ファームウェアリバースは違法 • Let’s hacking with Bus Pirate!
More Decks by kitok
See All by kitok
Starting radio hacking with SDR
kitok
2
300
The reversing man
kitok
1
120
Other Decks in How-to & DIY
See All in How-to & DIY
二次会から始まることもある / Sometimes It All Starts at the After-Party
aokiplayer
0
120
NJ-WS10Aを使ったおいしい使い方
masafumi_ohta
0
130
放っておくと怖い睡眠負債について/fjordbootcamp-251122
yuukago
3
430
JAWS-UG/AWS Community Update - JAWS-UG栃木 #6
awsjcpm
0
170
ときメモは 運営が30年かけて “実プレイ”していた
mzryuka
1
200
2026.6.27 お誕生日会で配布された透明シェルを交換する際の注意点について
mongonta0716
0
280
社会人9年目の僕が贈る処世術
coco_se
1
400
好みと忠実度を分離する現代オーディオ戦略
frievea
0
110
OpenClawハンズオンでのトラブルとデバイス向けなんちゃらクロー #IoTLT vol133
n0bisuke2
1
330
電子線香で老人を救え
izawa
0
120
Optional<Bar>うらばなし
ryomm
2
460
移動は善 / 20260124-NGK2026S
girigiribauer
1
250
Featured
See All Featured
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
3
3.9k
Navigating Team Friction
lara
192
16k
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.6k
What does AI have to do with Human Rights?
axbom
PRO
1
2.5k
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
2
4k
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
2
850
Paper Plane
katiecoart
PRO
6
55k
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
2
530
Tell your own story through comics
letsgokoyo
1
1.1k
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
4
1.3k
Rebuilding a faster, lazier Slack
samanthasiow
85
9.8k
GitHub's CSS Performance
jonrohan
1033
470k