Upgrade to Pro — share decks privately, control downloads, hide ads and more …

讀書會-CatInTheMiddle.pdf

Avatar for Fox Fox
October 04, 2026
0

 讀書會-CatInTheMiddle.pdf

Avatar for Fox

Fox

October 04, 2026

Transcript

  1. Public-key Cryptography • 公開金鑰加密 Public-key Cryptography • 非對稱加密 Asymmetric Cryptography

    • 加密: 私鑰加密,公鑰解密 • 數位簽章:公鑰加密,私鑰解密 • TLS 基於非對稱的協議
  2. Normal Communication Ask Bob’s Public Key Give his Public Key

    Encrypt message and Send to Bob Alice Bob
  3. MITM Attack Ask Bob’s Public Key Give his Public Key

    Encrypt message and Send to Bob Alice Bob
  4. The Battle Cats • 一款 2014/09 上市的遊戲 • Mailbox 會向

    server 詢問是否有獎勵 • 透過 HTTPS 傳輸 • Lower than v11.1.0 has MITM vuln
  5. Environment • BlueStacks X • Android 9.0 (Pie) • The

    battle cats v10.0.0 • Fiddler Everywhere
  6. 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
  7. Man in the middle • Proxy Server 攔截流量 • CA

    解密 HTTPS • 嘿嘿嘿嘿嘿嘿嘿嘿嘿嘿