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
1
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
讀書會-CatInTheMiddle.pdf
Fox
October 04, 2026
Transcript
31 slides
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
More Decks by Fox
See All by Fox
社課-組合語言.pdf
nyanfox87
0
1
讀書會-Unicorn.pdf
nyanfox87
0
3
讀書會-UnityReverse.pdf
nyanfox87
0
1
2026沙崙競賽決賽-1.pdf
nyanfox87
0
2
社課-HowToHackAGame_final.pdf
nyanfox87
0
7
讀書會-CVE-2025-59489.pdf
nyanfox87
0
2
Featured
See All Featured
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
23k
The agentic SEO stack - context over prompts
schlessera
0
1k
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.5k
Exploring anti-patterns in Rails
aemeredith
4
580
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
3.1k
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
4
1.3k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
56k
The Spectacular Lies of Maps
axbom
PRO
1
1.2k
Site-Speed That Sticks
csswizardry
13
1.6k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
20k
[RailsConf 2023] Rails as a piece of cake
palkan
59
7.2k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.7k