{"id":271,"date":"2023-09-11T09:31:11","date_gmt":"2023-09-11T01:31:11","guid":{"rendered":"https:\/\/zysgmzb.club\/?p=271"},"modified":"2023-09-11T09:32:00","modified_gmt":"2023-09-11T01:32:00","slug":"hitcon-ctf-2023-not-just-usbpcap","status":"publish","type":"post","link":"https:\/\/zysgmzb.club\/index.php\/archives\/271","title":{"rendered":"HITCONCTF 2023 Not Just usbpcap"},"content":{"rendered":"<blockquote>\n<p>\u5509\uff0c\u73b0\u5728\u6d41\u91cf\u5206\u6790\u771f\u597d\u51fa\uff0c\u6211\u4f30\u8ba1\u51fa\u8fd9\u4e2a\u9898\u53ea\u89815\u5206\u949f\uff0c\u5374\u80fd\u8ba9\u6211\u5750\u7262\u4e00\u6574\u5929\uff0c\u4e0b\u6b21\u6211\u4e5f\u51fa<\/p>\n<p>\u9644\u4ef6\uff1a\u94fe\u63a5: <a href=\"https:\/\/pan.baidu.com\/s\/1uHcQDS0v4iVb8Lq-xKRNzA?pwd=8x1n\">https:\/\/pan.baidu.com\/s\/1uHcQDS0v4iVb8Lq-xKRNzA?pwd=8x1n<\/a> \u63d0\u53d6\u7801: 8x1n \u590d\u5236\u8fd9\u6bb5\u5185\u5bb9\u540e\u6253\u5f00\u767e\u5ea6\u7f51\u76d8\u624b\u673aApp\uff0c\u64cd\u4f5c\u66f4\u65b9\u4fbf\u54e6<br \/>\n--\u6765\u81ea\u767e\u5ea6\u7f51\u76d8\u8d85\u7ea7\u4f1a\u5458v4\u7684\u5206\u4eab<\/p>\n<\/blockquote>\n<p>\u4e4b\u524d\u4ece\u6ca1\u505a\u8fc7\u8fd9\u6837\u7684\uff0c\u5199\u4e2awp\u8bb0\u5f55\u4e0b\u5750\u7262\u4e00\u5929\u90fd\u5e72\u4e86\u4ec0\u4e48<\/p>\n<p>\u62ff\u5230\u624b\u91cc\uff0c\u4e00\u773c\u4e01\u771f\uff0cusb\u6d41\u91cf\uff0c\u5148\u4ee5\u6e90\u5934\u6392\u5e8f\uff0c\u627e\u5230\u51e0\u4e2a\u6709\u70b9\u4e1c\u897f\u7684\u6e90\u5934<\/p>\n<pre class=\"prettyprint linenums\" ><code>1.10.1\n1.9.1\nlocalhost()<\/code><\/pre>\n<p>\u7136\u540e\u518d\u4ee5\u5e8f\u53f7\u6392\u5e8f\u5012\u56de\u53bb\u67e5\u770b\u8bbe\u5907<\/p>\n<pre class=\"prettyprint linenums\" ><code>1.10.1 --&gt; bString: USB-HID Keyboard\n1.9.1 --&gt; bString: USB Optical Mouse\nlocalhost() --&gt; Remote Name: Pixel Buds A-Series<\/code><\/pre>\n<p>\u6240\u4ee5\u8bf41.10\u662f\u67d0\u79cd\u952e\u76d8\uff0c1.9\u662f\u67d0\u79cd\u9f20\u6807\uff0c\u8fd8\u6709\u4e00\u4e2a\u84dd\u7259\u8033\u673a<\/p>\n<p>\u5148\u770b\u952e\u76d8\uff0c\u4e0d\u591a\u8bf4\u4e86\uff0c\u63d0\u53d6hiddata\uff0c\u518d\u7b80\u5355\u5904\u7406\u4e00\u4e0b\u5f97\u5230\u6572\u5f97\u5185\u5bb9<\/p>\n<pre class=\"prettyprint linenums\" ><code>radio.chal.hitconctf.com\n\nsorry, no flag here. try harder. but i can tell you that the flag format is hitcon{lower-case-english-separated-with-dash}\nagain, this is not the flag<\/code><\/pre>\n<p>\u53ef\u4ee5\u5f97\u77e5flag\u683c\u5f0f\u4ee5\u53ca\u4e00\u4e2a\u7f51\u7ad9<\/p>\n<p>\u7f51\u7ad9\u70b9\u8fdb\u53bb\u5c31\u662f\u653enever gonna give you up\u7684\uff0c\u4e0d\u597d\u8bf4<\/p>\n<p>\u9f20\u6807\u7684\u5185\u5bb9\u8fd9\u91cc\u4e5f\u4e0d\u591a\u8bf4\u4e86\uff0c\u5565\u4e5f\u6ca1\u6709\uff0c\u5c31\u662f\u6b63\u5e38\u7528\u9f20\u6807\u7684\u8f68\u8ff9<\/p>\n<p>\u7136\u540e\u5c31\u662f\u84dd\u7259\u8033\u673a\u7684\u6d41\u91cf\uff0c\u4e00\u6761\u6761\u8ddf\u8fdb\u53d1\u73b0\u4ece4116\u90a3\u6761\u5f00\u59cb\u4f20\u8f93\u4e86\u5f88\u591a\u6570\u636e<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/pic.imgdb.cn\/item\/64fd80ac661c6c8e5431c368.jpg\" alt=\"\" \/><\/p>\n<p>\u5e76\u4e14\u8fd9\u4e9b\u6570\u636e\u90fd\u6709\u76f8\u540c\u768447fc00\u7684\u5f00\u5934\uff0c\u7ed3\u5408\u84dd\u7259\u8033\u673a\u731c\u6d4b\u662f\u5728\u542c\u6b4c\u5565\u7684\uff0c\u4f20\u8f93\u7684\u5219\u662f\u97f3\u9891\u6570\u636e<\/p>\n<p>\u9009\u4e2d\u5176\u4e2d\u4e00\u4e2a\u53f3\u952edecode as\uff0c\u7136\u540e\u9009\u62e9BT AVDTP<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/pic.imgdb.cn\/item\/64fd817c661c6c8e5431dd84.jpg\" alt=\"\" \/><\/p>\n<p>\u8fd9\u65f6\u5019\u518d\u53bb\u770b\uff0c\u5c31\u53ef\u4ee5\u770b\u5230\u4f20\u8f93\u7684\u6570\u636e\u7c7b\u578b<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/pic.imgdb.cn\/item\/64fd81ac661c6c8e5431e4a5.jpg\" alt=\"\" \/><\/p>\n<p>\u4e00\u773c\u4e01\u771f\uff0c\u706b\u901f\u53bb\u627e\u6587\u7ae0<\/p>\n<p>\u4f46\u662f\u7ffb\u9605\u4e86\u5404\u79cd\u6587\u6863\u8ddfwiki\u4e4b\u540e\u6ca1\u53d1\u73b0\u8fd9\u548c\u6d41\u91cf\u91cc\u7684\u6570\u636e\u6709\u4ec0\u4e48\u76f8\u4f3c<\/p>\n<p>\u4e4b\u540e\u5361\u4e86\u5f88\u4e45\u751a\u81f3\u8fd8\u60f3\u8fc7\u6d41\u91cf\u91cd\u653e\uff08<\/p>\n<p>\u8fd9\u65f6\u53d1\u73b0\u4e86\u4e00\u4e2a\u5e16\u5b50<\/p>\n<p><a href=\"https:\/\/stackoverflow.com\/questions\/35915317\/decode-mpeg-2-4-aac-lc-latm-bitstream-for-a2dp\">https:\/\/stackoverflow.com\/questions\/35915317\/decode-mpeg-2-4-aac-lc-latm-bitstream-for-a2dp<\/a><\/p>\n<p>\u6211\u6d4b\uff0c\u8fd9\u4e0d\u548c\u6211\u624b\u4e0a\u7684\u6570\u636e\u4e00\u6a21\u4e00\u6837\u5417<\/p>\n<p>\u8fd9\u65f6\u5019\u5c31\u77e5\u9053\u4e86\u5e94\u8be5\u662f\u6c34\u679c\u5bb6\u7684\u67d0\u79cd\u97f3\u9891\u683c\u5f0f\u53eb\u505alatm<\/p>\n<p>\u7136\u540e\u518d\u641c\uff0c\u627e\u5230\u8fd9\u4e2aissue<\/p>\n<p><a href=\"https:\/\/github.com\/mstorsjo\/fdk-aac\/issues\/85?ysclid=lmctpnlou7322358229\">https:\/\/github.com\/mstorsjo\/fdk-aac\/issues\/85?ysclid=lmctpnlou7322358229<\/a><\/p>\n<p>\u7136\u540e\u627e\u5230\u4e86\u8fd9\u4e2a\u89e3\u7801\u5668<\/p>\n<p><a href=\"https:\/\/github.com\/dhavalbc\/MPEG2-4-AAC-DECODER\">https:\/\/github.com\/dhavalbc\/MPEG2-4-AAC-DECODER<\/a><\/p>\n<p>\u968f\u4fbf\u63d0\u53d6\u4e86\u4e00\u6bb5\u6570\u636e\u53bb\u89e3\u7801\u5c31\u53ef\u4ee5\u5f97\u5230aac\u6570\u636e\u6d41\u7136\u540e\u76f4\u63a5ffmpeg\u5c31\u53ef\u4ee5\u8f6c\u5316\u6210wav\u4e4b\u7c7b\u7684<\/p>\n<p>\u7b80\u5355\u770b\u4e86\u4e0b\u4ed6\u6240\u505a\u7684\u5e94\u8be5\u5c31\u662f\u628a\u8fd9\u4e00\u6761\u6539\u6210\u4e86adts\u683c\u5f0f\u7684aac\u6bd4\u7279\u6d41\uff0c\u6bcf\u4e00\u6761\u76f8\u5f53\u4e8e\u97f3\u9891\u91cc\u7684\u4e00\u5e27\uff0c\u77e5\u9053\u8fd9\u4e2a\u5c31\u597d\u529e\u4e86<\/p>\n<p>\u5148tshark\u63d0\u53d6\u6240\u6709latm\u6570\u636e<\/p>\n<pre class=\"prettyprint linenums\" ><code>tshark -r release-7ecaf64448a034214d100258675ca969d2232f54.pcapng -T fields -e data.data | sed &#039;\/^\\s*$\/d&#039; &gt; 1.txt<\/code><\/pre>\n<p>\u7136\u540e\u5199\u811a\u672c\u7b80\u5355\u8f6c\u5316\u4e0b<\/p>\n<pre class=\"prettyprint linenums\" ><code>f = open(&#039;1.txt&#039;).readlines()\n\nwith open(&#039;data.latm&#039;,&#039;wb&#039;) as ff:\n\u00a0 \u00a0 for i in f:\n\u00a0 \u00a0 \u00a0 \u00a0 dataa = bytes.fromhex(&quot;FFF1108052DFFD&quot;) + bytes.fromhex(i[24:])\n\u00a0 \u00a0 \u00a0 \u00a0 ff.write(dataa)\nff.close()<\/code><\/pre>\n<p>\u8fd9\u91cc\u9762\u4f7f\u7528FFF1108052DFFD\u8865\u4e0a\u4e86adts header\u5e76\u4e14\u628a\u539f\u6765\u7684header\u53bb\u6389\u4e86<\/p>\n<p>\u7136\u540e\u5c31\u5f97\u5230\u4e86\u4e00\u5927\u6bb5\u5b8c\u6574\u7684adts\u5f62\u5f0f\u7684aac\u6bd4\u7279\u6d41<\/p>\n<p>\u76f4\u63a5ffmpeg\u8f6c\u5316<\/p>\n<pre class=\"prettyprint linenums\" ><code>ffmpeg -i data.latm 1.wav<\/code><\/pre>\n<p>\u518d\u6253\u5f00\u97f3\u9891\u5c31\u53ef\u4ee5\u542c\u5230\u6e05\u6670\u7684\u4eba\u58f0\u8bfbflag\u4e86<\/p>\n<p>\u4ee4\u4eba\u611f\u53f9\uff0c\u770b\u4f3c\u662f\u84dd\u7259\u5176\u5b9e\u8fd8\u662f\u97f3\u9891\u65b9\u9762\u7684\u77e5\u8bc6\u70b9\uff0c\u5750\u7262\u5750\u9ebb\u4e86<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5509\uff0c\u73b0\u5728\u6d41\u91cf\u5206\u6790\u771f\u597d\u51fa\uff0c\u6211\u4f30\u8ba1\u51fa\u8fd9\u4e2a\u9898\u53ea\u89815\u5206\u949f\uff0c\u5374\u80fd\u8ba9\u6211\u5750\u7262\u4e00\u6574\u5929\uff0c\u4e0b\u6b21\u6211\u4e5f\u51fa \u9644\u4ef6\uff1a\u94fe\u63a5: https:\/\/pan.baidu.com\/s\/1uHcQDS0v4iVb8Lq-xKRNzA?pwd=8x1n \u63d0\u53d6\u7801: 8x1n \u590d\u5236\u8fd9\u6bb5\u5185\u5bb9\u540e\u6253\u5f00\u767e\u5ea6\u7f51\u76d8\u624b\u673aApp\uff0c\u64cd\u4f5c\u66f4\u65b9\u4fbf\u54e6 &#8211;\u6765\u81ea\u767e\u5ea6\u7f51\u76d8\u8d85\u7ea7\u4f1a\u5458v4\u7684\u5206\u4eab \u4e4b\u524d\u4ece\u6ca1\u505a\u8fc7\u8fd9\u6837\u7684\uff0c\u5199\u4e2awp\u8bb0\u5f55\u4e0b\u5750\u7262\u4e00\u5929\u90fd\u5e72\u4e86\u4ec0\u4e48 \u62ff\u5230\u624b\u91cc\uff0c\u4e00\u773c\u4e01\u771f\uff0cusb\u6d41 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-271","post","type-post","status-publish","format-standard","hentry","category-wp"],"_links":{"self":[{"href":"https:\/\/zysgmzb.club\/index.php\/wp-json\/wp\/v2\/posts\/271","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zysgmzb.club\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zysgmzb.club\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zysgmzb.club\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zysgmzb.club\/index.php\/wp-json\/wp\/v2\/comments?post=271"}],"version-history":[{"count":2,"href":"https:\/\/zysgmzb.club\/index.php\/wp-json\/wp\/v2\/posts\/271\/revisions"}],"predecessor-version":[{"id":273,"href":"https:\/\/zysgmzb.club\/index.php\/wp-json\/wp\/v2\/posts\/271\/revisions\/273"}],"wp:attachment":[{"href":"https:\/\/zysgmzb.club\/index.php\/wp-json\/wp\/v2\/media?parent=271"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zysgmzb.club\/index.php\/wp-json\/wp\/v2\/categories?post=271"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zysgmzb.club\/index.php\/wp-json\/wp\/v2\/tags?post=271"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}