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
讀書會-CatInTheMiddle.pdf
Search
Fox
October 04, 2026
0
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
讀書會-CatInTheMiddle.pdf
Fox
October 04, 2026
More Decks by Fox
See All by Fox
社課-組合語言.pdf
nyanfox87
0
0
讀書會-Unicorn.pdf
nyanfox87
0
0
讀書會-UnityReverse.pdf
nyanfox87
0
0
2026沙崙競賽決賽-1.pdf
nyanfox87
0
0
社課-HowToHackAGame_final.pdf
nyanfox87
0
6
讀書會-CVE-2025-59489.pdf
nyanfox87
0
0
Featured
See All Featured
[SF Ruby Conf 2025] Rails X
palkan
3
1.5k
Why You Should Never Use an ORM
jnunemaker
PRO
61
10k
Typedesign – Prime Four
hannesfritz
42
3.2k
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
GraphQLとの向き合い方2022年版
quramy
50
15k
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
550
The Mindset for Success: Future Career Progression
greggifford
PRO
0
540
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
63
46k
The Limits of Empathy - UXLibs8
cassininazir
2
720
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
For a Future-Friendly Web
brad_frost
184
10k
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
6
1.2k
Transcript
Cat in the middle 10/25 Fox
Outline • PKC • MITM • CA • Proxy •
CITM • Demo
Public-key Cryptography • 公開金鑰加密 Public-key Cryptography • 非對稱加密 Asymmetric Cryptography
• 加密: 私鑰加密,公鑰解密 • 數位簽章:公鑰加密,私鑰解密 • TLS 基於非對稱的協議
Man in the middle • 中間人攻擊 • 不安全的通道 • 破壞了機密性和不可否認性
Normal Communication Ask Bob’s Public Key Give his Public Key
Encrypt message and Send to Bob Alice Bob
MITM Attack Ask Bob’s Public Key Give his Public Key
Encrypt message and Send to Bob Alice Bob
Certificate Authority • 透過受信任第三方簽發 • 驗證是否為信任對象 Digital Signature CA Alice
Bob
CA過期
Proxy Server • 代理伺服器 • 使用者先將流量傳到 proxy server • 匿名、流量清理
Alice Bob
The Battle Cats • 一款 2014/09 上市的遊戲 • Mailbox 會向
server 詢問是否有獎勵 • 透過 HTTPS 傳輸 • Lower than v11.1.0 has MITM vuln
CITM • 由日本人 James R T 發現 • 通過 mailbox
進行 MITM
Environment • BlueStacks X • Android 9.0 (Pie) • The
battle cats v10.0.0 • Fiddler Everywhere
Remove CA pin • apk-mitm • Decode APK using Apktool
• Replace network config allow user-added Cert • Modify source code to disable Cert pinning • Sign the APK using uber-apk-signer
Install Cert to Android • Android version >= 10.0 need
root • So I use 9.0(PIE)! lol
Fiddler Everywhere • 封包流量分析 • 封包腳本 • Proxy Server •
Allow Remote Devices
Fiddler 封包流量分析
Fiddler 腳本
Fiddler Allow Remote Devices
Install Cert to Android
Install Cert to Android
Man in the middle • Proxy Server 攔截流量 • CA
解密 HTTPS • 嘿嘿嘿嘿嘿嘿嘿嘿嘿嘿
設置 proxy server • BlueStacks 4 以下才可設定網路相關功能 • 垃圾 BlueStacks
設置 proxy server • 使用第三方軟體 Super Proxy
過濾封包 • 設置 filter • URL contains “nyankoitems.ponosgames.com/ messages.php”
觀察封包 • URL Contains “nyanko-items.ponosgames.com/messages.php” • GET • action=list 獲取伺服器發送獎勵列表
• action=accept 領取獎勵
設置 Rule 1 • 透過設置腳本自動攔截並修改 body
蛤 • 炸裂! • 領取時回傳了 400
設置 Rule 2 • 將 Status Code 改成 200
讚啦 成功了
Demo time
Reference