{"id":2102,"date":"2025-03-16T20:34:33","date_gmt":"2025-03-16T12:34:33","guid":{"rendered":"http:\/\/gzxingyu.cloud\/?p=2102"},"modified":"2025-03-16T20:34:34","modified_gmt":"2025-03-16T12:34:34","slug":"gdouctf-2023ez-web","status":"publish","type":"post","link":"http:\/\/gzxingyu.cloud\/index.php\/2025\/03\/16\/gdouctf-2023ez-web\/","title":{"rendered":"GDOUCTF 2023EZ WEB"},"content":{"rendered":"<p><img decoding=\"async\" src=\"http:\/\/gzxingyu.cloud\/wp-content\/uploads\/2025\/03\/Pasted-image-20250316200521.png\" alt=\"Pasted image 20250316200521.png\"><\/p>\n<h1>\u4e00\u3001\u8bbf\u95ee\u7f51\u7ad9\uff0c\u53ea\u6709\u4e00\u4e2a\u70b9\u51fb<\/h1>\n<p><img decoding=\"async\" src=\"http:\/\/gzxingyu.cloud\/wp-content\/uploads\/2025\/03\/Pasted-image-20250316200912.png\" alt=\"Pasted image 20250316200912.png\"><\/p>\n<h1>\u4e8c\u3001\u5c1d\u8bd5\u70b9\u51fb<\/h1>\n<p><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='http:\/\/gzxingyu.cloud\/wp-content\/uploads\/2025\/03\/Pasted-image-20250316200952.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" data-original=\"http:\/\/gzxingyu.cloud\/wp-content\/uploads\/2025\/03\/Pasted-image-20250316200952.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"Pasted image 20250316200952.png\"><\/div><br \/>\n\u53d1\u73b0flag\u4e0d\u5728\u8fd9\u91cc<\/p>\n<h1>\u4e09\u3001\u67e5\u770b\u6e90\u7801\uff0c\u53d1\u73b0\u4e00\u4e2a\u7591\u4f3csrc\u7684\u76ee\u5f55<\/h1>\n<p><img decoding=\"async\" src=\"http:\/\/gzxingyu.cloud\/wp-content\/uploads\/2025\/03\/Pasted-image-20250316201035.png\" alt=\"Pasted image 20250316201035.png\"><\/p>\n<h1>\u56db\u3001\u8bbf\u95ee\u8be5\u76ee\u5f55<\/h1>\n<p><img decoding=\"async\" src=\"http:\/\/gzxingyu.cloud\/wp-content\/uploads\/2025\/03\/Pasted-image-20250316201148.png\" alt=\"Pasted image 20250316201148.png\"><\/p>\n<p>\u53d1\u73b0\u662f\u6709\u5173python\u7684\u4ee3\u7801\uff1a<\/p>\n<pre><code class=\"language-python\">import flask\n\napp = flask.Flask(__name__)\n\n@app.route('\/', methods=['GET'])\ndef index():\n  return flask.send_file('index.html')\n\n@app.route('\/src', methods=['GET'])\ndef source():\n  return flask.send_file('app.py')\n\n@app.route('\/super-secret-route-nobody-will-guess', methods=['PUT'])\ndef flag():\n  return open('flag').read()\n<\/code><\/pre>\n<h1>\u4e94\u3001\u5206\u6790\u4ee3\u7801<\/h1>\n<pre><code class=\"language-python\">import flask\n\napp = flask.Flask(__name__)\n<\/code><\/pre>\n<p>\u5bfc\u5165flask\u5e93\uff0c\u5e76\u521b\u5efaflask\u5e94\u7528\u5b9e\u4f8b\u3002<\/p>\n<pre><code class=\"language-python\">@app.route('\/', methods=['GET'])\ndef index():\n    return flask.send_file('index.html')\n<\/code><\/pre>\n<p>\u5b9a\u4e49<code>\/<\/code>\u8def\u7531\uff0c\u8be5\u8def\u7531\u53ea\u5904\u7406GET\u8bf7\u6c42\uff0c\u8bbf\u95ee<code>\/<\/code>\u662f\u663e\u793a<code>index.html<\/code>\u7684\u5185\u5bb9\u3002<\/p>\n<pre><code class=\"language-python\">@app.route('\/src', methods=['GET'])\ndef source():\n    return flask.send_file('app.py')\n<\/code><\/pre>\n<p>\u5b9a\u4e49<code>\/src<\/code>\u7684\u8def\u7531\uff0c\u8be5\u8def\u7531\u53ea\u5904\u7406GET\u8bf7\u6c42\uff0c\u8bbf\u95ee<code>\/src<\/code>\u663e\u793a\u00a0<code>app.py<\/code>\u7684\u5185\u5bb9\u3002<\/p>\n<pre><code class=\"language-python\">@app.route('\/super-secret-route-nobody-will-guess', methods=['PUT'])\ndef flag():\n    return open('flag').read()\n<\/code><\/pre>\n<p>\u5b9a\u4e49<code>\/super-secret-route-nobody-will-guess<\/code>\u8def\u7531\uff0c\u8be5\u8def\u7531\u53ea\u5904\u7406PUT\u8bf7\u6c42\uff0c\u8bbf\u95ee<code>\/super-secret-route-nobody-will-guess<\/code>\u663e\u793aflag\u3002<\/p>\n<h1>\u516d\u3001\u4f7f\u7528burp\u6293\u5305\uff0c\u4fee\u6539\u4e3aPUT\u8bf7\u6c42<\/h1>\n<p><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='http:\/\/gzxingyu.cloud\/wp-content\/uploads\/2025\/03\/Pasted-image-20250316202048.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" data-original=\"http:\/\/gzxingyu.cloud\/wp-content\/uploads\/2025\/03\/Pasted-image-20250316202048.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"Pasted image 20250316202048.png\"><\/div><br \/>\n\u6210\u529f\u83b7\u5f97flag<\/p>\n<h1>\u603b\u7ed3<\/h1>\n<ul>\n<li>flask\uff1aPython \u7684 Flask \u6846\u67b6\uff0c\u53ef\u4ee5\u7f16\u5199\u7684\u4e00\u4e2a\u7b80\u5355 Web \u5e94\u7528\u7a0b\u5e8f<\/li>\n<li>\u4f7f\u7528flask\u5b9a\u4e49\u8def\u7531\uff0c\u8bbf\u95eexx\u663e\u793axx.xx\u7684\u5185\u5bb9<\/li>\n<li>PUT\u8bf7\u6c42<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u8bbf\u95ee\u7f51\u7ad9\uff0c\u53ea\u6709\u4e00\u4e2a\u70b9\u51fb \u4e8c\u3001\u5c1d\u8bd5\u70b9\u51fb \u53d1\u73b0flag\u4e0d\u5728\u8fd9\u91cc \u4e09\u3001\u67e5\u770b\u6e90\u7801\uff0c\u53d1\u73b0\u4e00\u4e2a\u7591\u4f3csrc\u7684\u76ee\u5f55 \u56db\u3001\u8bbf [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,22,23],"tags":[40],"class_list":["post-2102","post","type-post","status-publish","format-standard","hentry","category-ctf","category-ctf-web","category-nssctf","tag-http"],"_links":{"self":[{"href":"http:\/\/gzxingyu.cloud\/index.php\/wp-json\/wp\/v2\/posts\/2102","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/gzxingyu.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/gzxingyu.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/gzxingyu.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/gzxingyu.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=2102"}],"version-history":[{"count":1,"href":"http:\/\/gzxingyu.cloud\/index.php\/wp-json\/wp\/v2\/posts\/2102\/revisions"}],"predecessor-version":[{"id":2103,"href":"http:\/\/gzxingyu.cloud\/index.php\/wp-json\/wp\/v2\/posts\/2102\/revisions\/2103"}],"wp:attachment":[{"href":"http:\/\/gzxingyu.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=2102"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/gzxingyu.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=2102"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/gzxingyu.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=2102"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}