(舊版)使用Charles Proxy
- 主題:
- 驗證
Charles: http://charlesproxy.com
下載、安裝並開始使用Charles Proxy
結構與序列標籤
檢視流量的方式有兩種:
- 結構 — 要求依主機分組
- 序列 — 要求會以呼叫的順序列出
SSL和憑證
啟用SSL代理\[ *Proxy -\> Proxy Settings... -\> SSL* \]
勾選「啟用SSL代理」核取方塊,然後新增所有HTTPS位置。
- SSL代理 — http://www.charlesproxy.com/documentation/proxying/ssl-proxying/
- SSL憑證 — http://www.charlesproxy.com/documentation/using-charles/ssl-certificates/
- 從行動裝置使用SSL代理 — 請參閱下文。
忽略/排除主機
如果您的輸出變得過於雜亂,您可以選擇忽略或排除位置。您可以執行下列任一項作業來忽略或排除位置:
- 以滑鼠右鍵按一下您要忽略的請求,然後選取「忽略」
- 手動新增要從
\[ *Proxy -\> Recording Settings... -\> Exclude* \]
排除的位置
DNS詐騙
\[ *Tools -\> DNS Spoofing...* \]
嘗試將請求重新導向至不同的IP時,DNS詐騙會很有用,尤其是使用行動裝置時:
http://www.charlesproxy.com/documentation/tools/dns-spoofing/
對應遠端
\[ *Tools -\> Map Remote...* \]
透過對應遠端,您可以將「傳入」要求重新導向至不同的端點。 此功能最常見的使用案例是「對應」AccessEnabler.swf
至AccessEnablerDebug.swf:
http://www.charlesproxy.com/documentation/tools/map-remote/
反向Proxy
http://www.charlesproxy.com/documentation/proxying/reverse-proxy/
行動
在iOS裝置(iPhone / iPad)上使用Charles
iPhone的SSL連線
從您的iOS裝置瀏覽至http://charlesproxy.com/charles.crt。 這會啟動憑證安裝對話方塊:
按一下\[ *Install*... *Install*... *Done* \]
以完成憑證的安裝。
http://www.charlesproxy.com/documentation/faqs/ssl-connections-from-within-iphone-applications/
從iOS裝置使用Charles
在您的iOS裝置上選取\[ *Settings* -\> *Wi-FI* -\> (*YOUR\_WIFI\_NETWORK)* \]
。 按一下網路旁的藍色小箭頭,然後向下移至HTTP Proxy並選取「手動」:
如果您現在在iOS裝置上開啟Safari,並嘗試開啟網頁,則執行Charles的電腦上應該會出現下列快顯視窗:
按一下「允許」以允許裝置使用Charles代理所有其 要求。
http://www.charlesproxy.com/documentation/faqs/using-charles-from-an-iphone/
iOS — 信任任何憑證
iOS驗證錯誤 — 找不到adobepass.ios.app
https://tve.zendesk.com/entries/22135907-ios-authentication-error-adobepass-ios-app-cannot-be-found
在Android中使用Charles
http://www.charlesproxy.com/documentation/configuration/browser-and-system-configuration
從您的Android裝置瀏覽至Charles Proxy。