{"id":645,"date":"2026-01-31T23:12:39","date_gmt":"2026-01-31T15:12:39","guid":{"rendered":"http:\/\/shr1mp.top\/?p=645"},"modified":"2026-02-06T11:35:52","modified_gmt":"2026-02-06T03:35:52","slug":"union-ctfmisc","status":"publish","type":"post","link":"http:\/\/shr1mp.top\/index.php\/2026\/01\/31\/union-ctfmisc\/","title":{"rendered":"[Union-CTF]misc"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"welcome\">Welcome<\/h2>\n\n\n\n<p>\u7565\uff08\u626b\u4e8c\u7ef4\u7801\u5173\u6ce8\u516c\u4f17\u53f7\u9886\u53d6\uff09<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u603b\u88c1\u56db\u6bd4\u7279-\u8fd9\u80fd\u73a9\">\u603b\u88c1\u56db\u6bd4\u7279,\u8fd9\u80fd\u73a9\uff1f<\/h2>\n\n\n\n<p>\u9898\u76ee\u540d\u5b57\u53eb\u505a4\u6bd4\u7279\uff0c\u7279\u5730\u4e0a\u7f51\u641c\u4e86\u4e0b\u6709\u6ca1\u6709\u76f8\u5173\u7684\u77e5\u8bc6\u70b9<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>\u77e5\u8bc6\u70b9\uff1a4-bit(\u534a\u5b57\u8282\/nibble)\u64cd\u4f5c<\/strong>\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>4-bit\uff08\u534a\u5b57\u8282\/nibble\uff09\uff1a\n    1\u4e2a\u5b57\u8282\uff08byte\uff09= 8\u4f4d\uff08bits\uff09= 2\u4e2a\u534a\u5b57\u8282\uff08nibbles\uff09\n    \u9ad84\u4f4d\uff08\u9ad8\u534a\u5b57\u8282\uff09\uff1abit7-bit4\n    \u4f4e4\u4f4d\uff08\u4f4e\u534a\u5b57\u8282\uff09\uff1abit3-bit0\n    \u5341\u516d\u8fdb\u5236\u8868\u793a\uff1a\u6bcf\u4e2a\u534a\u5b57\u8282\u6b63\u597d\u5bf9\u5e941\u4f4d\u5341\u516d\u8fdb\u5236\u6570\u5b57\uff080-F\uff09<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code>#python\u91cc\u7684\u5904\u7406\u65b9\u6cd5\uff1a\uff08\u9002\u5408\u65b0\u624b\u4f53\u8d28\u7684\u89e3\u8bfb\uff09\n#-----------------------------------------------------------\n#\u9996\u5148\u5bf9\u4e8e|\u7684\u7528\u6cd5\uff1a\n#\u6574\u6570\uff1a\u5c06\u4e24\u4e2a\u6570\u5b57\u7684\u4e8c\u8fdb\u5236\u4f4d\u8fdb\u884c\u6bd4\u8f83\uff0c\u53ea\u8981\u6709\u4e00\u4e2a\u4e3a 1\uff0c\u7ed3\u679c\u4f4d\u5c31\u4e3a 1\u3002\n#\u5b57\u5178\uff1a\u5c06\u4e24\u4e2a\u5b57\u5178\u5408\u5e76\u6210\u4e00\u4e2a\u65b0\u5b57\u5178\u3002\u5982\u679c\u952e\u91cd\u590d\uff0c\u5219\u540e\u4e00\u4e2a\u5b57\u5178\u7684\u503c\u4f1a\u8986\u76d6\u524d\u4e00\u4e2a\u3002\n\"\"\"\n\u4f8b\u5b50\uff1a\ndict1 = {'a': 1, 'b': 2}\ndict2 = {'b': 99, 'c': 3}  # \u952e 'b' \u91cd\u590d\u4e86\nmerged_dict = dict1 | dict2\nprint(merged_dict)  # \u8f93\u51fa: {'a': 1, 'b': 99, 'c': 3}\n\"\"\"\n#-----------------------------------------------------------------\n#\u7b2c\u4e00\u6b65\uff1a\n#\u8fd9\u91cc\u8bfb\u53d6\u50a8\u5b58\u4e8c\u8fdb\u5236\u6570\u636e\uff0c'rb'\u5373\u8bfb\u53d6\u4e8c\u8fdb\u5236\u7684\u6a21\u5f0f\nwith open('\u6587\u4ef6', 'rb') as q:\n    data = q.read()\n#\u7b2c\u4e8c\u6b65\uff1a\n#\u5148\u521b\u5efa\u5b57\u5178K\uff0c\u5c06\u6bcf\u9ad8\u4f4d\u8282\u7684\u56db\u4e2a\u4e8c\u8fdb\u5236\uff08\u534a\u5b57\u8282\/nibble\uff09\u4fdd\u5b58\u6210\u5b57\u5178\u4e2d\u7684\u4e00\u4e2a\u9879\u76ee\u76f4\u5230\u904d\u5386\u6574\u4e2adata\nK = &#91;b &gt;&gt; 4 for b in data]              ###    python\u7684\u201d\u63a8\u5bfc\u5f0f\u201c\u683c\u5f0f\uff1a&#91;\u6838\u5fc3\u64cd\u4f5c for \u5faa\u73af]\n                                        ###    b\u662f\u4e00\u4e2a\u5b57\u8282\uff088\u4e2a\u4e8c\u8fdb\u5236\uff09\uff0c\u5c06\u8fd9\u4e2a\u5b57\u8282\u4e8c\u8fdb\u5236\u53f3\u79fb4\u4f4d\uff0c\u5373\u53ea\u5b58\u9ad8\u4f4d\u8282\n#\u7b2c\u4e09\u6b65\uff1a\n#\u5c06\u4e24\u4e2a\u9ad8\u4f4d\u8282\u62fc\u5728\u4e00\u8d77\u5e76\u8d4b\u503ca                \na = bytes((K&#91;i] &lt;&lt; 4) | K&#91;i+1]            ###\u4e00\u4e2a\u5178\u578b\u7684\u4f4d\u8fd0\u7b97\u64cd\u4f5c\uff0c\u5373\u628a\u4e24\u4e2a\u9ad8\u4f4d\u8282\u62fc\u5728\u4e00\u8d77\u5f62\u6210\u4e00\u4e2a\u5b57\u8282\n                 for i in range(0, len(K)-1, 2))          \n###tips1\uff1a\u7a7a\u56db\u4e2a\u7f29\u8fdb\u5927\u683c\u662fpython\u7684\u7279\u6b8a\u8868\u8fbe\u65b9\u5f0f\uff0c\u610f\u5473\u7740\u5185\u5bb9\u7684\u5ef6\u7eed\uff0c\u8fd9\u6837\u65b9\u4fbf\u89c2\u5bdf\u4ee3\u7801\n###tips2\uff1a\u6bcf\u6b21\u64cd\u4f5c\u540e\u4ea7\u751f\u7684\u5b57\u8282\u4f1a\u50a8\u5b58\u5728bytes\uff08\uff09\u7b49\u5230\u6240\u6709\u5faa\u73af\u7ed3\u675f\uff0cbytes\uff08\uff09\u4f1a\u6839\u636e\u63a5\u6536\u5230\u7684\u6570\u636e\u4e00\u6b21\u6027\u4ea7\u751f\u4e8c\u8fdb\u5236\u503c<\/code><\/pre>\n\n\n\n<p>\u9996\u5148\u7ed9\u4e86JPG\u6587\u4ef6\uff0c\u6211\u5148\u5c1d\u8bd5\u4e86foremost\uff0c\u53d1\u73b0\u6587\u4ef6\u672b\u5c3e\u6709\u4e24\u4e2a89 50 4E 47 0D 0A 1A 0A\u7ed3\u5c3e\u7684PNG\uff0c\u5148\u5355\u72ec\u53d6\u51fa\u6765\uff0c\u53d1\u73b0\u8fd9\u4e24\u4e2a\u56fe\u7247\u662f\u4e00\u6837\u7684\uff0c\u4ec5\u5185\u5bb9\u548c\u5927\u5c0f\uff0c\u800c\u4e14\u4e5f\u6ca1\u6709\u76f2\u6c34\u5370\u3002<\/p>\n\n\n\n<p>\u540e\u9762\u624b\u52a8\u5206\u6790\u4e86\u4e0b\uff0c\u53d1\u73b0\u8fd9\u4e2a\u6587\u4ef6\u7684\u7ed3\u6784\u662f\u8fd9\u6837\u7684\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"587\" src=\"http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769443518-\u5c4f\u5e55\u622a\u56fe-2026-01-26-163248-1024x587.png\" alt=\"\" class=\"wp-image-651\" srcset=\"http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769443518-\u5c4f\u5e55\u622a\u56fe-2026-01-26-163248-1024x587.png 1024w, http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769443518-\u5c4f\u5e55\u622a\u56fe-2026-01-26-163248-300x172.png 300w, http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769443518-\u5c4f\u5e55\u622a\u56fe-2026-01-26-163248-768x441.png 768w, http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769443518-\u5c4f\u5e55\u622a\u56fe-2026-01-26-163248-1536x881.png 1536w, http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769443518-\u5c4f\u5e55\u622a\u56fe-2026-01-26-163248-2048x1175.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"602\" src=\"http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769443533-\u5c4f\u5e55\u622a\u56fe-2026-01-26-163515-1024x602.png\" alt=\"\" class=\"wp-image-652\" srcset=\"http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769443533-\u5c4f\u5e55\u622a\u56fe-2026-01-26-163515-1024x602.png 1024w, http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769443533-\u5c4f\u5e55\u622a\u56fe-2026-01-26-163515-300x176.png 300w, http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769443533-\u5c4f\u5e55\u622a\u56fe-2026-01-26-163515-768x452.png 768w, http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769443533-\u5c4f\u5e55\u622a\u56fe-2026-01-26-163515-1536x903.png 1536w, http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769443533-\u5c4f\u5e55\u622a\u56fe-2026-01-26-163515.png 1969w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>JPG\n\u4e2d\u95f4\u6709\u6bb5\u83ab\u540d\u5176\u5999\u7684\u5b57\u7b26\nPNG\nPNG<\/code><\/pre>\n\n\n\n<p>\u6211\u5c1d\u8bd5\u5c06PNG\u548c\u4e2d\u95f4\u7684\u5b57\u7b26\u5355\u72ec\u63d0\u51fa\u6765\uff0c\u53d1\u73b0\u4e24\u4e2a\u6587\u4ef6\u5185\u5b58\u5927\u5c0f\u662f\u4e00\u6a21\u4e00\u6837\u7684\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"736\" height=\"910\" src=\"http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769443647-\u5c4f\u5e55\u622a\u56fe-2026-01-26-235813.png\" alt=\"\" class=\"wp-image-653\" srcset=\"http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769443647-\u5c4f\u5e55\u622a\u56fe-2026-01-26-235813.png 736w, http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769443647-\u5c4f\u5e55\u622a\u56fe-2026-01-26-235813-243x300.png 243w\" sizes=\"auto, (max-width: 736px) 100vw, 736px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"729\" height=\"918\" src=\"http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769443653-\u5c4f\u5e55\u622a\u56fe-2026-01-26-235825.png\" alt=\"\" class=\"wp-image-654\" srcset=\"http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769443653-\u5c4f\u5e55\u622a\u56fe-2026-01-26-235825.png 729w, http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769443653-\u5c4f\u5e55\u622a\u56fe-2026-01-26-235825-238x300.png 238w\" sizes=\"auto, (max-width: 729px) 100vw, 729px\" \/><\/figure>\n\n\n\n<p>\u53c8\u7ed3\u5408\u9898\u76ee\u53c84-bit\uff0c\u8bf4\u660e\u8fd9\u662f4-bit\uff08\u534a\u5b57\u8282\/nibble\uff09\u64cd\u4f5c\u3002\u518d\u5206\u6790\u53d1\u73b0\uff1a<\/p>\n\n\n\n<p>\u4e2d\u95f4\u7684\u6570\u636e\u548cpng\u768416\u8fdb\u5236\u6587\u4ef6\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\u4f4e 4 \u4f4d\u5b8c\u5168\u76f8\u540c\n\n\u9ad8 4 \u4f4d\u4e0d\u540c<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"562\" height=\"1024\" src=\"http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769443810-\u5c4f\u5e55\u622a\u56fe-2026-01-26-235904-562x1024.png\" alt=\"\" class=\"wp-image-655\" srcset=\"http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769443810-\u5c4f\u5e55\u622a\u56fe-2026-01-26-235904-562x1024.png 562w, http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769443810-\u5c4f\u5e55\u622a\u56fe-2026-01-26-235904-165x300.png 165w, http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769443810-\u5c4f\u5e55\u622a\u56fe-2026-01-26-235904.png 589w\" sizes=\"auto, (max-width: 562px) 100vw, 562px\" \/><figcaption class=\"wp-element-caption\">mid<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"560\" height=\"1024\" src=\"http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769443815-\u5c4f\u5e55\u622a\u56fe-2026-01-26-235922-560x1024.png\" alt=\"\" class=\"wp-image-656\" srcset=\"http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769443815-\u5c4f\u5e55\u622a\u56fe-2026-01-26-235922-560x1024.png 560w, http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769443815-\u5c4f\u5e55\u622a\u56fe-2026-01-26-235922-164x300.png 164w, http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769443815-\u5c4f\u5e55\u622a\u56fe-2026-01-26-235922.png 596w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/><figcaption class=\"wp-element-caption\">png<\/figcaption><\/figure>\n\n\n\n<p><strong>\u5173\u952e\uff1a\u5c06 mid\u6570\u636e\u7684**\u9ad8 4 \u4f4d**\u63d0\u53d6\u51fa\u6765\uff0c\u6bcf\u4e24\u4e2a nibble \u7ec4\u5408\u6210\u4e00\u4e2a\u5b8c\u6574\u5b57\u8282\uff0c\u5f97\u5230\u4e00\u4e2a ZIP \u6587\u4ef6\uff01<\/strong><\/p>\n\n\n\n<p>\u5148\u5c06mid\u7684\u9ad8\u56db\u4f4d\u768416\u8fdb\u5236\u6570\u636e\u7c97\u7565\u770b\u4e0b\uff0c\u6bcf\u4e24\u4e2a nibble \u7ec4\u5408\u6210\u4e00\u4e2a\u5b8c\u6574\u5b57\u8282\uff0c\u53d1\u73b0\u7ec4\u5408\u8d77\u6765\u662f\u662f50 4B 03 04\uff0c\u8fd9\u662fzip\u7684\u6587\u4ef6\u5934<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import io\nimport zipfile\n# \u8bfb\u53d6\u6587\u4ef6\uff0c\u6211\u7684\u6587\u4ef6\u540d\u5b57\u5c31\u53ebmid\uff0c\u7136\u540e\u6700\u540e\u7684zip\u540d\u5b57\u53eb1.zip\nwith open('mid', 'rb') as q:\n    data1 = q.read()\n# \u63d0\u53d6 mid\u7684\u9ad8 4 \u4f4d\nmid_high_nibbles = &#91;b >> 4 for b in data1]\n# \u6bcf\u4e24\u4e2a nibble \u7ec4\u5408\u6210\u4e00\u4e2a\u5b57\u8282\nzip_data = bytes((mid_high_nibbles&#91;i] << 4) | mid_high_nibbles&#91;i+1] \n                 for i in range(0, len(mid_high_nibbles)-1, 2))\nwith open('1.zip', 'wb') as f:  \n    f.write(zip_data)<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"257\" src=\"http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769445135-\u5c4f\u5e55\u622a\u56fe-2026-01-27-003203-1024x257.png\" alt=\"\" class=\"wp-image-661\" srcset=\"http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769445135-\u5c4f\u5e55\u622a\u56fe-2026-01-27-003203-1024x257.png 1024w, http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769445135-\u5c4f\u5e55\u622a\u56fe-2026-01-27-003203-300x75.png 300w, http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769445135-\u5c4f\u5e55\u622a\u56fe-2026-01-27-003203-768x192.png 768w, http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769445135-\u5c4f\u5e55\u622a\u56fe-2026-01-27-003203-1536x385.png 1536w, http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769445135-\u5c4f\u5e55\u622a\u56fe-2026-01-27-003203.png 1864w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u5206\u6790\u8fd9\u4e2a\u5b8c\u6574\u7684png\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"508\" src=\"http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769445283-\u5c4f\u5e55\u622a\u56fe-2026-01-27-003433-1024x508.png\" alt=\"\" class=\"wp-image-662\" srcset=\"http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769445283-\u5c4f\u5e55\u622a\u56fe-2026-01-27-003433-1024x508.png 1024w, http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769445283-\u5c4f\u5e55\u622a\u56fe-2026-01-27-003433-300x149.png 300w, http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769445283-\u5c4f\u5e55\u622a\u56fe-2026-01-27-003433-768x381.png 768w, http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769445283-\u5c4f\u5e55\u622a\u56fe-2026-01-27-003433-1536x762.png 1536w, http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769445283-\u5c4f\u5e55\u622a\u56fe-2026-01-27-003433-2048x1016.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u540e\u9762\u8fd8\u85cf\u4e86\u4e00\u4e2azip\u6587\u4ef6\uff0c\u8fd9\u4e2a\u91cc\u9762\u5e26flag.txt<\/p>\n\n\n\n<p>\u63d0\u51fa\u6765\uff0c\u89e3\u538b\u5f97\u5230\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>UniCTF{Y0u_4r3_4_6r347_h4ck3r_!}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u5de5\u5382\u5e94\u6025\u6d41\u91cf\u5206\u6790\">\u5de5\u5382\u5e94\u6025\u6d41\u91cf\u5206\u6790<\/h2>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-shr-1-mp wp-block-embed-shr-1-mp\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"9FgffLqwMg\"><a href=\"http:\/\/shr1mp.top\/index.php\/2026\/01\/31\/unictf2026%e5%b7%a5%e5%8e%82%e5%ba%94%e6%80%a5%e6%b5%81%e9%87%8f%e5%88%86%e6%9e%90\/\">[unictf2026]\u5de5\u5382\u5e94\u6025\u6d41\u91cf\u5206\u6790<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"\u300a [unictf2026]\u5de5\u5382\u5e94\u6025\u6d41\u91cf\u5206\u6790 \u300b\u2014Shr1mp\u7684\u535a\u5ba2\" src=\"http:\/\/shr1mp.top\/index.php\/2026\/01\/31\/unictf2026%e5%b7%a5%e5%8e%82%e5%ba%94%e6%80%a5%e6%b5%81%e9%87%8f%e5%88%86%e6%9e%90\/embed\/#?secret=qj2KaAOQDb#?secret=9FgffLqwMg\" data-secret=\"9FgffLqwMg\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"silent-resolver\">Silent Resolver<\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u770b\u770b\u6211\u85cf\u4e86\u4ec0\u4e48<\/p>\n<\/blockquote>\n\n\n\n<p>\u62ff\u5230\u9898\u76ee\u53ea\u7ed9\u4e86\u4e00\u4e2a traffic.pcapng\u3002\u6211\u7b2c\u4e00\u53cd\u5e94\u5c31\u662f\u5148\u5728\u5305\u91cc\u641c\u4e00\u641c\u5173\u952e\u5b57\uff08`flag` \/ `ctf` \/ `{}` \u4e4b\u7c7b\uff09\uff0c\u56e0\u4e3a\u5f88\u591a Misc \u5c31\u85cf\u5728\u660e\u6587\u91cc\u3002<\/p>\n\n\n\n<p>\u8fd9\u4efd\u5305\u4e0d\u5927\uff08\u51e0\u5341 KB\uff09\uff0c\u4f46\u76f4\u63a5\u626b payload \u5e76\u6ca1\u6709\u51fa\u73b0 `flag` \/ `CTF{` \u8fd9\u79cd\u76f4\u7ed9\u7684\u5b57\u7b26\u4e32\uff0c\u4e0d\u8fc7\u80fd\u770b\u5230\u4e00\u4e9b DNS \u8bf7\u6c42\u91cc\u5e26\u4e86 `unictf` \u76f8\u5173\u57df\u540d\u3002\u8fd9\u4e9b\u662f\u53ef\u7591\u7684\u6d41\u91cf<\/p>\n\n\n\n<p>\u53ea\u770b\u7684\u5e26unictf\u7684\u6d41\u91cf<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>frame contains \"exfil\"<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"276\" src=\"http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769507239-\u5c4f\u5e55\u622a\u56fe-2026-01-27-174713-1024x276.png\" alt=\"\" class=\"wp-image-716\" srcset=\"http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769507239-\u5c4f\u5e55\u622a\u56fe-2026-01-27-174713-1024x276.png 1024w, http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769507239-\u5c4f\u5e55\u622a\u56fe-2026-01-27-174713-300x81.png 300w, http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769507239-\u5c4f\u5e55\u622a\u56fe-2026-01-27-174713-768x207.png 768w, http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769507239-\u5c4f\u5e55\u622a\u56fe-2026-01-27-174713-1536x414.png 1536w, http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769507239-\u5c4f\u5e55\u622a\u56fe-2026-01-27-174713-2048x551.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>0000.<\u5f88\u957f\u4e00\u4e32>.a1b2c3d4.exfil.unictf.local\n0001.<\u5f88\u957f\u4e00\u4e32>.a1b2c3d4.exfil.unictf.local\n...\nffff.1818be0b.a1b2c3d4.exfil.unictf.local<\/code><\/pre>\n\n\n\n<p>\u51e0\u4e2a\u660e\u663e\u7684\u4fe1\u53f7\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>- `exfil` \u8fd9\u79cd\u524d\u7f00\u57fa\u672c\u5c31\u662f\u201c\u6211\u5728\u5916\u5e26\u6570\u636e\u201d\uff1b\n- \u7b2c\u4e00\u6bb5\u662f `0000 \/ 0001 \/ ...`\uff0c\u50cf\u5206\u7247\u5e8f\u53f7\uff1b\n- \u4e2d\u95f4\u90a3\u5768\u5b57\u7b26\u53ea\u5305\u542b `a-z` \u548c `2-7`\uff08\u5939\u6742\u5c11\u91cf\u6570\u5b57\uff09\uff0c\u5c1d\u8bd5\u590d\u5236\u4e00\u7ec4\u8fdbcyberchef\uff0c\u63d0\u793a\u662fBase32\uff1b\n- \u6700\u540e\u4e00\u4e2a `ffff.1818be0b` \u770b\u7740\u50cf\u7ed3\u675f\u6807\u8bb0 + \u6821\u9a8c\u503c\uff08\u5341\u516d\u8fdb\u5236 8 \u4f4d\uff09\u3002<\/code><\/pre>\n\n\n\n<p>\u628a\u8fd9\u4e9b\u5f88\u957f\u7684\u5b57\u7b26\u5168\u90e8\u62ff\u5230\u4e00\u4e2a\u6587\u4ef6\u91cc<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"sign-in\">Sign in<\/h2>\n\n\n\n<p>\u62ff\u5230\u9644\u4ef6\u662f\u4e2a\u5f88\u5c0f\u7684 zip\uff08200B\uff09<\/p>\n\n\n\n<p>\u89e3\u538b\u51fa\u6765\u7684\u6587\u4ef6\u5f88\u5c0f\uff0c\u6ca1\u6709\u5565\u7528\uff0c\u770b\u770b\u538b\u7f29\u5305\u7684hex\u7f16\u7801\uff0c\u53d1\u73b0\u5728\u7ed3\u5c3e\u6807\u8bc6\u540e\u8fd8\u6709\u4e00\u4e32ascll\u4ee3\u7801<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>U2VjcmV0S2V5<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"885\" height=\"346\" src=\"http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769508621-\u56fe\u7247.png\" alt=\"\" class=\"wp-image-719\" srcset=\"http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769508621-\u56fe\u7247.png 885w, http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769508621-\u56fe\u7247-300x117.png 300w, http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769508621-\u56fe\u7247-768x300.png 768w\" sizes=\"auto, (max-width: 885px) 100vw, 885px\" \/><\/figure>\n\n\n\n<p>\u67e5\u627e\u8d44\u6599\u53d1\u73b0\u8fd9\u662f<strong>zip comment\uff08\u538b\u7f29\u5305\u6ce8\u91ca\uff09<\/strong><\/p>\n\n\n\n<p>\u75287z\u6253\u5f00\u9a8c\u8bc1\u4e0b\uff0c\u53d1\u73b0\u786e\u5b9e\u662f\u6ce8\u91ca<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"819\" src=\"http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769508738-\u5c4f\u5e55\u622a\u56fe-2026-01-27-181203-1024x819.png\" alt=\"\" class=\"wp-image-720\" srcset=\"http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769508738-\u5c4f\u5e55\u622a\u56fe-2026-01-27-181203-1024x819.png 1024w, http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769508738-\u5c4f\u5e55\u622a\u56fe-2026-01-27-181203-300x240.png 300w, http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769508738-\u5c4f\u5e55\u622a\u56fe-2026-01-27-181203-768x614.png 768w, http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769508738-\u5c4f\u5e55\u622a\u56fe-2026-01-27-181203.png 1103w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Base64\u89e3\u7801\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SecretKey<\/code><\/pre>\n\n\n\n<p>\u63a5\u4e0b\u6765\u5173\u4e8e\u538b\u7f29\u5305\u91cc\u9762\u7684<strong>Serpent.dat<\/strong> \u662f\u4ec0\u4e48<\/p>\n\n\n\n<p>\u662f <strong>**Serpent \u5206\u7ec4\u5bc6\u7801**<\/strong>\uff08128-bit block\uff09\u7684 ECB \u4e24\u4e2a block\u3002<\/p>\n\n\n\n<p>\u5bc6\u7801\u5b66\u77e5\u8bc6\u70b9\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Serpent\u7b97\u6cd5\u52a0\u5bc6\u4e00\u4e2a128\u4f4d\u6570\u636e\u5757\u7684\u8fc7\u7a0b\uff0c\u53ef\u4ee5\u7b80\u5316\u4e3a32\u8f6e\u91cd\u590d\u64cd\u4f5c\uff0c\u6bcf\u8f6e\u505a\u4e09\u4ef6\u4e8b\uff1a\n\n    \u6df7\u5165\u5bc6\u94a5\uff1a\u628a\u6570\u636e\u8ddf\u8fd9\u4e00\u8f6e\u7684\u5bc6\u94a5\u505a\u5f02\u6216\n    S\u76d2\u66ff\u6362\uff1a\u628a\u6570\u636e\u5206\u621032\u4e2a\u5c0f\u6bb5\uff0c\u6bcf\u6bb54\u4f4d\uff0c\u7528\u56fa\u5b9a\u7684\u66ff\u6362\u8868\uff08S\u76d2\uff09\u6362\u6389\n    \u7ebf\u6027\u53d8\u6362\uff1a\u5bf9\u6570\u636e\u505a\u79fb\u4f4d\u3001\u5f02\u6216\u7b49\u64cd\u4f5c\uff0c\u8ba9\u6570\u636e\u5145\u5206\u6df7\u5408\n\n\u6700\u540e\u518d\u52a0\u4e00\u8f6e\u5bc6\u94a5\uff0c\u8f93\u51fa\u5bc6\u6587\u3002\n\u66f4\u5f62\u8c61\u7684\u6bd4\u55bb\uff1a\u5c31\u50cf\u628a\u6570\u636e\u5757\uff08128\u4f4d\uff09\u653e\u8fdb\u4e00\u4e2a32\u5c42\u7684\u52a0\u5de5\u6d41\u6c34\u7ebf\uff0c\u6bcf\u5c42\u90fd\u52a0\u4e00\u6b21\u5bc6\u94a5\u3001\u6362\u4e00\u6b21\u96f6\u4ef6\uff08S\u76d2\uff09\u3001\u6405\u5300\u4e00\u6b21\uff08\u7ebf\u6027\u53d8\u6362\uff09\uff0c\u6700\u540e\u51fa\u6765\u5c31\u662f\u52a0\u5bc6\u540e\u7684\u5bc6\u6587\u3002<\/code><\/pre>\n\n\n\n<p>\u5751<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>- \u6ce8\u91ca\u91cc\u7ed9\u7684\u53ea\u662f `SecretKey`\uff089 \u5b57\u8282\uff09\uff0c\u4f46\u5b9e\u9645\u52a0\u5bc6\u901a\u5e38\u4f1a\u5582\u7ed9 cipher \u4e00\u4e2a\u56fa\u5b9a\u957f\u5ea6 key\uff08\u6bd4\u5982 16 \u5b57\u8282\uff09\u3002\n- \u8fd9\u9898\u7684\u6b63\u786e\u505a\u6cd5\u662f\uff1a`SecretKey` **\u53f3\u4fa7\u7528 `\\x00` \u8865\u5230 16 \u5b57\u8282** \u4f5c\u4e3a\u8f93\u5165 key\u3002\n\u89e3\u51fa\u6765\u7684\u660e\u6587\u672b\u5c3e\u8fd8\u6709\u51e0\u4e2a `\\x00`\uff0c\u76f4\u63a5 `rstrip(b\"\\x00\")` \u5c31\u884c\u3002<\/code><\/pre>\n\n\n\n<p>\u89e3\u51fa\u6765<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>UniCTF{Serpentine_Secrets}<\/code><\/pre>\n\n\n\n<p>ai\u751f\u6210\u7684\u89e3\u7801\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code>#!\/usr\/bin\/env python3\n# -*- coding: utf-8 -*-\nimport base64\nimport struct\nimport zipfile\n# ---------------- Serpent primitive ----------------\nSBOX = &#91;\n    &#91;3, 8, 15, 1, 10, 6, 5, 11, 14, 13, 4, 2, 7, 0, 9, 12],\n    &#91;15, 12, 2, 7, 9, 0, 5, 10, 1, 11, 14, 8, 6, 13, 3, 4],\n    &#91;8, 6, 7, 9, 3, 12, 10, 15, 13, 1, 14, 4, 0, 11, 5, 2],\n    &#91;0, 15, 11, 8, 12, 9, 6, 3, 13, 1, 2, 4, 10, 7, 5, 14],\n    &#91;1, 15, 8, 3, 12, 0, 11, 6, 2, 5, 4, 10, 9, 14, 7, 13],\n    &#91;15, 5, 2, 11, 4, 10, 9, 12, 0, 3, 14, 8, 13, 6, 7, 1],\n    &#91;7, 2, 12, 5, 8, 4, 6, 11, 14, 9, 1, 15, 13, 3, 10, 0],\n    &#91;1, 13, 15, 0, 14, 8, 2, 11, 7, 4, 12, 10, 9, 3, 5, 6],\n]\nINV_SBOX = &#91;]\nfor sb in SBOX:\n    inv = &#91;0] * 16\n    for i, v in enumerate(sb):\n        inv&#91;v] = i\n    INV_SBOX.append(inv)\nMASK32 = 0xFFFFFFFF\nPHI = 0x9E3779B9\ndef rotl32(x: int, r: int) -> int:\n    x &= MASK32\n    return ((x << r) | (x >> (32 - r))) & MASK32\ndef rotr32(x: int, r: int) -> int:\n    x &= MASK32\n    return ((x >> r) | (x << (32 - r))) & MASK32\ndef sbox_bitslice(sb, w0: int, w1: int, w2: int, w3: int):\n    \"\"\"Apply a 4-bit S-box in bitslice form on 4x32-bit words.\"\"\"\n    y0 = y1 = y2 = y3 = 0\n    for b in range(32):\n        nib = ((w0 >> b) & 1) | (((w1 >> b) & 1) << 1) | (((w2 >> b) & 1) << 2) | (((w3 >> b) & 1) << 3)\n        out = sb&#91;nib]\n        if out & 1:\n            y0 |= 1 << b\n        if out & 2:\n            y1 |= 1 << b\n        if out & 4:\n            y2 |= 1 << b\n        if out & 8:\n            y3 |= 1 << b\n    return y0 & MASK32, y1 & MASK32, y2 & MASK32, y3 & MASK32\ndef lt(w0: int, w1: int, w2: int, w3: int):\n    w0 = rotl32(w0, 13)\n    w2 = rotl32(w2, 3)\n    w1 = (w1 ^ w0 ^ w2) & MASK32\n    w3 = (w3 ^ w2 ^ ((w0 << 3) & MASK32)) & MASK32\n    w1 = rotl32(w1, 1)\n    w3 = rotl32(w3, 7)\n    w0 = (w0 ^ w1 ^ w3) & MASK32\n    w2 = (w2 ^ w3 ^ ((w1 << 7) & MASK32)) & MASK32\n    w0 = rotl32(w0, 5)\n    w2 = rotl32(w2, 22)\n    return w0, w1, w2, w3\ndef inv_lt(w0: int, w1: int, w2: int, w3: int):\n    w2 = rotr32(w2, 22)\n    w0 = rotr32(w0, 5)\n    w2 = (w2 ^ w3 ^ ((w1 << 7) & MASK32)) & MASK32\n    w0 = (w0 ^ w1 ^ w3) & MASK32\n    w3 = rotr32(w3, 7)\n    w1 = rotr32(w1, 1)\n    w3 = (w3 ^ w2 ^ ((w0 << 3) & MASK32)) & MASK32\n    w1 = (w1 ^ w0 ^ w2) & MASK32\n    w2 = rotr32(w2, 3)\n    w0 = rotr32(w0, 13)\n    return w0, w1, w2, w3\ndef key_schedule(user_key: bytes):\n    \"\"\"Serpent key schedule (like common reference impl):\n    - accepts 16\/24\/32 bytes key, then pads with a single 1-bit (implemented as byte 0x01) and zeros to 32 bytes.\n    \"\"\"\n    if len(user_key) > 32:\n        raise ValueError(\"key too long\")\n    if len(user_key) < 32:\n        user_key = user_key + b\"\\x01\" + b\"\\x00\" * (31 - len(user_key))\n    w = list(struct.unpack(\"<8I\", user_key))\n    for i in range(8, 140):\n        t = w&#91;i - 8] ^ w&#91;i - 5] ^ w&#91;i - 3] ^ w&#91;i - 1] ^ PHI ^ (i - 8)\n        w.append(rotl32(t, 11))\n    keys = &#91;]\n    for i in range(33):\n        a, b, c, d = w&#91;4 * i + 8], w&#91;4 * i + 9], w&#91;4 * i + 10], w&#91;4 * i + 11]\n        # key schedule uses S_(3-i)\n        a, b, c, d = sbox_bitslice(SBOX&#91;(3 - i) % 8], a, b, c, d)\n        keys.append((a, b, c, d))\n    return keys\ndef decrypt_block(block16: bytes, round_keys):\n    w0, w1, w2, w3 = struct.unpack(\"<4I\", block16)\n    # last round: xor K32, invS7, xor K31\n    k32 = round_keys&#91;32]\n    w0 ^= k32&#91;0]\n    w1 ^= k32&#91;1]\n    w2 ^= k32&#91;2]\n    w3 ^= k32&#91;3]\n    w0, w1, w2, w3 = sbox_bitslice(INV_SBOX&#91;7], w0, w1, w2, w3)\n    k31 = round_keys&#91;31]\n    w0 ^= k31&#91;0]\n    w1 ^= k31&#91;1]\n    w2 ^= k31&#91;2]\n    w3 ^= k31&#91;3]\n    for r in range(30, -1, -1):\n        w0, w1, w2, w3 = inv_lt(w0, w1, w2, w3)\n        w0, w1, w2, w3 = sbox_bitslice(INV_SBOX&#91;r % 8], w0, w1, w2, w3)\n        kr = round_keys&#91;r]\n        w0 ^= kr&#91;0]\n        w1 ^= kr&#91;1]\n        w2 ^= kr&#91;2]\n        w3 ^= kr&#91;3]\n    return struct.pack(\"<4I\", w0 & MASK32, w1 & MASK32, w2 & MASK32, w3 & MASK32)\n# ---------------- challenge logic ----------------\ndef main(zip_path: str):\n    with zipfile.ZipFile(zip_path, \"r\") as z:\n        # zip comment -> base64 -> b\"SecretKey\"\n        raw = z.comment.strip()\n        key_str = base64.b64decode(raw)\n        data = z.read(\"Serpent.dat\")\n    # \u5173\u952e\u70b9\uff1a\u9898\u76ee\u8fd9\u91cc\u662f\u628a key \u8865\u5230 16 \u5b57\u8282\u518d\u5582\u7ed9 cipher\n    user_key = key_str.ljust(16, b\"\\x00\")\n    rk = key_schedule(user_key)\n    # ECB (2 blocks)\n    pt = decrypt_block(data&#91;:16], rk) + decrypt_block(data&#91;16:32], rk)\n    pt = pt.rstrip(b\"\\x00\")\n    print(pt.decode())\nif __name__ == \"__main__\":\n    import sys\n    zip_path = sys.argv&#91;1] if len(sys.argv) > 1 else \"attachment (1).zip\"\n    main(zip_path)<\/code><\/pre>\n\n\n\n<p>\u6700\u7ec8\u8f93\u5165nc\u7aef\u53e3\uff0c\u62ff\u5230\u6700\u7ec8\u7684flag<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u622a\u53d6\u7684\u7ebf\u7d22\">\u622a\u53d6\u7684\u7ebf\u7d22<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"124\" src=\"http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769684564-\u5c4f\u5e55\u622a\u56fe-2026-01-29-190239-1024x124.png\" alt=\"\" class=\"wp-image-724\" srcset=\"http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769684564-\u5c4f\u5e55\u622a\u56fe-2026-01-29-190239-1024x124.png 1024w, http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769684564-\u5c4f\u5e55\u622a\u56fe-2026-01-29-190239-300x36.png 300w, http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769684564-\u5c4f\u5e55\u622a\u56fe-2026-01-29-190239-768x93.png 768w, http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769684564-\u5c4f\u5e55\u622a\u56fe-2026-01-29-190239.png 1088w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>7\u6587\u4ef6\u91cc\u9762\u662f\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>RinDSA|W6dlkbXsob<\/code><\/pre>\n\n\n\n<p>\u4e0b\u9762\u7684PNG\u662f<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"96\" height=\"1\" src=\"http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769684598-\u622a\u53d6\u7684\u7ebf\u7d22.png\" alt=\"\" class=\"wp-image-725\"\/><\/figure>\n\n\n\n<p>\u8fd9\u4e2a\u4e0d\u50cf\u662f\u6469\u65af\u5bc6\u7801\uff0c\u6709\u957f\u77ed\u4e5f\u6709\u4e2d<\/p>\n\n\n\n<p>\u6309 <strong>**\u767d(255)=1\uff0c\u9ed1(0)=0**<\/strong> \u8f6c\u6210 bit \u6d41\uff0c\u7136\u540e\u6bcf 8 \u4e2a bit \u7ec4\u4e00\u4e2a byte\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>def decode_scanline_png(png_path: str) -> str:\n    img = Image.open(png_path).convert(\"L\")\n    w, h = img.size\n    assert h == 1, f\"expected 1px height, got {img.size}\"\n    pixels = list(img.getdata())\n    # \u767d(255)=1\uff0c\u9ed1(0)=0\n    bits = &#91;1 if p > 127 else 0 for p in pixels]\n    assert len(bits) % 8 == 0, \"bit length should be multiple of 8\"\n    out = &#91;]\n    for i in range(0, len(bits), 8):\n        b = 0\n        for j in range(8):\n            b = (b << 1) | bits&#91;i + j]\n        out.append(b)\n    return bytes(out).decode(\"ascii\")<\/code><\/pre>\n\n\n\n<p>\u5f97\u51fa\u6765\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>_Great_to01}<\/code><\/pre>\n\n\n\n<p>\u800c\u7b2c\u4e00\u4e2a\u6587\u4ef6\u6211\u601d\u8003\u4e86\u5f88\u4e45<\/p>\n\n\n\n<p>\u56e0\u4e3apng\u7ed9\u4e86\u4e2aflag\u540e\u534a\u90e8\u5206\uff0c\u6240\u4ee5\u8fd9\u8fb9\u5c3d\u91cf\u5f80\u524d\u534a\u90e8\u5206\u9760<\/p>\n\n\n\n<p class=\"has-vivid-red-color has-text-color has-link-color has-medium-font-size wp-elements-da11af6e3b1ad947298b8be101cb8b9c\"><strong>\u91cd\u70b9\uff1a\u6587\u4ef6\u540d\uff1a7\uff01\uff01\uff01\uff01\uff01\uff01\uff01\uff01\uff01\uff01\uff01\uff01\uff01<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"473\" src=\"http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769684718-\u5c4f\u5e55\u622a\u56fe-2026-01-29-190016-1024x473.png\" alt=\"\" class=\"wp-image-726\" srcset=\"http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769684718-\u5c4f\u5e55\u622a\u56fe-2026-01-29-190016-1024x473.png 1024w, http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769684718-\u5c4f\u5e55\u622a\u56fe-2026-01-29-190016-300x139.png 300w, http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769684718-\u5c4f\u5e55\u622a\u56fe-2026-01-29-190016-768x355.png 768w, http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769684718-\u5c4f\u5e55\u622a\u56fe-2026-01-29-190016-1536x710.png 1536w, http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769684718-\u5c4f\u5e55\u622a\u56fe-2026-01-29-190016.png 1989w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u89e3\u51fa\u6765<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>UniCTF{P1ckle_the_Great_to01}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"bluebreath-\u54e5\u65af\u62c9webshell\">BlueBreath\uff08\u54e5\u65af\u62c9webshell\uff09<\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u5de8\u517d\u5e76\u4e0d\u4f1a\u51ed\u7a7a\u6d88\u5931\uff0c\u5b83\u53ea\u662f\u6362\u4e86\u4e00\u79cd\u9891\u7387\u5728\u547c\u5438<\/p>\n<\/blockquote>\n\n\n\n<p><a href=\"http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769686427-BlueBreath.zip\">\u6311\u6218\u8fd9\u4e2a\u9898<\/a><\/p>\n\n\n\n<p>\u5148\u521d\u6b65\u770b\u4e00\u904d\uff0c\u5927\u91cf\u5bf9 `172.30.96.1:8000` \u7684\u8bf7\u6c42\u90fd\u5728 404\uff08\u50cf\u662f\u76ee\u5f55\u626b\u63cf\uff09\uff0c\u4f46\u5176\u4e2d\u6709\u5c11\u6570\u8fd4\u56de 200<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>http.response.code == 200<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"567\" src=\"http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769685114-\u5c4f\u5e55\u622a\u56fe-2026-01-29-191017-1024x567.png\" alt=\"\" class=\"wp-image-729\" srcset=\"http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769685114-\u5c4f\u5e55\u622a\u56fe-2026-01-29-191017-1024x567.png 1024w, http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769685114-\u5c4f\u5e55\u622a\u56fe-2026-01-29-191017-300x166.png 300w, http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769685114-\u5c4f\u5e55\u622a\u56fe-2026-01-29-191017-768x426.png 768w, http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769685114-\u5c4f\u5e55\u622a\u56fe-2026-01-29-191017.png 1357w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u627e\u5230\u8fd9\u4e9b\u5f02\u5e38\u7684http\u56de\u590dOK\u7684\u6d41<\/p>\n\n\n\n<p>\u6d415774\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"902\" src=\"http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769686924-\u5c4f\u5e55\u622a\u56fe-2026-01-29-194155-1024x902.png\" alt=\"\" class=\"wp-image-737\" srcset=\"http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769686924-\u5c4f\u5e55\u622a\u56fe-2026-01-29-194155-1024x902.png 1024w, http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769686924-\u5c4f\u5e55\u622a\u56fe-2026-01-29-194155-300x264.png 300w, http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769686924-\u5c4f\u5e55\u622a\u56fe-2026-01-29-194155-768x676.png 768w, http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769686924-\u5c4f\u5e55\u622a\u56fe-2026-01-29-194155-1536x1352.png 1536w, http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769686924-\u5c4f\u5e55\u622a\u56fe-2026-01-29-194155.png 1706w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u5176\u4e2d \/uploads\/shell.php\u66f4\u79bb\u8c31\uff1a\u8bf7\u6c42\u662f POST\uff0cContent-Type: application\/octet-stream\uff0cbody \u4e0d\u662f\u8868\u5355\u800c\u662f\u4e00\u5768\u4e8c\u8fdb\u5236\uff0c\u770b\u7740\u5c31\u50cf WebShell \u7ba1\u7406\u5de5\u5177\u7684\u901a\u4fe1\u6570\u636e\u3002<\/p>\n\n\n\n<p>\u53e6\u5916\u8fd8\u80fd\u770b\u5230\u4e00\u6b21 OST \/index.php`\u7684 multipart \u4e0a\u4f20\uff08\u6587\u4ef6\u540d `hint.zip`\uff09\uff0c\u91cc\u9762\u6709\u4e2ahint.png\u3002\u5f3a\u884c\u63d0\u53d6\u51fa\u6765\u5229\u7528png\u6587\u4ef6\u5934\u8fdb\u884c\u660e\u6587\u653b\u51fb<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>bkcrack.exe -C 1.zip -c hint.png -p png_header<\/code><\/pre>\n\n\n\n<p>\u5f97\u5230zip\u52a0\u5bc6\u5bc6\u94a5\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>24cc690a 59f6451b e4fbbab0<\/code><\/pre>\n\n\n\n<p>\u518d\u7528\u5bc6\u94a5\u7ee7\u7eed\u5f00\u51fapng\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.\/bkcrack.exe -C 1.zip -c hint.png -k 24cc690a 59f6451b e4fbbab0 -d hint.png<\/code><\/pre>\n\n\n\n<p>\u518d\u89c2\u5bdf\u8fd9\u4e2a\u56fe\u7247\uff0c\u57fa\u672c\u7684\u6ce8\u91ca\uff0c\u6587\u4ef6\u6742\u7cc5\u7684\u9690\u5199\u90fd\u6ca1\u6709\uff0c\u5c1d\u8bd5LSB\u9690\u5199<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"652\" src=\"http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769937281-\u5c4f\u5e55\u622a\u56fe-2026-02-01-171357-1024x652.png\" alt=\"\" class=\"wp-image-760\" srcset=\"http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769937281-\u5c4f\u5e55\u622a\u56fe-2026-02-01-171357-1024x652.png 1024w, http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769937281-\u5c4f\u5e55\u622a\u56fe-2026-02-01-171357-300x191.png 300w, http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769937281-\u5c4f\u5e55\u622a\u56fe-2026-02-01-171357-768x489.png 768w, http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769937281-\u5c4f\u5e55\u622a\u56fe-2026-02-01-171357.png 1434w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\uff08\u6ce8\u610f\u5230\u8fd9\u91cc\uff0c\u56fe\u7247\u4eba\u773c\u770b\u5230\u7684\u53ea\u6709\u9ed1\u8272\u767d\u8272\uff0c\u800c\u8fd9\u4e9b\u50cf\u7d20\u70b9\u53c8\u6709\u522b\u7684\u989c\u8272\uff0c\u800c127\u662f255\u7684\u4e8c\u8fdb\u5236\u50a8\u5b58\u7b2c\u4e00\u4f4d\u75311\u6539\u4e3a0.\u8bf4\u660e\u662fLSB\u9690\u5199\u7684\u901a\u90537\uff1a\uff09<\/p>\n\n\n\n<p>\u7528stegsolve\u770b\uff0c\u5728\u901a\u90537\u7684\u65f6\u5019\u5de6\u4e0a\u89d2\u4f1a\u51fa\u73b0\u9ed1\u70b9\u70b9<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-shr-1-mp wp-block-embed-shr-1-mp\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"w0jOnvGxm9\"><a href=\"http:\/\/shr1mp.top\/index.php\/2026\/02\/01\/lsb%e9%9a%90%e5%86%99\/\">LSB\u9690\u5199<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"\u300a LSB\u9690\u5199 \u300b\u2014Shr1mp\u7684\u535a\u5ba2\" src=\"http:\/\/shr1mp.top\/index.php\/2026\/02\/01\/lsb%e9%9a%90%e5%86%99\/embed\/#?secret=WUit5xiPPc#?secret=w0jOnvGxm9\" data-secret=\"w0jOnvGxm9\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"773\" src=\"http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769871979-\u5c4f\u5e55\u622a\u56fe-2026-01-31-230601-1024x773.png\" alt=\"\" class=\"wp-image-749\" srcset=\"http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769871979-\u5c4f\u5e55\u622a\u56fe-2026-01-31-230601-1024x773.png 1024w, http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769871979-\u5c4f\u5e55\u622a\u56fe-2026-01-31-230601-300x226.png 300w, http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769871979-\u5c4f\u5e55\u622a\u56fe-2026-01-31-230601-768x580.png 768w, http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769871979-\u5c4f\u5e55\u622a\u56fe-2026-01-31-230601.png 1088w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u5c06Ahiz_2026\u8fdb\u884cmd5\u5904\u7406\uff0c\u5f97\u5230key\u7684MD5\u524d16\u4f4d<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"707\" height=\"199\" src=\"http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769938002-\u5c4f\u5e55\u622a\u56fe-2026-02-01-172636.png\" alt=\"\" class=\"wp-image-763\" srcset=\"http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769938002-\u5c4f\u5e55\u622a\u56fe-2026-02-01-172636.png 707w, http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1769938002-\u5c4f\u5e55\u622a\u56fe-2026-02-01-172636-300x84.png 300w\" sizes=\"auto, (max-width: 707px) 100vw, 707px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>2dc3ef5ff0c67015<\/code><\/pre>\n\n\n\n<p>\u5bf9\/uploads\/shell.php` \u7684\u8fde\u63a5\u505a Follow TCP Stream\uff0c\u4f1a\u53d1\u73b0\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\u7b2c\u4e00\u6b21\u8fde\u63a5\u91cc\u6709\u4e00\u4e2a\u8d85\u5927\u7684 POST\uff08\u51e0\u4e07\u5b57\u8282\uff09\uff0c\u670d\u52a1\u7aef\u56de\u5305\u91cc\u4e0b\u53d1 `Set-Cookie: PHPSESSID=...\n \u540e\u7eed\u51e0\u6b21\u8fde\u63a5\u90fd\u5e26\u7740\u76f8\u540c\u7684 `PHPSESSID`\uff0cPOST \u7684 body \u8f83\u77ed<\/code><\/pre>\n\n\n\n<p class=\"has-text-align-center has-vivid-red-color has-text-color has-link-color wp-elements-380a14958645476ea17ba2204be38bff\">\u77e5\u8bc6\u70b9\uff1a\u5173\u4e8e\u54e5\u65af\u62c9\u90a3\u5957\u903b\u8f91\uff08\u521a\u597d\u5370\u8bc1\u9898\u76ee\uff09<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\u7b2c\u4e00\u6b21\u628a payload \u6ce8\u5165\u5230 session \u91cc\uff0c\u4e4b\u540e\u90fd\u9760 cookie \u7ef4\u6301\u72b6\u6001\u3002\n\u9ebb\u70e6\u5728\u4e8e\uff1abody \u662f\u52a0\u5bc6\/\u6df7\u6dc6\u540e\u7684\uff0c\u9700\u8981\u628a\u5b83\u8fd8\u539f\u51fa\u6765<\/code><\/pre>\n\n\n\n<p>\u5f97\u5230\u4e86key\uff0c\u518d\u7528xor\u8fdb\u884c\u89e3\u5bc6<\/p>\n\n\n\n<p>\u7b2c\u4e00\u4e2apost\u524d\u9762\u51e0\u884c\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>`$parameters=array();\n$_SES=array();\nfunction run($pms)\n{ \n...`<\/code><\/pre>\n\n\n\n<p>\u8bf4XOR \u4e4b\u540e\u7684\u660e\u6587\u8fd8\u88ab gzip \u538b\u7f29\u8fc7\uff0c\u518d gzip.decompress() \u624d\u80fd\u770b\u5230\u771f\u6b63\u5185\u5bb9\u3002<\/p>\n\n\n\n<p>\u89e3\u51fa\u6765\u7684\u8bf7\u6c42\u5c31\u5f88\u76f4\u767d\u4e86\uff0c\u4f8b\u5982\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>- methodName ... test \n- methodName ... getBasicsInfo ; \u56de\u7cfb\u7edf\u4fe1\u606f\uff08\u5f53\u524d\u76ee\u5f55\u3001uname\u3001php \u7248\u672c\u7b49\uff09\n- methodName ... execCommand + `cmdLine ...` ; \u76f4\u63a5\u6267\u884c\u7cfb\u7edf\u547d\u4ee4<\/code><\/pre>\n\n\n\n<p>\u5176\u4e2d\u8fd8\u6709\u4e00\u6761\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sh -c \"cd \"\/var\/www\/html\/uploads\/\";cat flag.txt\" <\/code><\/pre>\n\n\n\n<p>\u5bf9\u5e94\u54cd\u5e94\u89e3 gzip \u540e\u76f4\u63a5\u5f97\u5230 flag<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"519\" src=\"http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1770348946-\u5c4f\u5e55\u622a\u56fe-2026-02-06-113509-1024x519.png\" alt=\"\" class=\"wp-image-884\" srcset=\"http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1770348946-\u5c4f\u5e55\u622a\u56fe-2026-02-06-113509-1024x519.png 1024w, http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1770348946-\u5c4f\u5e55\u622a\u56fe-2026-02-06-113509-300x152.png 300w, http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1770348946-\u5c4f\u5e55\u622a\u56fe-2026-02-06-113509-768x389.png 768w, http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1770348946-\u5c4f\u5e55\u622a\u56fe-2026-02-06-113509-1536x778.png 1536w, http:\/\/shr1mp.top\/wp-content\/uploads\/2026\/01\/1770348946-\u5c4f\u5e55\u622a\u56fe-2026-02-06-113509-2048x1038.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>UniCTF{w1reSha3k_easy_or_hard}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Welcome \u7565\uff08\u626b\u4e8c\u7ef4\u7801\u5173\u6ce8\u516c\u4f17\u53f7\u9886\u53d6\uff09 \u603b\u88c1\u56db\u6bd4\u7279,\u8fd9\u80fd\u73a9\uff1f \u9898\u76ee\u540d\u5b57\u53eb\u505a4\u6bd4\u7279\uff0c\u7279\u5730\u4e0a\u7f51\u641c\u4e86\u4e0b\u6709\u6ca1\u6709\u76f8\u5173\u7684\u77e5\u8bc6\u70b9 \u77e5\u8bc6\u70b9\uff1a &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_gspb_post_css":"","emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[9],"tags":[],"class_list":["post-645","post","type-post","status-publish","format-standard","hentry","category-misc"],"_links":{"self":[{"href":"http:\/\/shr1mp.top\/index.php\/wp-json\/wp\/v2\/posts\/645","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/shr1mp.top\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/shr1mp.top\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/shr1mp.top\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/shr1mp.top\/index.php\/wp-json\/wp\/v2\/comments?post=645"}],"version-history":[{"count":55,"href":"http:\/\/shr1mp.top\/index.php\/wp-json\/wp\/v2\/posts\/645\/revisions"}],"predecessor-version":[{"id":885,"href":"http:\/\/shr1mp.top\/index.php\/wp-json\/wp\/v2\/posts\/645\/revisions\/885"}],"wp:attachment":[{"href":"http:\/\/shr1mp.top\/index.php\/wp-json\/wp\/v2\/media?parent=645"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/shr1mp.top\/index.php\/wp-json\/wp\/v2\/categories?post=645"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/shr1mp.top\/index.php\/wp-json\/wp\/v2\/tags?post=645"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}