{"id":1117,"date":"2022-07-26T16:56:25","date_gmt":"2022-07-26T08:56:25","guid":{"rendered":"http:\/\/blog.xtaa.cn\/?p=1117"},"modified":"2022-07-26T16:56:25","modified_gmt":"2022-07-26T08:56:25","slug":"%e4%b8%8b%e8%bd%bd%e8%af%84%e8%ae%ba%e5%a4%9a%e7%9a%84%e6%8a%96%e9%9f%b3%e8%a7%86%e9%a2%91%e5%92%8c%e7%9b%b8%e5%85%b3%e7%9a%84%e8%af%84%e8%ae%ba","status":"publish","type":"post","link":"http:\/\/blog.xtaa.cn\/index.php\/2022\/07\/26\/%e4%b8%8b%e8%bd%bd%e8%af%84%e8%ae%ba%e5%a4%9a%e7%9a%84%e6%8a%96%e9%9f%b3%e8%a7%86%e9%a2%91%e5%92%8c%e7%9b%b8%e5%85%b3%e7%9a%84%e8%af%84%e8%ae%ba\/","title":{"rendered":"\u4e0b\u8f7d\u8bc4\u8bba\u591a\u7684\u6296\u97f3\u89c6\u9891\u548c\u76f8\u5173\u7684\u8bc4\u8bba"},"content":{"rendered":"\n<p>\u6296\u97f3\u6709\u4e9b\u8bc4\u8bba\u76f8\u5f53\u7684\u7cbe\u5f69\uff0c\u6240\u4ee5\u8fd9\u6b21\u7528python\u52a0fiddler\u6765\u4e0b\u8f7d\u8bc4\u8bba\u591a\u7684\u89c6\u9891\u548c\u76f8\u5e94\u7684\u8bc4\u8bba<\/p>\n\n\n\n<p>\u521a\u5f00\u59cb\u6253\u7b97\u7528fiddler\u6765\u6293\u6296\u97f3\u624b\u673aAPP\u7684\u5305\uff0c\u6309\u5982\u4e0b\u914d\u7f6e:<\/p>\n\n\n\n<p>1\u3001fiddler\u53ea\u80fd\u6293http\/https\u534f\u8bae\u7684\u5305\uff0c\u9ed8\u8ba4\u53ea\u80fd\u6293http\u534f\u8bae\u5305<\/p>\n\n\n\n<p>\u5982\u679c\u8981\u6293https\u534f\u8bae\u5305\uff0c\u9700\u8981\u5982\u4e0b\u914d\u7f6e\uff1a<\/p>\n\n\n\n<p>Tools-Options-HTTPS-\u4f9d\u6b21\u52fe\u9009\u5168\u90e8<\/p>\n\n\n\n<p>2\u3001Actions\u91cc\u9762-Trust Root Certificate-\u786e\u5b9a     \u6765trust\u4fe1\u7528\u8bc1\u4e66<\/p>\n\n\n\n<p>3\u3001Connections\uff0c\u8bbe\u7f6e\u7aef\u53e3\u53f7\uff0cfiddler\u9ed8\u8ba48888<\/p>\n\n\n\n<p>\u5982\u679c\u662f\u624b\u673a\u7528\u6570\u636e\u7ebf\u8fde\u7535\u8111\u5c31\u8981\u628a\u91cc\u9762\u7684  \u5141\u8bb8\u8fdc\u7a0b\u7535\u8111\u8fde\u63a5\u4e5f\u70b9\u4e0a<\/p>\n\n\n\n<p>4\u3001\u5982\u679c\u662f\u6a21\u62df\u5668\u91cc\u88c5\u6296\u97f3\u6216\u8005\u624b\u673a\u88c5\u6296\u97f3\u5e76\u901a\u8fc7WIFI\u8fde\u63a5\u7f51\u7edc\u6765\u6293\u5305\u5c31\u5728\u6a21\u62df\u5668\u6216\u8005\u624b\u673a\u91cc\u8bbe\u7f6e\u7f51\u7edc\u4ee3\u7406\u4e3a\u88c5fiddler\u7684\u7535\u8111IP<\/p>\n\n\n\n<p>5\u3001\u5728\u624b\u673a\u4e0a\u6253\u5f00\u88c5fiddler\u7684\u7535\u8111\u7684IP:8888\uff0c\u4e0b\u8f7d\u8bc1\u4e66\u5b89\u88c5<\/p>\n\n\n\n<p>\u6309\u7f51\u4e0a\u8fd9\u4e2a\u6b65\u9aa4\u6765\u4f1a\u5bfc\u81f4\u6296\u97f3\u4e0a\u4e0d\u4e86\u7f51\uff0c\u6309\u5206\u6790\u6709\u53ef\u80fd\u662f\u6296\u97f3\u5e94\u7528\u8bc1\u4e66\u95ee\u9898\uff0c\u7528\u4e86SSL Pinning\u4e3b\u8981\u5c31\u662f\u6765\u9632\u6b62\u4e2d\u95f4\u4eba\u653b\u51fb\u7684\uff0c\u5b89\u5353\u5e94\u7528\u4f1a\u5728HTTPS\u5efa\u7acb\u65f6\u5bf9\u670d\u52a1\u7aef\u8fd4\u56de\u7684\u8bc1\u4e66\u4f5c\u6821\u9a8c\uff0c\u5982\u679c\u4e0d\u4e00\u81f4\u5219\u65e0\u6cd5\u5efa\u7acb\u8fde\u63a5\uff0c\u6211\u4eec\u7528\u5230\u7684\u6293\u5305\u5de5\u5177fiddler\u6216burpsuite\u5b9e\u9645\u4e0a\u5c31\u662f\u5728\u8d77\u4e00\u4e2a\u4e2d\u95f4\u4eba\u7684\u4f5c\u7528\u3002\u5177\u4f53\u53ef\u4ee5\u53c2\u8003https:\/\/zhuanlan.zhihu.com\/p\/511136064\uff0c\u4ee5\u540e\u518d\u6309\u8fd9\u4e2a\u6765\u8bd5\u4e0b\uff0c\u4eca\u5929\u8fd8\u662f\u6309\u6296\u97f3\u7f51\u9875\u7248\u6765\u6293\u5305\u5206\u6790\u5427\uff0c<\/p>\n\n\n\n<p>\u6b64\u6bb5\u4ee3\u7801\u653e\u5230fiddler\u4e2d\u7684script\u7684response\u4e2d<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code> if (m_Hide304s &amp;&amp; oSession.responseCode == 304) {\n      oSession&#91;\"ui-hide\"] = \"true\";\n    }\n    \n    if (oSession.uriContains(\"https:\/\/aweme.snssdk.com\/aweme\/v1\/general\/search\/single\/\")){\n      var strBody=oSession.GetResponseBodyAsString();\n      var sps = oSession.PathAndQuery.slice(-58,);\n      \/\/FiddlerObject.alert(sps)\n      var timestamp=new Date().getTime();\n      var filename = \"D:\\\u6296\u97f3\u8bc4\u8bba\u8d44\u6599\" + \"\/\" + sps + timestamp + \".json\";\n      var curDate = new Date(); \n      var sw : System.IO.StreamWriter; \n      if (System.IO.File.Exists(filename)){ \n        sw = System.IO.File.AppendText(filename); \n        sw.Write(strBody); \n      } \n      else{ \n        sw = System.IO.File.CreateText(filename); \n        sw.Write(strBody); \n      } \n      sw.Close(); \n      sw.Dispose(); \n<\/code><\/pre>\n\n\n\n<p>\u66ff\u6362\u6389\u4e0a\u9762\u7684\u7f51\u5740\u548c\u4fdd\u5b58\u5730\u5740\uff0c\u8fd9\u6837\u7f51\u9875\u7248\u5237\u6296\u97f3\u65f6\u4f1a\u628a\u8bc4\u8bba\u7684JSON\u6587\u4ef6\u4e0b\u8f7d\u4e0b\u6765\uff0c\u89c6\u9891\u4fe1\u606fJSON\u4e5f\u540c\u7406\u64cd\u4f5c<\/p>\n\n\n\n<p>\u4e0b\u8f7d\u540e\u7528python\u5206\u6790JSON\u6570\u636e\uff0c\u628a\u8bc4\u8bba\u6570\u5927\u4e8e36000\u7684\u89c6\u9891\u4e0b\u8f7d\uff0c\u5e76\u628a\u76f8\u5e94\u7684\u8bc4\u8bba\uff0c\u89c6\u9891\u4fe1\u606f\u63d2\u5165\u6570\u636e\u5e93\uff0c\u76f8\u5173\u4ee3\u7801\u89c1pycharm\u4ee3\u7801\u5e93<\/p>\n\n\n\n<p>\u540e\u9762\u5c06\u628a\u89c6\u9891\u548c\u8bc4\u8bba\u5728\u7f51\u7ad9\u4e0a\u5c55\u793a\u51fa\u6765\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6296\u97f3\u6709\u4e9b\u8bc4\u8bba\u76f8\u5f53\u7684\u7cbe\u5f69\uff0c\u6240\u4ee5\u8fd9\u6b21\u7528python\u52a0fiddler\u6765\u4e0b\u8f7d\u8bc4\u8bba\u591a\u7684\u89c6\u9891\u548c\u76f8\u5e94\u7684\u8bc4\u8bba \u521a\u5f00\u59cb\u6253\u7b97\u7528fi [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-1117","post","type-post","status-publish","format-standard","hentry","category-10"],"_links":{"self":[{"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/posts\/1117","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/comments?post=1117"}],"version-history":[{"count":0,"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/posts\/1117\/revisions"}],"wp:attachment":[{"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1117"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1117"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1117"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}