{"id":224,"date":"2024-02-18T00:35:27","date_gmt":"2024-02-17T16:35:27","guid":{"rendered":"http:\/\/www.s1mh0.xyz\/blog\/?p=224"},"modified":"2024-04-18T21:31:46","modified_gmt":"2024-04-18T13:31:46","slug":"52pj_2024_webwp","status":"publish","type":"post","link":"https:\/\/www.s1mh0.cn\/blog\/index.php\/2024\/02\/18\/52pj_2024_webwp\/","title":{"rendered":"\u543e\u7231\u7834\u89e3 2024 \u5e74\u6625\u8282\u89e3\u9898\u7ea2\u5305\u6d3b\u52a8-Web\u9898\u89e3"},"content":{"rendered":"<p>\u597d\u4e45\u6ca1\u5199\u535a\u5ba2\u4e86\uff0c\u540e\u9762\u4e5f\u6ca1\u600e\u4e48\u6253\u6bd4\u8d5b\uff08\u6253\u4e86\u4e5f\u6ca1\u6253\u51fa\u4ec0\u4e48\u6210\u679c\uff09\uff0c\u770b\u523052PJ\u7684\u6625\u8282\u7ea2\u5305\u6d3b\u52a8\u60f3\u7740\u6765\u73a9\u73a9\uff0c\u987a\u4fbf\u53ef\u4ee5\u6c34\u4e00\u7bc7(x\uff0c\u53bb\u5e74\u4e5f\u53c2\u52a0\u8fc7\u62ff\u4e86\u4e00\u4e2a\u9996\u6740\uff0c\u4eca\u5e74\u62ff\u4e86\u4e24\u4e2a\u563f\u563f<br \/>\n(25\u65e5\u89e3\u9664\u6d4f\u89c8\u9650\u5236)<\/p>\n<h2>Web \u521d\u7ea7\u9898<\/h2>\n<h3>flag1\uff1a<\/h3>\n<p>\u5728\u89c6\u9891\u7b2c\u4e09\u79d2\u5f00\u59cb\u7684\u6ce2\u7eb9\u4e2d<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.s1mh0.cn\/blog\/wp-content\/uploads\/2024\/02\/pj1.jpg\" alt=\"\" \/><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.s1mh0.cn\/blog\/wp-content\/uploads\/2024\/02\/pj2.jpg\" alt=\"\" \/><\/p>\n<p>flag1{52pj2024}<\/p>\n<h3>flag2\uff1a<\/h3>\n<p>flag4\u4e2d\u5f97\u5230\u7684\u7f51\u5740\u6293\u5305\uff0c\u5728\u54cd\u5e94\u4f53\u4e2d\u5f97\u5230flag2<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.s1mh0.cn\/blog\/wp-content\/uploads\/2024\/02\/pj3.jpg\" alt=\"\" \/><\/p>\n<h3>flag3\uff1a<\/h3>\n<p>\u5728\u89c6\u9891\u5f00\u5934\u7684\u96ea\u82b1\u6c34\u5370\u4e2d\uff0c\u53cd\u590d\u64ad\u653e\u51e0\u904d\u5c31\u80fd\u770b\u6e05\u695a\uff08\u622a\u56fe\u770b\u4e0d\u51fa\u6765\u5c31\u4e0d\u622a\u4e86\uff09<\/p>\n<p>flag3{GRsgk2}<\/p>\n<h3>flag4\uff1a<\/h3>\n<p>\u5c06\u89c6\u9891\u4e2d\u7684\u56db\u4e2a\u4e8c\u7ef4\u7801\u56fe\u7247\u62fc\u63a5\u5f97\u5230\u7f51\u5740<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.s1mh0.cn\/blog\/wp-content\/uploads\/2024\/02\/pj4.jpg\" alt=\"\" \/><\/p>\n<pre><code class=\"language-text\">https:\/\/2024challenge.52pojie.cn\/<\/code><\/pre>\n<p>\u767b\u5f55\u540e\u770b\u5230flag4\u85cf\u5728\u4e86\u80cc\u666f\u56fe\u7247\u4e2d<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.s1mh0.cn\/blog\/wp-content\/uploads\/2024\/02\/pj5.jpg\" alt=\"\" \/><\/p>\n<p>flag4{YvJZNS} <\/p>\n<h3>flagA\uff1a<\/h3>\n<p>uid\u767b\u5f55\u65f6\uff0c\u8bf7\u6c42\u5305\u4f1a\u5728Set-Cookie\u4e2d\u8bbe\u7f6eflagA\u53d8\u91cf\uff0c\u770b\u89c6\u9891\u8bc4\u8bba\u533a\u5f97\u77e5\u8981\u627e\u63a5\u53e3\u89e3<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.s1mh0.cn\/blog\/wp-content\/uploads\/2024\/02\/pj6.jpg\" alt=\"\" \/><\/p>\n<p>\u5728\u9875\u9762\u6e90\u4ee3\u7801\u770b\u5230<\/p>\n<pre><code class=\"language-html\">&lt;script&gt;\n    fetch(&#039;\/auth\/uid&#039;).then(res =&gt; res.text()).then(res =&gt; {\n        if (res) {\n            document.querySelector(&#039;#uid&#039;).textContent = res;\n            document.querySelector(&#039;#logout-form&#039;).style.display = &#039;&#039;;\n            document.querySelector(&#039;#login-form&#039;).style.display = &#039;none&#039;;\n        }\n    });\n&lt;\/script&gt;<\/code><\/pre>\n<p>\u8bbf\u95ee<code>\/auth\/uid<\/code>\u63a5\u53e3\uff0c\u53d1\u73b0\u4f1a\u5c06\u8bf7\u6c42\u4f53\u4e2duid\u53d8\u91cf\u503c\u89e3\u5bc6\u6210\u5bf9\u5e94\u6570\u5b57\uff0c\u6293\u5305\u4fee\u6539uid\u503c\u4e3aflagA\u53d8\u91cf\u503c\uff0c\u5f97\u5230flagA<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.s1mh0.cn\/blog\/wp-content\/uploads\/2024\/02\/pj7.jpg\" alt=\"\" \/><\/p>\n<hr \/>\n<h2>Web \u4e2d\u7ea7\u9898<\/h2>\n<h3>flag5\uff1a<\/h3>\n<p>\u4e3b\u9875\u9762\u6293\u5305\u7684\u65f6\u5019\u770b\u5230\u4e86\u6e90\u7801\u4e2dflag5\u8ddf9\u7684\u63d0\u793a<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.s1mh0.cn\/blog\/wp-content\/uploads\/2024\/02\/pj8.jpg\" alt=\"\" \/><\/p>\n<p>\u5c06<code>&lt;wbr&gt;<\/code>\u5168\u90e8\u66ff\u6362\u4e3a\u7a7a\uff0c\u8c03\u6574\u4e00\u4e0b\u89c6\u89d2\u5f97\u5230flag5<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.s1mh0.cn\/blog\/wp-content\/uploads\/2024\/02\/pj9.jpg\" alt=\"\" \/><\/p>\n<p>flag5{P3prqF}<\/p>\n<h3>flag6\uff1a<\/h3>\n<p>\u8df3\u8f6cflag6\u9875\u9762\u70b9\u51fb\u8ba1\u7b97\u5373\u53ef<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.s1mh0.cn\/blog\/wp-content\/uploads\/2024\/02\/pj10.jpg\" alt=\"\" \/><\/p>\n<p>flag6{20240217}<\/p>\n<h3>flag7\uff1a<\/h3>\n<p>\u5728\u89c6\u9891\u51fa\u73b0\u7684github\u4ed3\u5e93\u7684README\u6587\u4ef6\u4e2d<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.s1mh0.cn\/blog\/wp-content\/uploads\/2024\/02\/pj11.jpg\" alt=\"\" \/><\/p>\n<p>flag7{Djl9NQ} <\/p>\n<h3>flag8\uff1a<\/h3>\n<p>\u73a92048\u5c0f\u6e38\u620f<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.s1mh0.cn\/blog\/wp-content\/uploads\/2024\/02\/pj12.jpg\" style=\"zoom:67%;\" \/><\/p>\n<p>flag8{OaOjIK}<\/p>\n<h3>flagB\uff1a<\/h3>\n<p>\u901a\u8fc7\u4e70<code>v\u621150<\/code>\u9053\u5177\u5f97\u5230<code>\u201c\u6ea2\u51fa\u201d<\/code>\u7684\u5173\u952e\u8bcd\uff0c\u624b\u5de5\u5c1d\u8bd5\u5f97\u5230\u4e86\u51e0\u4e2a\u4e34\u754c\u503c\uff0c\u8fd8\u662f\u6ca1\u4ec0\u4e48\u5934\u7eea\uff0c\u4e0d\u77e5\u9053\u540e\u7aef\u6ea2\u51fa\u903b\u8f91\uff0c\u7136\u540e\u5199\u4e86\u4e2a\u811a\u672c\u7206\u7834\u4e34\u754c\u503c\uff0c\u4ece\u5de6\u5230\u53f3\u901a\u8fc7<code>\u94b1\u4e0d\u591f<\/code>\u548c<code>\u94b1\u53d8\u591a<\/code>\u72b6\u6001\u53d8\u5316\u786e\u5b9a\u6bcf\u4e00\u4f4d\u4e0a\u7684\u6570\u5b57<\/p>\n<pre><code class=\"language-python\">import requests\nsession = requests.Session()\n\nheaders = {&quot;xxx&quot;:&quot;xxx&quot;}\ncookies = {&quot;xxx&quot;:&quot;xxx&quot;}\n\ncount = &#039;91&#039;\nnew_count = &#039;&#039;\nweishu = 10 # \u4f4d\u6570\n\nwhile 1:\n    num = count.ljust(weishu, &quot;0&quot;)\n    print(num)\n    paramsPost = {&quot;shop_item_id&quot;: &quot;5&quot;, &quot;buy_count&quot;: &quot;&quot; + num + &quot;&quot;}\n    response = session.post(&quot;https:\/\/2024challenge.52pojie.cn\/flagB\/buy_item&quot;, data=paramsPost, headers=headers,\n                            cookies=cookies)\n    if &quot;\u94b1\u4e0d\u591f&quot; not in response.content.decode():\n        new_count = str(int(count)-1)\n        count=new_count + &#039;0&#039;\n        print(new_count)\n        if len(new_count)&gt;weishu:\n            break\n    else:\n        count = str(int(count)+1)<\/code><\/pre>\n<p>\u901a\u8fc7\u63a7\u5236weishu\u53d8\u91cf\u548ccount\u53d8\u91cf\uff0c\u5f97\u5230\u6700\u5c0f\u4e34\u754c\u503c\u4e3a10\u4f4d\uff0c\u5e76\u4e14\u524d\u51e0\u4e2a\u4e34\u754c\u503c\u4f9d\u6b21\u4e3a<\/p>\n<pre><code class=\"language-text\">9232018856\n27696056569\n46160094282\n64624131995\n83088169708<\/code><\/pre>\n<p>\u5f97\u5230\u4e34\u754c\u503c\u516c\u5f0f<\/p>\n<pre><code class=\"language-text\">9232018856 + (18464037713\u7684\u500d\u6570)<\/code><\/pre>\n<p>\u7ee7\u7eed\u5199\u811a\u672c\u5c06\u500d\u6570\u4ece1\u5f00\u59cb\u6bcf\u6b21\u52a01\uff0c\u63d0\u4ea4\u6bcf\u4e2a\u4e34\u754c\u503c\uff0c\u53d1\u73b0\u8fd8\u662f\u4e0d\u884c\uff0c\u5c1d\u8bd5\u5c06\u500d\u6570\u6539\u4e3a\u6bcf\u6b21\u52a00.5\uff0c\u53d1\u73b0\u51e1\u662f\u4e58\u4e0ax.5\u500d\u7684\u90fd\u80fd\u8d2d\u4e70\u6210\u529f<\/p>\n<pre><code class=\"language-python\">import requests\nsession = requests.Session()\nflag = 1\n\nwhile 1:\n    num = 9232018856 + 18464037713 * flag\n    num = round(num+0.1) # \u53d1\u73b0xx.5\u56db\u820d\u4e94\u5165\u7684\u65f6\u5019\u53d8\u6210\u820d\u4e86\uff0c\u5f97\u52a00.1\n    print(num)\n\n    headers = {&quot;xxx&quot;:&quot;xxx&quot;}\n    cookies = {&quot;xxx&quot;:&quot;xxx&quot;}\n    paramsPost = {&quot;shop_item_id&quot;: &quot;5&quot;, &quot;buy_count&quot;: &quot;&quot; + str(num) + &quot;&quot;}\n    response = session.post(&quot;https:\/\/2024challenge.52pojie.cn\/flagB\/buy_item&quot;, data=paramsPost, headers=headers,\n                            cookies=cookies)\n    if (&quot;\u94b1\u4e0d\u591f&quot; or &quot;\u6682\u65f6\u5148\u62e6\u4e00\u4e0b&quot;) in response.content.decode():\n        flag = flag + 0.5\n    else:\n        print(response.content.decode())\n        break<\/code><\/pre>\n<p><img decoding=\"async\" src=\"http:\/\/www.s1mh0.cn\/blog\/wp-content\/uploads\/2024\/02\/pj14.jpg\" style=\"zoom: 67%;\" \/><\/p>\n<h3><\/h3>\n<hr \/>\n<h2>Web \u9ad8\u7ea7\u9898<\/h2>\n<h3>flag9\uff1a<\/h3>\n<p>\u540cflag5\u4e00\u8d77\u5728\u6e90\u7801\u51fa\u73b0\uff0c\u89c2\u5bdfflag5\u7684\u4f4d\u7f6e\uff0c\u5c1d\u8bd5\u5c06flag5\u7684\u6bcf\u4e2a\u5b57\u7b26\u8f6c\u6210\u6362\u884c\u7b26\uff0c\u5f97\u5230flag9<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.s1mh0.cn\/blog\/wp-content\/uploads\/2024\/02\/pj13.jpg\" alt=\"\" \/><\/p>\n<p>flag9{KHTALK}<\/p>\n<h3>flag10\uff1a<\/h3>\n<p>\u8ddfflag4\u85cf\u5728\u4e00\u4e2a\u56fe\u7247\u4e2d\uff0cStegsolve\u67e5\u770b\u53d1\u73b0RGB\u4e09\u4e2a\u901a\u9053\u90fd\u6709flag10<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.s1mh0.cn\/blog\/wp-content\/uploads\/2024\/02\/pj15.jpg\" alt=\"\" \/><\/p>\n<p>flag10{6BxMkW}<\/p>\n<h3>flag11\uff1a<\/h3>\n<p>\u70b9\u51fbflag11\u9875\u9762\uff0c\u67e5\u770b\u6e90\u4ee3\u7801\u63d0\u793a\u8981\u5c06var1\u548cvar2\u4e24\u4e2a\u53d8\u91cf\u6539\u4e3a\u5408\u9002\u7684\u503c\uff0c\u5c1d\u8bd5\u540e\u53d1\u73b0\u5206\u522b\u6539\u4e3a71\u548c20\u65f6\u5f97\u5230\u5b8c\u6574\u56fe\u7247<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.s1mh0.cn\/blog\/wp-content\/uploads\/2024\/02\/pj16.jpg\" alt=\"\" \/><\/p>\n<p>flag11{HPQfVF}<\/p>\n<h3>flag12\uff1a<\/h3>\n<p>\u975e\u9884\u671f\u89e3\uff0c\u9884\u671f\u89e3\u6cd5\u5e94\u8be5\u662f\u8981\u6839\u636eflag12\u9875\u9762\u8fd9\u4e32\u903b\u8f91\u89e3\u5bc6\uff08\u5e76\u4e14\u662f\u901a\u8fc7\u70b9\u51fb\u83b7\u53d6\u53c2\u6570\uff0c\u4e5f\u4e0d\u80fd\u901a\u8fc7bp\u6293\u5305\u7206\u7834\uff09<\/p>\n<pre><code class=\"language-html\">&lt;script&gt;\n    WebAssembly.instantiateStreaming(fetch(&#039;flag12.wasm&#039;))\n        .then(({instance}) =&gt; {\n            const get_flag12 = (secret) =&gt; {\n                let num = instance.exports.get_flag12(secret);\n                let str = &#039;&#039;;\n                while (num &gt; 0) {\n                    str = String.fromCodePoint(num &amp; 0xff) + str;\n                    num &gt;&gt;= 8;\n                }\n                return `flag12{${str}}`;\n            }\n            document.querySelector(&#039;button&#039;).addEventListener(&#039;click&#039;, (e) =&gt; {\n                e.preventDefault();\n                document.querySelector(&#039;#result&#039;).textContent = get_flag12(parseInt(document.querySelector(&#039;input&#039;).value));\n            });\n        });\n&lt;\/script&gt;<\/code><\/pre>\n<p>\u76f4\u63a5\u67e5\u770bflag12.wasm\u5185\u5bb9\uff0c\u5c1d\u8bd5\u5c061048576\u30011213159497\u30011103515245\u8f6c\u4e3abytes\u7c7b\u578b<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.s1mh0.cn\/blog\/wp-content\/uploads\/2024\/02\/pj17.jpg\" alt=\"\" \/><\/p>\n<pre><code class=\"language-python\">from Crypto.Util.number import long_to_bytes\nprint(long_to_bytes(1103515245))<\/code><\/pre>\n<p>\u53d1\u73b0<code>1103515245<\/code>\u53ef\u4ee5\u8f6c\u6210\u5b57\u7b26\u4e32<code>HOXI<\/code>\uff0cflag\u5373\u4e3aflag12{HOXI}<\/p>\n<h3>flagC\uff1a<\/h3>\n<p>\u9996\u5148\u6839\u636e\u6d4b\u8bd5\u56fe\u7247\uff0c\u67e5\u770b\u9700\u8981\u54ea\u4e9b\u79cd\u7c7b\uff0c\u518d\u7528ps\u5c06\u5176\u62a0\u51fa\u6765\uff0c\u63d0\u4ea4\u6d4b\u8bd5\u4fee\u6539\u5b83\u4eec\u7684\u4f4d\u7f6e\u5373\u53ef\uff0c\u611f\u89c9\u8fd8\u4e0d\u5982flagA\u96be<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.s1mh0.cn\/blog\/wp-content\/uploads\/2024\/02\/pj18.jpg\" style=\"zoom:67%;\" \/><br \/>\n<img decoding=\"async\" src=\"http:\/\/www.s1mh0.cn\/blog\/wp-content\/uploads\/2024\/02\/pj19.jpg\" style=\"zoom:67%;\" \/><\/p>\n<div class=\"clearfix\"><\/div>","protected":false},"excerpt":{"rendered":"<p>\u597d\u4e45\u6ca1\u5199\u535a\u5ba2\u4e86\uff0c\u540e\u9762\u4e5f\u6ca1\u600e\u4e48\u6253\u6bd4\u8d5b\uff08\u6253\u4e86\u4e5f\u6ca1\u6253\u51fa\u4ec0\u4e48\u6210\u679c\uff09\uff0c\u770b\u523052PJ\u7684\u6625\u8282\u7ea2\u5305\u6d3b\u52a8\u60f3\u7740\u6765\u73a9\u73a9\uff0c\u987a\u4fbf\u53ef\u4ee5\u6c34\u4e00 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,6],"tags":[],"class_list":["post-224","post","type-post","status-publish","format-standard","hentry","category-web","category-wp"],"views":692,"_links":{"self":[{"href":"https:\/\/www.s1mh0.cn\/blog\/index.php\/wp-json\/wp\/v2\/posts\/224","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.s1mh0.cn\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.s1mh0.cn\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.s1mh0.cn\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.s1mh0.cn\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=224"}],"version-history":[{"count":9,"href":"https:\/\/www.s1mh0.cn\/blog\/index.php\/wp-json\/wp\/v2\/posts\/224\/revisions"}],"predecessor-version":[{"id":319,"href":"https:\/\/www.s1mh0.cn\/blog\/index.php\/wp-json\/wp\/v2\/posts\/224\/revisions\/319"}],"wp:attachment":[{"href":"https:\/\/www.s1mh0.cn\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=224"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.s1mh0.cn\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=224"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.s1mh0.cn\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=224"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}